mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-26 01:16:01 +03:00
[GH-ISSUE #1771] Adding a user gets a "500 Internal server error" #1394
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#1394
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 @twagener on GitHub (Aug 28, 2019).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1771
Impacted versions
Steps to reproduce
Every python package up to date
Current behavior
Ajax call gets server response 500
Solution
change line 886 in /srv/modoboa/env/local/lib/python2.7/site-packages/reportlab/lib/utils.py
FROM:
if Image.VERSION.startswith('1.1.7'): im.load()
TO:
if Image.
__version__.startswith('1.1.7'): im.load()Because the new module has no attribute VERSION. The correct usage is
__version__Hope this helps anyone
@tonioo commented on GitHub (Sep 10, 2019):
Can you provide a trace or something useful to understand the issue?
@twagener commented on GitHub (Sep 12, 2019):
Here is the stacktrace.txt
The Image module from PIL changed and doesn't support the
.VERSIONattribute anymore. It's.__version__now@tonioo commented on GitHub (Mar 3, 2020):
Looks like it has been fixed on reportlab's side.