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.37k stars 228 forks source link

installion error #26

Open babasahebpinjar opened 1 year ago

babasahebpinjar commented 1 year ago

I am getting this error on make install

[+] Building 2.7s (8/8)
=> [rasa-actions internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 32B 0.0s => [rasa-actions internal] load .dockerignore 0.0s => => transferring context: 34B 0.0s => [rasa-actions internal] load metadata for docker.io/khalosa/rasa-aarc 0.3s => [rasa-actions internal] load build context 0.0s => => transferring context: 555B 0.0s => [rasa-actions 1/4] FROM docker.io/khalosa/rasa-aarch64:3.5.2@sha256:4 0.0s => CACHED [rasa-actions 2/4] COPY . /app 0.0s => CACHED [rasa-actions 3/4] WORKDIR /app 0.0s => ERROR [rasa-actions 4/4] RUN pip install python-dotenv rasa-sdk reque 0.4s ^Z

babasahebpinjar commented 1 year ago

I have changed

sudo chmod +x app/rasa/wait-for-it.sh

FROM khalosa/rasa-aarch64:3.5.2 to FROM rasa/rasa:latest in app/rasa/actions/Dockerfile

rasa-core:
#image: khalosa/rasa-aarch64:3.5.2
image: rasa/rasa:latest
in docker-compose.yml

Even added user: 1000:1000 in docker-compose.yml as below

Rasa credentials helper service

rasa-credentials: user: 1000:1000

and

Postgres database service

db: user: 1000:1000

restarted the service but still getting the error as below in ubuntu machine

=> ERROR [rasa-actions 4/4] RUN pip install python-dotenv rasa-sdk requests

SingularityLab commented 1 year ago

Same error! Any fix? @babasahebpinjar

babasahebpinjar commented 1 year ago

No. I guess it works only on MACos.

fjcondy commented 1 year ago

i have same error, install in linux. can resovle add root user .
modify app/rasa/actions/Dockerfile: `

FROM khalosa/rasa-aarch64:3.5.2

FROM rasa/rasa:latest

COPY . /app

WORKDIR /app USER root

because current user is rasa

RUN whoami

RUN pip3 install python-dotenv &&\ pip3 install --no-cache-dir rasa-sdk requests USER rasa EXPOSE 5055

CMD ["run", "actions", "--debug"] `

babasahebpinjar commented 1 year ago

Thanks fjcondy.

it is working only with

USER root

nitishymtpl commented 1 year ago

@babasahebpinjar, @fjcondy : Are you able to successfully install it?

babasahebpinjar commented 1 year ago

Hey @nitishymtpl I was able to solve it with USER as root.

nitishymtpl commented 1 year ago

@babasahebpinjar : Oh, It works, thanks! that error got fixed.

But there seem issue with DB. Do we need to make changes?

Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1910, in _execute_context self.dialect.do_execute( File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 736, in do_execute cursor.execute(statement, parameters) psycopg2.errors.UndefinedFunction: operator does not exist: entity_status = integer LINE 3: ...splay_name = 'project-pepetamine.md' AND document.status = 2 ^ HINT: No operator matches the given name and argument types. You might need to add explicit type casts.

babasahebpinjar commented 1 year ago

I got it up and did a POC which didnt move forward so I am not working on that anymore.

I didn't get this DB error back then.

nitishymtpl commented 1 year ago

oh, I see. It doesn't seems to work. Need to check it :).