Code Monkey home page Code Monkey logo

Comments (2)

robertknight avatar robertknight commented on June 12, 2024

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:

  1. Go to http://localhost:5000/account/settings
  2. Change your password (the new one can be the same as the old)

The following appears in the logs:

web (stderr)         | 2024-03-04 09:37:56,520 [48366] [passlib.handlers.bcrypt:WARNING] (trapped) error reading bcrypt version
web (stderr)         | Traceback (most recent call last):
web (stderr)         |   File "/Users/robert/hypothesis/h/.tox/dev/lib/python3.11/site-packages/passlib/handlers/bcrypt.py", line 620, in _load_backend_mixin
web (stderr)         |     version = _bcrypt.__about__.__version__
web (stderr)         |               ^^^^^^^^^^^^^^^^^
web (stderr)         | AttributeError: module 'bcrypt' has no attribute '__about__'

The warning on its own is harmless since the version variable here is only used to write a message to debug logs. See upstream code:

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)

from h.

robertknight avatar robertknight commented on June 12, 2024

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.

from h.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.