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

Python 3.10 support #87

Open
JWKennington opened this issue Jun 26, 2022 · 2 comments
Open

Python 3.10 support #87

JWKennington opened this issue Jun 26, 2022 · 2 comments

Comments

@JWKennington
Copy link

The latest versions of flask-bcrypt don't support python 3.10, though many of the flask extensions we use have. This causes a problem since the 0.7.1 release of flask-bcrypt isn't updated for the latest version of werkzeug, which causes the following import error on python 3.10 environments

File "..env/lib/python3.9/site-packages/flask_bcrypt.py", line 21, in <module>
    from werkzeug.security import safe_str_cmp
ImportError: cannot import name 'safe_str_cmp' from 'werkzeug.security'
@robertlayton
Copy link

I just ran into the same issue, but was using version 0.7. Upgrading to 1.0.1 solved for me, and that line is not in the current version of the file anymore.

@bliepp
Copy link

bliepp commented Sep 24, 2022

Issues with werkzeug > 2.2 (sometimes even with > 2.1) are common with many flask addons like flask-login and flask-restx. According to #86 this has already been fixed with 1.0.0. If that is not an option you might consider downgrading to werkzeug to a minor version < 2.1 (and therefore to a minor version of flask < 2.1 as well). Btw I don't get what this is issue has to do with python 3.10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants