paulpierre / RasaGPT

💬 RasaGPT is the first headless LLM chatbot platform built on top of Rasa and Langchain. Built w/ Rasa, FastAPI, Langchain, LlamaIndex, SQLModel, pgvector, ngrok, telegram
https://rasagpt.dev
MIT License
2.36k stars 227 forks source link

Make install ERROR Error response from daemon is not running #59

Closed maiduchuy321 closed 1 year ago

maiduchuy321 commented 1 year ago

Hi, I have a problem when install RasaGPT == make install. I using window 11 I also change rasa/rasa:latest and add USER root to RasaGPT\app\rasa\actions and user: "root:root" to rasa-core, rasa-actions , 'rasa-credentials'. I almost done but found error

make[2]: Leaving directory 'C:/Users/maidu/RasaGPT' Error response from daemon: Container aa9703a170e87b8d3e0cfce416c45e4ffda368c951f889674ee5aa0f4dc85c89 is not running make[1]: [Makefile:286: rasa-train] Error 1 make[1]: Leaving directory 'C:/Users/maidu/RasaGPT' make: [Makefile:57: install] Error 2

Please help me ! Thanks.

VeronStudio commented 1 year ago

I'm assuming it's the rasa-core container not running. You can look into you docker desktop and click on the container named "chat_rasa_core ", you should be able to see the logs on why it exited.

maiduchuy321 commented 1 year ago

I'm assuming it's the rasa-core container not running. You can look into you docker desktop and click on the container named "chat_rasa_core ", you should be able to see the logs on why it exited.

Thank you for taking the time to help me, But when i see in docker it shows up


2023-11-21 03:23:13 chat_rasa_actions      | /opt/venv/lib/python3.10/site-packages/rasa/core/tracker_store.py:1042: MovedIn20Warning: Deprecated API features detected! These feature(s) are not compatible with SQLAlchemy 2.0. To prevent incompatible upgrades prior to updating applications, ensure requirements files are pinned to "sqlalchemy<2.0". Set environment variable SQLALCHEMY_WARN_20=1 to show all deprecation warnings.  Set environment variable SQLALCHEMY_SILENCE_UBER_WARNING=1 to silence this message. (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9)
2023-11-21 03:23:13 chat_rasa_actions      |   Base: DeclarativeMeta = declarative_base()
2023-11-21 03:23:14 chat_rasa_actions      | 2023-11-20 20:23:14 DEBUG    rasa.telemetry  - Could not read telemetry settings from configuration file: Configuration 'metrics' key not found.
2023-11-21 03:23:14 chat_rasa_actions      | /opt/venv/lib/python3.10/site-packages/pkg_resources/__init__.py:121: DeprecationWarning: pkg_resources is deprecated as an API
2023-11-21 03:23:14 chat_rasa_actions      |   warnings.warn("pkg_resources is deprecated as an API", DeprecationWarning)
2023-11-21 03:23:14 chat_rasa_actions      | /opt/venv/lib/python3.10/site-packages/pkg_resources/__init__.py:2870: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('google')`.
2023-11-21 03:23:14 chat_rasa_actions      | Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
2023-11-21 03:23:14 chat_rasa_actions      |   declare_namespace(pkg)
2023-11-21 03:23:14 chat_rasa_actions      | /opt/venv/lib/python3.10/site-packages/pkg_resources/__init__.py:2870: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('mpl_toolkits')`.
2023-11-21 03:23:14 chat_rasa_actions      | Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
2023-11-21 03:23:14 chat_rasa_actions      |   declare_namespace(pkg)
2023-11-21 03:23:14 chat_rasa_actions      | /opt/venv/lib/python3.10/site-packages/pkg_resources/__init__.py:2870: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('ruamel')`.
2023-11-21 03:23:14 chat_rasa_actions      | Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
2023-11-21 03:23:14 chat_rasa_actions      |   declare_namespace(pkg)
2023-11-21 03:23:14 chat_rasa_actions      | /opt/venv/lib/python3.10/site-packages/pkg_resources/__init__.py:2870: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('ruamel.yaml')`.
2023-11-21 03:23:14 chat_rasa_actions      | Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
2023-11-21 03:23:14 chat_rasa_actions      |   declare_namespace(pkg)
2023-11-21 03:23:14 chat_rasa_actions      | <frozen importlib._bootstrap>:283: DeprecationWarning: the load_module() method is deprecated and slated for removal in Python 3.12; use exec_module() instead
2023-11-21 03:23:14 chat_rasa_actions      | /opt/venv/lib/python3.10/site-packages/sanic_cors/extension.py:39: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
2023-11-21 03:23:14 chat_rasa_actions      |   SANIC_VERSION = LooseVersion(sanic_version)
2023-11-21 03:23:14 chat_rasa_actions      | 2023-11-20 20:23:14 INFO     rasa_sdk.endpoint  - Starting action endpoint server...
2023-11-21 03:23:14 chat_rasa_actions      | 2023-11-20 20:23:14 INFO     rasa_sdk.executor  - Registered function for 'action_gpt_fallback'.
2023-11-21 03:23:14 chat_rasa_actions      | 2023-11-20 20:23:14 INFO     rasa_sdk.endpoint  - Starting plugins...
2023-11-21 03:23:14 chat_rasa_actions      | 2023-11-20 20:23:14 INFO     rasa_sdk.plugin  - No plugins found
2023-11-21 03:23:14 chat_rasa_actions      | Traceback (most recent call last):
2023-11-21 03:23:14 chat_rasa_actions      |   File "/opt/venv/lib/python3.10/site-packages/rasa_sdk/plugin.py", line 26, in _discover_plugins
2023-11-21 03:23:14 chat_rasa_actions      |     import rasa_sdk_plugins
2023-11-21 03:23:14 chat_rasa_actions      | ModuleNotFoundError: No module named 'rasa_sdk_plugins'
2023-11-21 03:23:14 chat_rasa_actions      | 2023-11-20 20:23:14 INFO     rasa_sdk.endpoint  - Action endpoint is up and running on http://0.0.0.0:5055
2023-11-21 03:23:14 chat_rasa_actions      | 2023-11-20 20:23:14 DEBUG    rasa_sdk.utils  - Using the default number of Sanic workers (1).

I think bug it's No module named 'rasa_sdk_plugins', i tried installing rasa_sdk manually with pip install rasa_sdk but when I used the make install command again it still didn't work.

If you know what the error is, please help me,Thanks.

VeronStudio commented 1 year ago

the rasa_sdk is installed in its own docker environment/container, so the rasa_sdk you installed manually is not being used in its docker container. However, the main issue here is presumably the problem with rasa_sdk itself. I tried searching online and it seems like the most reliable solution is to downgrade rasa_sdk to version 3.5 (presumably rasa_sdk 3.6 is being installed with the original settings). So you have to modify the pip install line in Docker file of rasa-actions to something like this:

RUN pip install python-dotenv rasa-sdk==3.5.0 requests

you might have to run 'make purge' instead of 'make install'. I'm just started learning how to use docker these few days trying to get this repo working and am also facing the same problem as you do, so not sure if my solution will work lol.

maiduchuy321 commented 1 year ago

the rasa_sdk is installed in its own docker environment/container, so the rasa_sdk you installed manually is not being used in its docker container. However, the main issue here is presumably the problem with rasa_sdk itself. I tried searching online and it seems like the most reliable solution is to downgrade rasa_sdk to version 3.5 (presumably rasa_sdk 3.6 is being installed with the original settings). So you have to modify the pip install line in Docker file of rasa-actions to something like this:

RUN pip install python-dotenv rasa-sdk==3.5.0 requests

you might have to run 'make purge' instead of 'make install'. I'm just started learning how to use docker these few days trying to get this repo working and am also facing the same problem as you do, so not sure if my solution will work lol.

Thanks, It's work Your help is very helpful to me