#31719: Remaining data.decode('ascii') @ hashers.py, but data is a str -------------------------------------+------------------------------------- Reporter: Marcel Nogueira d' | Owner: nobody Eurydice | Type: Bug | Status: closed Component: contrib.auth | Version: 3.0 Severity: Normal | Resolution: invalid Keywords: string, decode, | Triage Stage: python3 | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by naohide): Replying to [comment:5 naohide]: > I checked _bcrypt.py and this might be the reason. I'm using https://pypi.org/project/py-bcrypt/ and called this package's bcrypt. > > What do you guys use normally? > > ''' > # encoding: utf-8 > # module bcrypt._bcrypt > # from /.virtualenvs/project/lib/python3.8/site- packages/bcrypt/_bcrypt.cpython-38-darwin.so > # by generator 1.145 > """ Internal module used by bcrypt. """ > ''' got it. I changed py-bcrypt to https://pypi.org/project/bcrypt/ and worked fine for me! -- Ticket URL: <https://code.djangoproject.com/ticket/31719#comment:6> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/062.9a51534d48c6a6f83b6beec5b0eda6c0%40djangoproject.com.