pgadmin4 icon indicating copy to clipboard operation
pgadmin4 copied to clipboard

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

Open bwakkie opened this issue 1 year ago • 2 comments

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 avatar May 08 '24 06:05 bwakkie

@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.

adityatoshniwal avatar May 08 '24 07:05 adityatoshniwal

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

bwakkie avatar May 14 '24 07:05 bwakkie

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

khushboovashi avatar May 17 '24 10:05 khushboovashi