passlib 1.7.4 + bcrypt 4.2.1 emit trapped AttributeError warning on every login #46

Closed
opened 2026-08-11 02:49:58 +00:00 by Mark · 0 comments
Owner

requirements.txt pins passlib[bcrypt]==1.7.4 and bcrypt==4.2.1. bcrypt 4.1+ removed the about module, so passlib 1.7.4 logs "(trapped) error reading bcrypt version / AttributeError: module bcrypt has no attribute about" on every password hash/verify. It is trapped and harmless, but it pollutes logs and test output. Fix: pin bcrypt==4.0.1 (last version with about) or upgrade passlib to a version that reads the version differently.

requirements.txt pins passlib[bcrypt]==1.7.4 and bcrypt==4.2.1. bcrypt 4.1+ removed the __about__ module, so passlib 1.7.4 logs "(trapped) error reading bcrypt version / AttributeError: module bcrypt has no attribute __about__" on every password hash/verify. It is trapped and harmless, but it pollutes logs and test output. Fix: pin bcrypt==4.0.1 (last version with __about__) or upgrade passlib to a version that reads the version differently.
Mark 2026-08-13 07:38:46 +00:00
Sign in to join this conversation.
No description provided.