-
Notifications
You must be signed in to change notification settings - Fork 83
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
ImportError: cannot import name 'Mapping' from 'collections' #127
Comments
It is probably a Python incompatibility related dependency version error. Although we have a lock file, we might still need to pin certain dependencies. Which version of Python did you use? |
Hey, thanks for your response -- Python 3.11.4 |
Uh, that's a bit problematic. We simply stopped maintaining this project in 3.7 so these kinds of errors are expected. (definitely fixable tho!) Is there any chance that you can downgrade to 3.7 and try again to see if the error persists? I recommend using a pyenv or rye (experimental) for doing so. |
Oh damn, maybe check out https://stackoverflow.com/questions/71850969/importerror-cannot-import-name-run-with-reloader-from-werkzeug-serving I'm afraid this issue is about to turn into a wormhole 🪱 |
You were right, it is a wormhole! werkzeug doesn't like markupsafe 2.1.3... it looks like markupsafe removed soft_unicode which is causing this error. (pallets/markupsafe#304) |
I think the most durable solution would be to support the latest version of all the libraries that are used in the project which means a quite a bit of work. I would say let's go back to the latest Python and focus on somehow solving that error instead of getting stuck in the past. |
Glad that this is resolved! |
Description of bug
ImportError: cannot import name 'Mapping' from 'collections' (C:\Python311\Lib\collections_init_.py)
Log Messages
Log messages are in screenshot below. I also face this issue if installing via pip or Python.
Screenshots
![Screenshot 2023-06-22 182402](https://private-user-images.githubusercontent.com/53523282/248074736-d44500d4-1097-4f92-a0bc-02ef4bfd4367.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk3OTEzODYsIm5iZiI6MTcxOTc5MTA4NiwicGF0aCI6Ii81MzUyMzI4Mi8yNDgwNzQ3MzYtZDQ0NTAwZDQtMTA5Ny00ZjkyLWEwYmMtMDJlZjRiZmQ0MzY3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjMwVDIzNDQ0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUxZDMxZWQ0ZWI4NDBkZmFhYTA4ZjRjNmNjMzhjOWY2NGVlM2I2YTI4ZmZiM2Y2ZTE1OTljMGQ2OWE5NjU0YmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.THuL2aOlH-mmnJCbPIBTXJvawHJMdRUFbSXTgFeMT-A)
Desktop:
-Windows 10 22621.1848
Additional context
Any information/guidance here would be appreciated! I realize you support 3.7, though this seems relevant.
The text was updated successfully, but these errors were encountered: