Skip to content

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

@HappyEureka

Description

@HappyEureka

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions