glic3rinu / passlib

Automatically exported from code.google.com/p/passlib
Other
15 stars 3 forks source link

Error in getting the version of bcrypt #59

Closed meer-khan closed 6 months ago

meer-khan commented 6 months ago

Hi, Whenever I call function CryptContext(schemes=["bcrypt"], deprecated="auto").verify(), in my FastAPI application, it raises the following error. Can you please guide on this issue. Functionality is working completely fine, but this error is annoying and can be resolved. Note: I am using passlib==1.7.4 and python==3.11.0 I would love to contribute on this issue.

bash (trapped) error reading bcrypt version Traceback (most recent call last): File "C:\Users\anaconda3\envs\env-fastapi\Lib\site-packages\passlib\handlers\bcrypt.py", line 620, in _load_backend_mixin version = _bcrypt.__about__.__version__ ^^^^^^^^^^^^^^^^^ AttributeError: module 'bcrypt' has no attribute '__about__'

Thanks

meer-khan commented 6 months ago

I am sorry, I got to know that this is not latest code and now passlib code is hosted on heptapod.net , and the above issue is also raised on the latest repo "https://foss.heptapod.net/python-libs/passlib/-/issues/190#notes"

Thanks