cohere-ai/cohere-toolkit

Support python>=3.12.0

a-romero opened this issue · 2 comments

What feature(s) would you like to see?

When trying to build the project from scratch poetry fails on my default version of Python (3.12.3). The project should ideally support the 3.12 branch.

Additional information

`make first-run  ✔  cohere-toolkit 
make setup
make[1]: Entering directory '/home/alberto/lab/cohere-toolkit'
poetry install --with setup,community --verbose

InvalidCurrentPythonVersionError

Current Python version (3.12.3) is not allowed by the project (~3.11).
Please change python executable via the "env use" command.

at /usr/lib/python3.12/site-packages/poetry/utils/env/env_manager.py:454 in create_venv
450│ current_python = Version.parse(
451│ ".".join(str(c) for c in env.version_info[:3])
452│ )
453│ if not self._poetry.package.python_constraint.allows(current_python):
→ 454│ raise InvalidCurrentPythonVersionError(
455│ self._poetry.package.python_versions, str(current_python)
456│ )
457│ return env
458│
make[1]: *** [Makefile:23: setup] Error 1
make[1]: Leaving directory '/home/alberto/lab/cohere-toolkit'
make: *** [Makefile:32: first-run] Error 2`

We don't have any short term plans to support Python 3.12. For now, I suggest using poetry env use 3.11 and using Python 3.11

Closing this