[GH-ISSUE #1771] Adding a user gets a "500 Internal server error" #1394

Closed
opened 2026-02-27 11:16:52 +03:00 by kerem · 3 comments
Owner

Originally created by @twagener on GitHub (Aug 28, 2019).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1771

Impacted versions

  • Modoboa: 1.14.0
  • installer used: Yes/No ?
  • Webserver: Nginx/Apache

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

Originally created by @twagener on GitHub (Aug 28, 2019). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1771 # Impacted versions * Modoboa: 1.14.0 * installer used: Yes/No ? * Webserver: Nginx/Apache # 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
kerem 2026-02-27 11:16:52 +03:00
Author
Owner

@tonioo commented on GitHub (Sep 10, 2019):

Can you provide a trace or something useful to understand the issue?

<!-- gh-comment-id:529809034 --> @tonioo commented on GitHub (Sep 10, 2019): Can you provide a trace or something useful to understand the issue?
Author
Owner

@twagener commented on GitHub (Sep 12, 2019):

Here is the stacktrace.txt

The Image module from PIL changed and doesn't support the .VERSION attribute anymore. It's .__version__ now

<!-- gh-comment-id:530749609 --> @twagener commented on GitHub (Sep 12, 2019): Here is the [stacktrace.txt](https://github.com/modoboa/modoboa/files/3604773/stacktrace.txt) The Image module from PIL changed and doesn't support the `.VERSION` attribute anymore. It's `.__version__` now
Author
Owner

@tonioo commented on GitHub (Mar 3, 2020):

Looks like it has been fixed on reportlab's side.

<!-- gh-comment-id:593865385 --> @tonioo commented on GitHub (Mar 3, 2020): Looks like it has been fixed on reportlab's side.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1394
No description provided.