kernelci / kernelci-api

KernelCI API - Database - Pub/Sub
GNU Lesser General Public License v2.1
10 stars 16 forks source link

api usermanagement emit traceback about bcrypt attribute #520

Open nuclearcat opened 3 months ago

nuclearcat commented 3 months ago

During some operations with users (creation?) api emit some strange messages:

(trapped) error reading bcrypt version Traceback (most recent call last): File "/home/kernelci/.local/lib/python3.11/site-packages/passlib/handlers/bcrypt.py", line 620, in _load_backend_mixin version = _bcrypt.about.version ^^^^^^^^^^^^^^^^^ AttributeError: module 'bcrypt' has no attribute 'about'

JenySadadia commented 3 months ago

Thanks for reporting. Many people have faced the same issue and it's been reported here https://github.com/pyca/bcrypt/issues/684 passlib needs to be upgraded to use the latest bcrypt version i.e 4.1.2. We can pin bcrypt package version to fix it until passlib is fixed as per the comments on the issue.