Open agoodfellow123 opened 10 months ago
Solved, run chmod -R 777 .
on the root folder of the project.
However, I've hit a new wall:
Building models in Postgres ..\n
wait-for-it.sh: waiting 60 seconds for db:5432 to be available (tcp)
wait-for-it.sh: timeout occurred after waiting 60 seconds for db:5432
INFO:config:...Enabling pgvector and creating database tables
...Enabling pgvector and creating database tables
Traceback (most recent call last):
File "/app/api/models.py", line 660, in <module>
create_db()
File "/app/api/models.py", line 586, in create_db
enable_vector()
File "/app/api/models.py", line 619, in enable_vector
session.execute(query)
File "/usr/local/lib/python3.9/site-packages/sqlmodel/orm/session.py", line 129, in execute
return super().execute(
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/session.py", line 2308, in execute
return self._execute_internal(
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/session.py", line 2088, in _execute_internal
statement = coercions.expect(roles.StatementRole, statement)
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/sql/coercions.py", line 413, in expect
resolved = impl._literal_coercion(
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/sql/coercions.py", line 638, in _literal_coercion
return self._text_coercion(element, argname, **kw)
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/sql/coercions.py", line 631, in _text_coercion
return _no_text_coercion(element, argname)
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/sql/coercions.py", line 601, in _no_text_coercion
raise exc_cls(
sqlalchemy.exc.ArgumentError: Textual SQL expression 'CREATE EXTENSION IF NOT E...' should be explicitly declared as text('CREATE EXTENSION IF NOT E...')
make[1]: *** [Makefile:199: models] Error 1
make[1]: Leaving directory '/home/user/Projects/RasaGPT'
make: *** [Makefile:60: install] Error 2
hi! meet the same error as yours. Did you solve this?
Traceback (most recent call last):
File "/app/api/models.py", line 660, in <module>
create_db()
File "/app/api/models.py", line 586, in create_db
enable_vector()
File "/app/api/models.py", line 619, in enable_vector
session.execute(query)
File "/usr/local/lib/python3.9/site-packages/sqlmodel/orm/session.py", line 129, in execute
return super().execute(
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/session.py", line 2308, in execute
return self._execute_internal(
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/session.py", line 2088, in _execute_internal
statement = coercions.expect(roles.StatementRole, statement)
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/sql/coercions.py", line 413, in expect
resolved = impl._literal_coercion(
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/sql/coercions.py", line 638, in _literal_coercion
return self._text_coercion(element, argname, **kw)
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/sql/coercions.py", line 631, in _text_coercion
return _no_text_coercion(element, argname)
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/sql/coercions.py", line 601, in _no_text_coercion
raise exc_cls(
sqlalchemy.exc.ArgumentError: Textual SQL expression 'CREATE EXTENSION IF NOT E...' should be explicitly declared as text('CREATE EXTENSION IF NOT E...')
make[1]: *** [models] Error 1
make: *** [install] Error 2
Key points:
sudo chown -R 1000:1000 .
on the root directory of the project