Using 'make models' can not create 'API' database
maiduchuy321 opened this issue · comments
FATAL: database "api" does not exist
Hi,
I have a problem when install RasaGPT == make models
. I using window 11
When i using make models
Terminal error message:
sqlalchemy.exc.ArgumentError: Textual SQL expression 'CREATE EXTENSION IF NOT E...' should be explicitly declared as text('CREATE EXTENSION IF NOT E...')
Therefore
I fix it I fix it by change ' query = "CREATE EXTENSION IF NOT EXISTS vector;" ' in line 619 file models.py to query = text("CREATE EXTENSION IF NOT EXISTS vector;")
and add sqlalchemy import text
.
But when i using make models
again, another bug found:
sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "db" (172.30.0.6), port 5432 failed: FATAL: database "api" does not exist
And i have no ideas to fix it.
If you no please help me !!!
Many thanks.
Howdy. I'm not a developer, but I had the same issue.
You should go to the database container make shell-db
and run this script /docker-entrypoint-initdb.d/create_db.sh
It will create the database. Also you should change all queries in model.py
by adding text conversion of each.
Howdy. I'm not a developer, but I had the same issue. You should go to the database container
make shell-db
and run this script/docker-entrypoint-initdb.d/create_db.sh
It will create the database. Also you should change all queries inmodel.py
by adding text conversion of each.
Can you explain this further, I'm new to docker, and when I try to make shell-db
, I get the container chat-db
not running error, when I try to run the container I get the container not exists error. Please write all the commands to here you wrote on your system.