I am trying to train the model I just downloaded from the tutorial. However I get an ImportError: ImportError: DLL load failed
and ImportError: Cannot retrieve policy from path 'MemoizationPolicy'
:
(rasa_venv) (homework3) C:\Users\antoi\Documents\Programming\Rasa>rasa train
Training Core model...
Traceback (most recent call last):
File "c:\users\antoi\documents\programming\rasa_venv\lib\site-packages\rasa\core\registry.py", line 21, in policy_from_module_path
module_path, lookup_path="rasa.core.policies.registry"
File "c:\users\antoi\documents\programming\rasa_venv\lib\site-packages\rasa\utils\common.py", line 208, in class_from_module_path
m = importlib.import_module(lookup_path)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2032.0_x64__qbz5n2kfra8p0\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "c:\users\antoi\documents\programming\rasa_venv\lib\site-packages\rasa\core\policies\registry.py", line 5, in <module>
from rasa.core.policies.ted_policy import TEDPolicy
File "c:\users\antoi\documents\programming\rasa_venv\lib\site-packages\rasa\core\policies\ted_policy.py", line 26, in <module>
from rasa.utils.tensorflow.models import RasaModel
File "c:\users\antoi\documents\programming\rasa_venv\lib\site-packages\rasa\utils\tensorflow\models.py", line 12, in <module>
from rasa.utils.tensorflow.model_data import RasaModelData, FeatureSignature
File "c:\users\antoi\documents\programming\rasa_venv\lib\site-packages\rasa\utils\tensorflow\model_data.py", line 7, in <module>
from sklearn.model_selection import train_test_split
File "c:\users\antoi\documents\programming\rasa_venv\lib\site-packages\sklearn\__init__.py", line 82, in <module>
from .base import clone
File "c:\users\antoi\documents\programming\rasa_venv\lib\site-packages\sklearn\base.py", line 20, in <module>
from .utils import _IS_32BIT
File "c:\users\antoi\documents\programming\rasa_venv\lib\site-packages\sklearn\utils\__init__.py", line 27, in <module>
from .fixes import np_version
File "c:\users\antoi\documents\programming\rasa_venv\lib\site-packages\sklearn\utils\fixes.py", line 18, in <module>
import scipy.stats
File "C:\Users\antoi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\scipy\stats\__init__.py", line 384, in <module>
from .stats import *
File "C:\Users\antoi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\scipy\stats\stats.py", line 179, in <module>
from scipy.spatial.distance import cdist
File "C:\Users\antoi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\scipy\spatial\__init__.py", line 102, in <module>
from ._procrustes import procrustes
File "C:\Users\antoi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\scipy\spatial\_procrustes.py", line 11, in <module>
from scipy.linalg import orthogonal_procrustes
File "C:\Users\antoi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\scipy\linalg\__init__.py", line 195, in <module>
from .misc import *
File "C:\Users\antoi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\scipy\linalg\misc.py", line 5, in <module>
from .blas import get_blas_funcs
File "C:\Users\antoi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\scipy\linalg\blas.py", line 215, in <module>
from scipy.linalg import _fblas
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\antoi\documents\programming\rasa_venv\lib\site-packages\rasa\core\policies\ensemble.py", line 308, in from_dict
constr_func = registry.policy_from_module_path(policy_name)
File "c:\users\antoi\documents\programming\rasa_venv\lib\site-packages\rasa\core\registry.py", line 24, in policy_from_module_path
raise ImportError(f"Cannot retrieve policy from path '{module_path}'")
ImportError: Cannot retrieve policy from path 'MemoizationPolicy'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2032.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2032.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\antoi\Documents\Programming\rasa_venv\Scripts\rasa.exe\__main__.py", line 7, in <module>
File "c:\users\antoi\documents\programming\rasa_venv\lib\site-packages\rasa\__main__.py", line 91, in main
cmdline_arguments.func(cmdline_arguments)
File "c:\users\antoi\documents\programming\rasa_venv\lib\site-packages\rasa\cli\train.py", line 76, in train
additional_arguments=extract_additional_arguments(args),
File "c:\users\antoi\documents\programming\rasa_venv\lib\site-packages\rasa\train.py", line 50, in train
additional_arguments=additional_arguments,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2032.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 587, in run_until_complete
return future.result()
File "c:\users\antoi\documents\programming\rasa_venv\lib\site-packages\rasa\train.py", line 101, in train_async
additional_arguments,
File "c:\users\antoi\documents\programming\rasa_venv\lib\site-packages\rasa\train.py", line 188, in _train_async_internal
additional_arguments=additional_arguments,
File "c:\users\antoi\documents\programming\rasa_venv\lib\site-packages\rasa\train.py", line 223, in _do_training
additional_arguments=additional_arguments,
File "c:\users\antoi\documents\programming\rasa_venv\lib\site-packages\rasa\train.py", line 361, in _train_core_with_validated_data
additional_arguments=additional_arguments,
File "c:\users\antoi\documents\programming\rasa_venv\lib\site-packages\rasa\core\train.py", line 43, in train
policies = config.load(policy_config)
File "c:\users\antoi\documents\programming\rasa_venv\lib\site-packages\rasa\core\config.py", line 28, in load
return PolicyEnsemble.from_dict(config_data)
File "c:\users\antoi\documents\programming\rasa_venv\lib\site-packages\rasa\core\policies\ensemble.py", line 319, in from_dict
"".format(policy_name)
rasa.core.policies.ensemble.InvalidPolicyConfig: Module for policy 'MemoizationPolicy' could not be loaded. Please make sure the name is a valid policy.
I am on Windows 10. I already tried this solution, without success.
pip list
(rasa_env2) C:\Users\antoi\Documents\Programming\Rasa>pip list | findstr tensorflow
tensorflow 1.15.0
tensorflow-addons 0.8.3
tensorflow-estimator 1.15.1
tensorflow-hub 0.7.0
tensorflow-probability 0.7.0