LoginManager fails because of Werkzeug dependency
See original GitHub issueAfter Werkzeug updated to v 2.1.0, LoginManager
cannot import werkzeug.security.safe_str_cmp
. This is because Werkzeug has removed several deprecated code elements (see https://github.com/pallets/werkzeug/pull/2276). The Werkzeug changelog suggests using hashlib and hmac instead to provide that functionality.
Issue Analytics
- State:
- Created a year ago
- Reactions:12
- Comments:6
Top Results From Across the Web
Updating to Flask 2.0 / Werkzeug 2.0 causes a deprecation ...
Describe the bug Updating to Flask 2.0 / Werkzeug 2.0 causes a deprecation ... LoginManager fails because of Werkzeug dependency #636.
Read more >The Flask Mega-Tutorial Part V: User Logins - miguelgrinberg ...
Since it is a dependency, Werkzeug is already installed in your virtual environment. The following Python shell session demonstrates how to ...
Read more >ImportError: cannot import name 'safe_str_cmp' from ...
I just updated from stable to the current rc (rc3) from the UI and now octopi won't start. This is the error in...
Read more >When installing Pipfile there is a collision of dependency ...
When installing the Pipfile i'm getting the error 'ERROR: Could not find a version that matches werkzeug< ...
Read more >Flask User Accounts & Authentication in with Flask-Login
Create an interactive Flask application by supporting user accounts! Handle account creation, log-ins, walled content, and user-specific features.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just for complement, on official documentation says.
In main branch its correct on line 62 and 63, buts the pypi version is outdated.
Duplicate of #584