(base) user@user-HP-ProBook-450-G4:~$ sudo docker run -v models:/app/nlu-models -p 5000:5000 rasa/rasa_nlu:latest start --path /app/nlu-models
[sudo] password for user:
Traceback (most recent call last):
File “/usr/local/lib/python3.6/runpy.py”, line 193, in _run_module_as_main
“main”, mod_spec)
File “/usr/local/lib/python3.6/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/app/rasa/core/run.py”, line 201, in
raise RuntimeError("Calling rasa.core.run
directly is "
RuntimeError: Calling rasa.core.run
directly is no longer supported. Please use rasa shell
instead.
I couldn’t understand this error. I try to start docker. Can you help?
Hi @jonahgeladze,
Did you found the solution for this problem ? I’m currently facing the same issue.
#Sending you my docker file. Copy in yours. This helped me.
##############################
FROM python:3.6-slim
ENV RASA_NLU_DOCKER=“YES”
RASA_NLU_HOME=/app
RASA_NLU_PYTHON_PACKAGES=/usr/local/lib/python3.6/dist-packages
Run updates, install basics and cleanup
- build-essential: Compile specific dependencies
- git-core: Checkout git repos
RUN apt-get update -qq
&& apt-get install -y --no-install-recommends build-essential git-core
&& apt-get clean
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
WORKDIR /usr/src/app
COPY . /usr/src/app
RUN pip install -r requirements.txt
RUN python -m spacy download en
VOLUME ["/app/projects", “/app/logs”, “/app/data”]
EXPOSE 5000
ENTRYPOINT ["./entrypoint.sh"]
CMD [“start”, “-c”, “nlu_config.yml”, “–path”, “/app/projects”]
1 Like