mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 08:56:02 +03:00
[GH-ISSUE #2036] Possible login errors with Python 3 due to passlib issue #1480
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#1480
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @PatTheMav on GitHub (May 23, 2020).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/2036
I have no idea how widespread this might be, but there is an issue with
passlibin certain scenarios under Python 3:For some reason cryptography calls on my system return a bytes-like object and not pure strings, which results in a
passliberror. Passlib is used byDjangoe.g. for logging in to modoboa.I've reported the issue upstream (https://bitbucket.org/ecollins/passlib/issues/113/errors-handling-cryptcrypt-returning-byte), but would require an update in the dependency tree.
For now I fixed this "manually" in my site-packages. Might be a gotcha for PyPy3 installations as well.
@PatTheMav commented on GitHub (Oct 14, 2020):
Quick update:
Passlibhas fixed this in v1.7.3. One possible fix is to force-upgradepasslibto this version.@tonioo commented on GitHub (Oct 15, 2020):
@PatTheMav I think this issue should be moved to the main repository. What do you think?
@PatTheMav commented on GitHub (Oct 15, 2020):
I agree - iirc modoboa itself has the dependency.