Skip to content
Discussion options

You must be logged in to vote

The Agenta Python module requires Python 3.11 or newer. The error you're seeing (unsupported operand type(s) for |) happens because Agenta uses union types with the | operator, which is only supported in Python 3.10+—and the package specifically requires at least Python 3.11 as defined in its configuration files. To resolve this, upgrade your Python interpreter to 3.11 or later and reinstall the package. Other common prerequisites include Docker and git, but using the correct Python version is essential for the package to work properly.
You can see the Python version requirement in the project's configuration: pyproject.toml.

To reply, just mention @dosu.


How did I do? Good | Irrelevant |

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by vjeantet
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants