Open programmeddeath1 opened 3 years ago
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).
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.