-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
No module named 'exceptiongroup' #12177
Comments
Okay I see what's happened. For some reason, the The dep. is listed here Line 43 in 381593c
Best |
same install problem here on python3.10 why this external dependency in the first place? especially in light of recent supply chain attacks |
@whateverforever You'll need to install pytest properly then, this it not a pytest issue. I feel like I'm stating the obvious here, but the response to supply chain attacks is not to stop using dependencies altogether and reinventing the wheel every time. The dependency is used to provide support for exception groups on older Python versions. |
sure, every dependency is used for something. but why use a python3.11 feature if you want to support older versions? there are dependencies on which you depend, and there is fluff. |
You're free to use Python 3.11, in which case the backport isn't installed. 🤷 |
Just to clarify: we need to support the Python 3.11 feature in the same code base, that's why the backport is used. Note also that users in older versions might also be using the backport, in which case pytest will work as well. |
Hello,
I'm getting an error when trying to run pytest.
I'm on Python 3.10 and from what I can find, pytest supports 3.8+
ExceptionGroup was only added in Python 3.11
(see https://docs.python.org/3.11/library/exceptions.html#exception-groups vs 3.10)
The following line is causing the issue:
pytest/src/_pytest/_code/code.py
Line 55 in 381593c
I don't understand how I can be the first to pick up on this though so I'm pretty wary posting this issue.
Here are my versions:
The text was updated successfully, but these errors were encountered: