Fix passlib/bcrypt incompatibility by switching to argon2#4
Open
Copilot wants to merge 3 commits into
Open
Conversation
Agent-Logs-Url: https://github.com/apy65360-hash/customer-support-env/sessions/512b9216-75de-4565-89e3-0e049155ac62 Co-authored-by: apy65360-hash <264097400+apy65360-hash@users.noreply.github.com>
Agent-Logs-Url: https://github.com/apy65360-hash/customer-support-env/sessions/512b9216-75de-4565-89e3-0e049155ac62 Co-authored-by: apy65360-hash <264097400+apy65360-hash@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix passlib/bcrypt compatibility issue on Windows with Python 3.12
Fix passlib/bcrypt incompatibility by switching to argon2
Apr 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
passlib==1.7.4is incompatible withbcrypt>=4.0.0, causingValueError: password cannot be longer than 72 byteson Python 3.12/Windows. Since passlib is effectively unmaintained at 1.7.4, switching to argon2 is the cleaner fix.Changes
requirements.txt:passlib[bcrypt]==1.7.4→passlib[argon2]==1.7.4(pulls inargon2-cffi)app/services/auth.py:CryptContext(schemes=["bcrypt"])→CryptContext(schemes=["argon2"]).gitignore: Added root-level ignore for__pycache__/,*.db,.env, and other artifacts that were previously untrackedOriginal prompt
This pull request was created from Copilot chat.