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

Failed to register package actions.actions. #601

Open
programmeddeath1 opened this issue Dec 14, 2020 · 2 comments
Open

Failed to register package actions.actions. #601

programmeddeath1 opened this issue Dec 14, 2020 · 2 comments

Comments

@programmeddeath1
Copy link

Traceback (most recent call last):
File "/home/abhilash/.local/lib/python3.6/site-packages/rasa_sdk/executor.py", line 254, in register_package
self._import_submodules(package)
File "/home/abhilash/.local/lib/python3.6/site-packages/rasa_sdk/executor.py", line 210, in _import_submodules
package = self._import_module(package)
File "/home/abhilash/.local/lib/python3.6/site-packages/rasa_sdk/executor.py", line 231, in _import_module
module = importlib.import_module(name)
File "/usr/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 665, in _load_unlocked
File "", line 678, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/abhilash/Projects/chatbots/rasa-demo/actions/actions.py", line 21, in
from actions.api.algolia import AlgoliaAPI
File "/home/abhilash/Projects/chatbots/rasa-demo/actions/api/algolia.py", line 7, in
en_spacy = spacy.load("en")
File "/home/abhilash/.local/lib/python3.6/site-packages/spacy/init.py", line 30, in load
return util.load_model(name, **overrides)
File "/home/abhilash/.local/lib/python3.6/site-packages/spacy/util.py", line 164, in load_model
return load_model_from_package(name, **overrides)
File "/home/abhilash/.local/lib/python3.6/site-packages/spacy/util.py", line 184, in load_model_from_package
cls = importlib.import_module(name)
File "/usr/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named 'en'

I am getting this error on running run actions. On first look it seems like an error with spacy loading en module. I have installed the spacy module but the error seems to persist.
Any help would be appreciated.

@sara-tagger
Copy link

Thanks for the issue, @alopez will get back to you about it soon!

You may find help in the docs and the forum, too 🤗

@samsucik
Copy link
Contributor

Hey @programmeddeath1, have a look at #580. In short, you'll need to install an English Spacy model:

python -m spacy download en_core_web_md
python -m spacy link en_core_web_md en

However, bear in mind that some bits of the Sara bot won't run locally as they require special API keys (such as the docs search in action_docs_search that follows after the technical_question intent).

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