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

ImportError: cannot import name 'url_decode' from 'werkzeug.urls' -> upgrade Flash-Login to 0.6.3+ #7459

Closed
bwakkie opened this issue May 8, 2024 · 3 comments
Assignees
Labels

Comments

@bwakkie
Copy link

bwakkie commented May 8, 2024

After a pip upgrade I am getting (and have been getting in previous upgrades) the following error:

ImportError: cannot import name 'url_decode' from 'werkzeug.urls'
The reason this is not working is that Flask-Login 0.6.2 is not compattible with Werkzeug 3.x

Previously I would downgrade Werkzeug belog 3.0.0 but now upgrading Flask-Login to 0.6.3 or above works too.

To fix this Flask-Login needs to be upgraded to 0.6.3 as from then Werkzeug 3.x if supported

pip install git+https://github.com/maxcountryman/flask-login.git helped me but it is version 0.7-dev so maybe you can try first
pip install Flask-Login==0.6.3

source: https://stackoverflow.com/questions/77215107/importerror-cannot-import-name-url-decode-from-werkzeug-urls

@bwakkie bwakkie added the Bug label May 8, 2024
@adityatoshniwal
Copy link
Contributor

adityatoshniwal commented May 8, 2024

@bwakkie If you're using pgAdmin PyPi/pip wheel then Run command:

pip install pgadmin4 --no-cache-dir --force-reinstall

This will clean install the dependencies of pgAdmin.

@bwakkie
Copy link
Author

bwakkie commented May 14, 2024

ok i'll do this the next update see how that works. Thx!

@khushboovashi
Copy link
Contributor

Hi, please reopen it if you still reproduce the issue with the new release.

@khushboovashi khushboovashi closed this as not planned Won't fix, can't repro, duplicate, stale May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants