Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup can only be run by python 3.10 or newer #96

Open
HappyEureka opened this issue Oct 11, 2023 · 0 comments
Open

setup can only be run by python 3.10 or newer #96

HappyEureka opened this issue Oct 11, 2023 · 0 comments

Comments

@HappyEureka
Copy link

HappyEureka commented Oct 11, 2023

Using Python 3.9.12 resulted in the following error (here is an useful discussion https://bugs.python.org/issue42233):

Installing the current project: 101-ai (0.1.0)
Seed the database...
Traceback (most recent call last):
File "", line 1, in
File "/Users/alberty/miniforge3/envs/gpteam/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/Users/alberty/Desktop/research/GPTeam/src/utils/database/reset.py", line 8, in
from .seed import seed
File "/Users/alberty/Desktop/research/GPTeam/src/utils/database/seed.py", line 6, in
from src.utils.database.client import get_database
File "/Users/alberty/Desktop/research/GPTeam/src/utils/database/client.py", line 5, in
from src.utils.database.sqlite import SqliteDatabase
File "/Users/alberty/Desktop/research/GPTeam/src/utils/database/sqlite.py", line 33, in
class SqliteDatabase(DatabaseProviderSingleton):
File "/Users/alberty/Desktop/research/GPTeam/src/utils/database/sqlite.py", line 121, in SqliteDatabase
self, table: Tables, data: dict | list[dict], upsert=False
TypeError: unsupported operand type(s) for |: 'type' and 'types.GenericAlias'
Traceback (most recent call last):
File "/Users/alberty/Desktop/research/GPTeam/setup.py", line 66, in
subprocess.run(["poetry", "run", "db-reset"], check=True)
File "/Users/alberty/miniforge3/envs/gpteam/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['poetry', 'run', 'db-reset']' returned non-zero exit status 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant