Dependency bcrypt version (with passlib)

Bug #2068879 reported by Kim HyoBin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
In Progress
High
David Wilde

Bug Description

env
ubuntu 22.04 amd64
keystone - origin/master (dd61a91864b626314c167fcfa2db8c846d689f9e)

**passlib 1.7.4, bcrypt 4.1.3 -- error
---------------------------
Steps to Reproduce

1. install OS
2. git clone & checkout
3. python venv actvicate
4. pip install requirements ----- expect here
5. keystone install
6. keystone db_sync
7. bootstrap -------- error

2024-06-10 05:34:16.985 545454 ERROR passlib.handlers.bcrypt During handling of the above exception, another exception occurred:
2024-06-10 05:34:16.985 545454 ERROR passlib.handlers.bcrypt
2024-06-10 05:34:16.985 545454 ERROR passlib.handlers.bcrypt Traceback (most recent call last):
2024-06-10 05:34:16.985 545454 ERROR passlib.handlers.bcrypt File "/root/stack/openstack-venv/lib/python3.10/site-packages/passlib/handlers/bcrypt.py", line 620, in _load_backend_mixin
2024-06-10 05:34:16.985 545454 ERROR passlib.handlers.bcrypt version = _bcrypt.__about__.__version__
2024-06-10 05:34:16.985 545454 ERROR passlib.handlers.bcrypt AttributeError: module 'bcrypt' has no attribute '__about__'
---------------------------
why??

requirements.txt

passlib>=1.7.0 # BSD
bcrypt>=3.1.3 # Apache-2.0

nothing change after OS install just pip install requirements.txt
installed passlib 1.7.4, bcrypt 4.1.3
but failed bootstrap like logs, screenshot

it solved when installed bcrypt 4.0.0

plaese check this
1. additional information bcrypt package 3.x.x > 4.x.x
2. update requirements.text like bcrypt>=3.1.3,<4.0.0

maybe it Good First Issue

Revision history for this message
Kim HyoBin (hbkimokestro) wrote :
David Wilde (dave-wilde)
Changed in keystone:
importance: Undecided → High
status: New → In Progress
assignee: nobody → David Wilde (dave-wilde)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.