-
Notifications
You must be signed in to change notification settings - Fork 427
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
[passlib.handlers.bcrypt:WARNING] (trapped) error reading bcrypt version #8418
Comments
To add context, this is a warning that appears in the logs when performing an action in Hypothesis that encrypts a password. Steps to reproduce in development:
The following appears in the logs:
The warning on its own is harmless since the try:
version = _bcrypt.__about__.__version__
except:
log.warning("(trapped) error reading bcrypt version", exc_info=True)
version = '<unknown>'
log.debug("detected 'bcrypt' backend, version %r", version)
return mixin_cls._finalize_backend_mixin(name, dryrun) |
Upstream issue: https://foss.heptapod.net/python-libs/passlib/-/issues/190. See also https://foss.heptapod.net/python-libs/passlib/-/issues/187 for general updates on passlib. |
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/passlib/handlers/bcrypt.py", line 620, in _load_backend_mixin
version = _bcrypt.about.version
AttributeError: module 'bcrypt' has no attribute 'about'
I think the passlib v1.7.4 didn't support bcrypt v4.1.2. There is no about.py file in bcrypt v4.1.2 package
The text was updated successfully, but these errors were encountered: