Skip to content
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' when upgraded to starlette 0.31.0 #2227

Closed
sfc-gh-shchen opened this issue Jul 25, 2023 · 4 comments · Fixed by #2231
Closed

No module named 'exceptiongroup' when upgraded to starlette 0.31.0 #2227

sfc-gh-shchen opened this issue Jul 25, 2023 · 4 comments · Fixed by #2231

Comments

@sfc-gh-shchen
Copy link

After upgrading to starlette 0.31.0 today, we run into the following exception when importing starlette:

from starlette import applications, requests, responses, routing
2023-07-24 15:47:43    File "/opt/conda/lib/python3.8/site-packages/starlette/applications.py", line 8, in <module>
2023-07-24 15:47:43      from starlette.middleware.base import BaseHTTPMiddleware
2023-07-24 15:47:43    File "/opt/conda/lib/python3.8/site-packages/starlette/middleware/base.py", line 14, in <module>
2023-07-24 15:47:43      from exceptiongroup import BaseExceptionGroup
2023-07-24 15:47:43  ModuleNotFoundError: No module named 'exceptiongroup'

This is likely introduced from /~https://github.com/encode/starlette/pull/2211/files

@Kludex
Copy link
Member

Kludex commented Jul 26, 2023

I'm struggling with time, but I'll fix in the weekend if no ones open a PR to wrap it with a try..except ModuleImportError.

@benjaminpkane
Copy link

Can 0.31.0 be yanked? This is breaking installs for fiftyone

@tlpss
Copy link

tlpss commented Aug 21, 2023

Can 0.31.0 be yanked? This is breaking installs for fiftyone

Also encountered issues when using fiftyone. Manually pip installing exceptiongroup seems to fix the issue

@Kludex
Copy link
Member

Kludex commented Aug 21, 2023

I'll release 0.31.1 shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants