Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] bcrypt library failure #373

Closed
aliavni opened this issue Apr 18, 2024 · 2 comments
Closed

[BUG] bcrypt library failure #373

aliavni opened this issue Apr 18, 2024 · 2 comments

Comments

@aliavni
Copy link
Collaborator

aliavni commented Apr 18, 2024

Describe the bug
This happens when building the app in Docker. bcrypt library fails with the following error:

api-1  | Database 'police_data' already exists.
api-1  | Initialized the database 'police_data'.
api-1  | (trapped) error reading bcrypt version
api-1  | Traceback (most recent call last):
api-1  |   File "/usr/local/lib/python3.11/site-packages/passlib/handlers/bcrypt.py", line 620, in _load_backend_mixin
api-1  |     version = _bcrypt.__about__.__version__
api-1  |               ^^^^^^^^^^^^^^^^^
api-1  | AttributeError: module 'bcrypt' has no attribute '__about__'

To Reproduce
Steps to reproduce the behavior:

  1. Build the app in docker. Since the package version is not pinned, it installs a recent bcrypt version

Expected behavior
Docker should build without issues and api container should work.

@aliavni
Copy link
Collaborator Author

aliavni commented Apr 18, 2024

Here is the PR to fix this issue: #374

@mikeyavorsky
Copy link
Collaborator

closed with #374

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants