Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'rasa_core_sdk' #95

Open
812406210 opened this issue Mar 2, 2021 · 8 comments
Open

ModuleNotFoundError: No module named 'rasa_core_sdk' #95

812406210 opened this issue Mar 2, 2021 · 8 comments

Comments

@812406210
Copy link

Error Info >
2021-03-02 15:28:58 ERROR rasa_sdk.executor - Failed to register package 'actions'.
Traceback (most recent call last):
File "/root/.virtualenvs/chat/lib/python3.7/site-packages/rasa_sdk/executor.py", line 250, in register_package
self._import_submodules(package)
File "/root/.virtualenvs/chat/lib/python3.7/site-packages/rasa_sdk/executor.py", line 213, in _import_submodules
self._import_module(full_name)
File "/root/.virtualenvs/chat/lib/python3.7/site-packages/rasa_sdk/executor.py", line 227, in _import_module
module = importlib.import_module(name)
File "/usr/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/root/rasa_chatbot_cn-master/actions/actions.py", line 6, in
from rasa_core_sdk import Action
ModuleNotFoundError: No module named 'rasa_core_sdk'
Makefile:8: recipe for target 'run-actions' failed
make[1]: *** [run-actions] Error 1
make[1]: Leaving directory '/root/rasa_chatbot_cn-master'

你好,请问这个也版本的问题吗?谢谢

@GaoQ1
Copy link
Owner

GaoQ1 commented Mar 2, 2021

你是怎么执行的?

@812406210
Copy link
Author

812406210 commented Mar 2, 2021 via email

@812406210
Copy link
Author

812406210 commented Mar 2, 2021 via email

@GaoQ1
Copy link
Owner

GaoQ1 commented Mar 2, 2021

rasa==1.10.18
rasa-sdk==1.10.3
transformers==2.4.1
是这几个版本?

@812406210
Copy link
Author

812406210 commented Mar 2, 2021 via email

@812406210
Copy link
Author

812406210 commented Mar 2, 2021 via email

@GaoQ1
Copy link
Owner

GaoQ1 commented Mar 3, 2021

data下面数据集应该是rasa支持的格式,rasa1版本是md格式,rasa2支持的是yaml格式

@hua7448
Copy link

hua7448 commented Jun 16, 2021

Error Info >
2021-03-02 15:28:58 ERROR rasa_sdk.executor - Failed to register package 'actions'.
Traceback (most recent call last):
File "/root/.virtualenvs/chat/lib/python3.7/site-packages/rasa_sdk/executor.py", line 250, in register_package
self._import_submodules(package)
File "/root/.virtualenvs/chat/lib/python3.7/site-packages/rasa_sdk/executor.py", line 213, in _import_submodules
self._import_module(full_name)
File "/root/.virtualenvs/chat/lib/python3.7/site-packages/rasa_sdk/executor.py", line 227, in _import_module
module = importlib.import_module(name)
File "/usr/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/root/rasa_chatbot_cn-master/actions/actions.py", line 6, in
from rasa_core_sdk import Action
ModuleNotFoundError: No module named 'rasa_core_sdk'
Makefile:8: recipe for target 'run-actions' failed
make[1]: *** [run-actions] Error 1
make[1]: Leaving directory '/root/rasa_chatbot_cn-master'

你好,请问这个也版本的问题吗?谢谢

把rasa_core_sdk改为rasa_sdk即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants