Hello. I’m trying to tun rasa with docker, but I’m getting the following errors:
rasa-service | 2020-04-24 16:37:12 ERROR rasa.core.agent - Could not load model due to Failed to find module 'rasa.nlu.featurizers.sparse_featurizer.lexical_syntactic_featurizer'.
rasa-service | No module named 'rasa.nlu.featurizers.sparse_featurizer.lexical_syntactic_featurizer'.
rasa-service | [2020-04-24 16:37:12 +0000] [1] [ERROR] Experienced exception while trying to serve
rasa-service | Traceback (most recent call last):
rasa-service | File "/build/lib/python3.6/site-packages/rasa/nlu/registry.py", line 155, in get_component_class
rasa-service | return class_from_module_path(component_name)
rasa-service | File "/build/lib/python3.6/site-packages/rasa/utils/common.py", line 198, in class_from_module_path
rasa-service | m = importlib.import_module(module_name)
rasa-service | File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module
rasa-service | return _bootstrap._gcd_import(name[level:], package, level)
rasa-service | File "<frozen importlib._bootstrap>", line 994, in _gcd_import
rasa-service | File "<frozen importlib._bootstrap>", line 971, in _find_and_load
rasa-service | File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
rasa-service | ModuleNotFoundError: No module named 'rasa.nlu.featurizers.sparse_featurizer.lexical_syntactic_featurizer'
rasa-service |
rasa-service | During handling of the above exception, another exception occurred:
rasa-service |
rasa-service | Traceback (most recent call last):
rasa-service | File "/build/lib/python3.6/site-packages/sanic/app.py", line 1133, in run
rasa-service | serve(**server_settings)
rasa-service | File "/build/lib/python3.6/site-packages/sanic/server.py", line 857, in serve
rasa-service | trigger_events(before_start, loop)
rasa-service | File "/build/lib/python3.6/site-packages/sanic/server.py", line 634, in trigger_events
rasa-service | loop.run_until_complete(result)
rasa-service | File "uvloop/loop.pyx", line 1456, in uvloop.loop.Loop.run_until_complete
rasa-service | File "/build/lib/python3.6/site-packages/rasa/core/run.py", line 247, in load_agent_on_start
rasa-service | action_endpoint=endpoints.action,
rasa-service | File "/build/lib/python3.6/site-packages/rasa/core/agent.py", line 272, in load_agent
rasa-service | remote_storage=remote_storage,
rasa-service | File "/build/lib/python3.6/site-packages/rasa/core/agent.py", line 961, in load_local_model
rasa-service | path_to_model_archive=model_archive,
rasa-service | File "/build/lib/python3.6/site-packages/rasa/core/agent.py", line 387, in load
rasa-service | interpreter = NaturalLanguageInterpreter.create(nlu_model)
rasa-service | File "/build/lib/python3.6/site-packages/rasa/core/interpreter.py", line 55, in create
rasa-service | return RasaNLUInterpreter(model_directory=obj)
rasa-service | File "/build/lib/python3.6/site-packages/rasa/core/interpreter.py", line 275, in __init__
rasa-service | self._load_interpreter()
rasa-service | File "/build/lib/python3.6/site-packages/rasa/core/interpreter.py", line 298, in _load_interpreter
rasa-service | self.interpreter = Interpreter.load(self.model_directory)
rasa-service | File "/build/lib/python3.6/site-packages/rasa/nlu/model.py", line 301, in load
rasa-service | return Interpreter.create(model_metadata, component_builder, skip_validation)
rasa-service | File "/build/lib/python3.6/site-packages/rasa/nlu/model.py", line 323, in create
rasa-service | components.validate_requirements(model_metadata.component_classes)
rasa-service | File "/build/lib/python3.6/site-packages/rasa/nlu/components.py", line 39, in validate_requirements
rasa-service | component_class = registry.get_component_class(component_name)
rasa-service | File "/build/lib/python3.6/site-packages/rasa/nlu/registry.py", line 181, in get_component_class
rasa-service | raise ModuleNotFoundError(exception_message)
rasa-service | ModuleNotFoundError: Failed to find module 'rasa.nlu.featurizers.sparse_featurizer.lexical_syntactic_featurizer'.
rasa-service | No module named 'rasa.nlu.featurizers.sparse_featurizer.lexical_syntactic_featurizer'
rasa-service | Traceback (most recent call last):
rasa-service | File "/build/lib/python3.6/site-packages/rasa/nlu/registry.py", line 155, in get_component_class
rasa-service | return class_from_module_path(component_name)
rasa-service | File "/build/lib/python3.6/site-packages/rasa/utils/common.py", line 198, in class_from_module_path
rasa-service | m = importlib.import_module(module_name)
rasa-service | File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module
rasa-service | return _bootstrap._gcd_import(name[level:], package, level)
rasa-service | File "<frozen importlib._bootstrap>", line 994, in _gcd_import
rasa-service | File "<frozen importlib._bootstrap>", line 971, in _find_and_load
rasa-service | File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
rasa-service | ModuleNotFoundError: No module named 'rasa.nlu.featurizers.sparse_featurizer.lexical_syntactic_featurizer'
rasa-service |
rasa-service | During handling of the above exception, another exception occurred:
rasa-service |
rasa-service | Traceback (most recent call last):
rasa-service | File "/build/bin/rasa", line 8, in <module>
rasa-service | sys.exit(main())
rasa-service | File "/build/lib/python3.6/site-packages/rasa/__main__.py", line 76, in main
rasa-service | cmdline_arguments.func(cmdline_arguments)
rasa-service | File "/build/lib/python3.6/site-packages/rasa/cli/run.py", line 83, in run
rasa-service | rasa.run(**vars(args))
rasa-service | File "/build/lib/python3.6/site-packages/rasa/run.py", line 56, in run
rasa-service | **kwargs,
rasa-service | File "/build/lib/python3.6/site-packages/rasa/core/run.py", line 206, in serve_application
rasa-service | endpoints.lock_store if endpoints else None
rasa-service | File "/build/lib/python3.6/site-packages/sanic/app.py", line 1133, in run
rasa-service | serve(**server_settings)
rasa-service | File "/build/lib/python3.6/site-packages/sanic/server.py", line 857, in serve
rasa-service | trigger_events(before_start, loop)
rasa-service | File "/build/lib/python3.6/site-packages/sanic/server.py", line 634, in trigger_events
rasa-service | loop.run_until_complete(result)
rasa-service | File "uvloop/loop.pyx", line 1456, in uvloop.loop.Loop.run_until_complete
rasa-service | File "/build/lib/python3.6/site-packages/rasa/core/run.py", line 247, in load_agent_on_start
rasa-service | action_endpoint=endpoints.action,
rasa-service | File "/build/lib/python3.6/site-packages/rasa/core/agent.py", line 272, in load_agent
rasa-service | remote_storage=remote_storage,
rasa-service | File "/build/lib/python3.6/site-packages/rasa/core/agent.py", line 961, in load_local_model
rasa-service | path_to_model_archive=model_archive,
rasa-service | File "/build/lib/python3.6/site-packages/rasa/core/agent.py", line 387, in load
rasa-service | interpreter = NaturalLanguageInterpreter.create(nlu_model)
rasa-service | File "/build/lib/python3.6/site-packages/rasa/core/interpreter.py", line 55, in create
rasa-service | return RasaNLUInterpreter(model_directory=obj)
rasa-service | File "/build/lib/python3.6/site-packages/rasa/core/interpreter.py", line 275, in __init__
rasa-service | self._load_interpreter()
rasa-service | File "/build/lib/python3.6/site-packages/rasa/core/interpreter.py", line 298, in _load_interpreter
rasa-service | self.interpreter = Interpreter.load(self.model_directory)
rasa-service | File "/build/lib/python3.6/site-packages/rasa/nlu/model.py", line 301, in load
rasa-service | return Interpreter.create(model_metadata, component_builder, skip_validation)
rasa-service | File "/build/lib/python3.6/site-packages/rasa/nlu/model.py", line 323, in create
rasa-service | components.validate_requirements(model_metadata.component_classes)
rasa-service | File "/build/lib/python3.6/site-packages/rasa/nlu/components.py", line 39, in validate_requirements
rasa-service | component_class = registry.get_component_class(component_name)
rasa-service | File "/build/lib/python3.6/site-packages/rasa/nlu/registry.py", line 181, in get_component_class
rasa-service | raise ModuleNotFoundError(exception_message)
rasa-service | ModuleNotFoundError: Failed to find module 'rasa.nlu.featurizers.sparse_featurizer.lexical_syntactic_featurizer'.
rasa-service | No module named 'rasa.nlu.featurizers.sparse_featurizer.lexical_syntactic_featurizer'
I’m using rasa/rasa-sdk:1.7.0 and rasa/rasa:1.7.0. What can I do?