I’m getting quite a few errors while trying to run rasa interactive through docker. I had recently upgraded to 1.5.1 for both rasa and rasa-sdk. Here are my docker files for both -
FROM rasa/rasa:latest-full
EXPOSE 5005
COPY . /app/
FROM rasa/rasa-sdk:latest
EXPOSE 5055
COPY actions.py /app/actions/actions.py
My rasa-compose.yml file is as follows -
version: '3.4'
services:
rasa:
image: sample-rasa-core:latest
ports:
- 5005:5005
command: ["run", "--enable-api", "--cors", " \"*\"", "--verbose"]
rasa-duckling:
image: rasa/duckling:latest
rasa-action-server:
image: sample-rasa-action-server:latest
command: ["start", "--actions", "actions", "-vv"]
# volumes:
# - ./actions.py:/app/actions.py
I’m first running -
docker build -t sample-rasa-core . && docker build -t sample-rasa-action-server -f Dockerfile.actionserver . && docker-compose -f rasa-compose.yml up
upon which I get the Tensorflow error as noted here - Tensorflow driver : UNKNOWN ERROR (303).
And then when I try to run rasa interactive through this command -
docker run -it -v $(pwd):/app --name=rasa-interactive --network=rasa_default sample-rasa-core interactive
I get these errors -
ERROR rasa.core.training.interactive - An exception occurred while recording messages. Traceback (most recent call last): File “/build/lib/python3.6/site-packages/yarl/init.py”, line 667, in _encode_host ip = ip_address(ip) File “/usr/local/lib/python3.6/ipaddress.py”, line 54, in ip_address address) ValueError: ‘localhost’ does not appear to be an IPv4 or IPv6 address
and
AttributeError: ‘str’ object has no attribute ‘isascii’ 2019-12-02 21:30:19 ERROR asyncio - Task exception was never retrieved future: <Task finished coro=<_serve_application..run_interactive_io() done, defined at /build/lib/python3.6/site-packages/rasa/core/training/interactive.py:1452> exception=AttributeError(“‘str’ object has no attribute ‘isascii’”,)>`
Can someone help me how to fix? Am I missing a step in the overall upgrade to 1.5.x?