-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
exceptiongroup python version import check not compatible with poetry/virtualenv #10956
Comments
You mean https://github.com/pytest-dev/pytest/blob/main/setup.cfg#L51 Please verify if this is a poetry issue Based on the spec it should work |
I don't think it's about the line you mention. I will continue to investigate to check if there's anything I missed in the pipepilne. |
Indeed it does not seem to be a problem with pytest.
Still no idea what's going on... |
Is the poetry dependency resolver running on the right python version? |
I encountered this issue. In my case, I started with a Python 3.11 dev container with poetry pegged to the 3.11 version. I opened up the version to 3.10 but forgot to rebuild the poetry lock file. The fix was to run |
I'm hitting a problem where using poetry (together with Tox testing matrix) will fail system checks introduced in #10209
Indeed the python version installed system wide is 3.11, but when testing with multiple python versions with Tox and virtual envs, this fails, because the system installed python and environment python is not the same. So
Will try to import
BaseExceptionGroup
even though it's being ran in Python <= 3.10Is it possible to use env markers instead?
https://peps.python.org/pep-0508/#environment-markers
Related:
python-poetry/poetry#758
Trace:
The text was updated successfully, but these errors were encountered: