Closed zeilsell-user1 closed 1 month ago
This looks like your installation is somehow corrupted where you have two different versions of bcrypt installed. I suggest deleting your virtualenv and reinstalling.
Thanks @alex
I have blown away the venv and reinstalled completely and I am still getting the same error.
This is the bcrypt.dict
{'__name__': 'bcrypt._bcrypt', '__doc__': 'Internal module used by bcrypt.\n', '__package__': '', '__loader__': <_frozen_importlib_external.ExtensionFileLoader object at 0x7effbc59cdd0>, '__spec__': ModuleSpec(name='_bcrypt', loader=<_frozen_importlib_external.ExtensionFileLoader object at 0x7effbc59cdd0>, origin='/home/r...InternalAdminServer/./.venv/lib/python3.11/site-packages/bcrypt/_bcrypt.cpython-311-x86_64-linux-gnu.so'), 'hashpw': <built-in function hashpw>, 'encode_salt': <built-in function encode_salt>, '__version__': '0.4', '__file__': '/home/...InternalAdminServer/./.venv/lib/python3.11/site-packages/bcrypt/_bcrypt.cpython-311-x86_64-linux-gnu.so'}
I will create a completely fresh poetry project with just bcrypt and see if that has the same issue
Okay - @alex is right - a completely clean project with just bcrypt works (as expected). Closing this issue down and throwing my computer out the window.
Python 3.11.9
poetry show bcrypt name : bcrypt version : 4.1.3 description : Modern password hashing for your software and your servers
I have tried versions back to 4.1.0. The previous version, 4.0.1 fails because it doesn't support KDF
I have tried taking this to the minimal and it still fails