-
-
Notifications
You must be signed in to change notification settings - Fork 431
Bug: ImportError: cannot import name 'MultipartSegment' from 'multipart'
#4000
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
Comments
have you tried just recreating your venv entirely ? |
Figured it out. There is a packaged named It gets better, I never installed So statistically, there is a high chance this errors pops up for more Litestar users as they upgrade. For now I just uninstalled |
what happened is previous litestar version used for whatever reason the upgrade didnt remove that package, and we now use multipart as you noticed, there is some namespace clashes between both libraries, hence your error. on the download difference I'd say dont judge package by that, instead take a look at this https://github.com/defnull/multipart_bench and you'll get a sense as to why using the less downloaded library is clearly the better option, it's safer, faster, and you have less chances to get ddos |
We didn't use that. Before switching to The name clash is a known issue by the way, and there have been steps taken to resolve it: pypa/packaging-problems#818 |
oups my bad, not sure then how you got that into your venv then :) |
The .venv is shared by multiple projects and I often try new packages and then trash them so the responsible dependency might not even be around. |
Uh oh!
There was an error while loading. Please reload this page.
Description
After upgrading to Litestar 2.14.0, I am now getting this error:
I am using the latest version of
multipart
, which I believe was installed by Litestar.Could #3872 be relevant here?
URL to code causing the issue
No response
MCVE
# Your MCVE code here
Steps to reproduce
Screenshots
""
Logs
Litestar Version
2.14.0
Platform
The text was updated successfully, but these errors were encountered: