I am trying to use rasa with Docker.
I can’t seem to make action server run. When I do docker-compose up, I got the following error
I’ve read all similar topics. I’ve moved actions.py in the current folder too, nothing seems to work.
action_server_1 | 2019-05-28 08:18:16 INFO rasa_sdk.endpoint - Starting action endpoint server...
action_server_1 | 2019-05-28 08:18:16 ERROR rasa_sdk.executor - Failed to register package 'actions.actions'.
action_server_1 | Traceback (most recent call last):
action_server_1 | File "/app/rasa_sdk/executor.py", line 175, in register_package
action_server_1 | self._import_submodules(package)
action_server_1 | File "/app/rasa_sdk/executor.py", line 162, in _import_submodules
action_server_1 | package = importlib.import_module(package)
action_server_1 | File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module
action_server_1 | return _bootstrap._gcd_import(name[level:], package, level)
action_server_1 | File "<frozen importlib._bootstrap>", line 994, in _gcd_import
action_server_1 | File "<frozen importlib._bootstrap>", line 971, in _find_and_load
action_server_1 | File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
action_server_1 | ModuleNotFoundError: No module named 'actions.actions'
To resolve this issue, I deleted all images and containers present on my computer and restarted the process from scratch and doker-compose worked, and the customed actions got registrated.
To delete (all) images and containers:
docker system prune --all
docker image prune --all
@tatia, thanks for the post, it’s very helpful. The latest is 3.4 now. In docker-compose.yml, the services are as below, but no “rasa” and “action_server”. Do you know how to deal with it?