[GH-ISSUE #2523] No module named collections.abc #1621

Closed
opened 2026-02-27 11:18:10 +03:00 by kerem · 1 comment
Owner

Originally created by @lbayerlein on GitHub (May 23, 2022).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/2523

Hi,

thanks for your great work. Modoboa makes email server management a lot easier. I upgraded (yes, I know it is quite old) from version 1.8 to 1.10 and stopped, because I receive following error:

(env)[modoboa@mail01l instance]$ python manage.py check
Traceback (most recent call last):
  File "manage.py", line 22, in <module>
    execute_from_command_line(sys.argv)
  File "/srv/modoboa/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
    utility.execute()
  File "/srv/modoboa/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute
    django.setup()
  File "/srv/modoboa/env/lib/python2.7/site-packages/django/__init__.py", line 27, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/srv/modoboa/env/lib/python2.7/site-packages/django/apps/registry.py", line 116, in populate
    app_config.ready()
  File "/srv/modoboa/env/lib/python2.7/site-packages/modoboa_sievefilters/apps.py", line 13, in ready
    from . import handlers
  File "/srv/modoboa/env/lib/python2.7/site-packages/modoboa_sievefilters/handlers.py", line 9, in <module>
    from . import lib
  File "/srv/modoboa/env/lib/python2.7/site-packages/modoboa_sievefilters/lib.py", line 9, in <module>
    from sievelib.factory import FiltersSet
  File "/srv/modoboa/env/lib/python2.7/site-packages/sievelib/factory.py", line 14, in <module>
    from sievelib import commands
  File "/srv/modoboa/env/lib/python2.7/site-packages/sievelib/commands.py", line 23, in <module>
    from collections.abc import Iterable
ImportError: No module named abc

I changed every line and updated plugins first. But on managesieve, I am doing something wrong.

Here my module list:

(env)[modoboa@mail01l instance]$ pip list|grep modoboa
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
modoboa (1.10.0)
modoboa-amavis (1.2.0)
modoboa-contacts (0.5.0)
modoboa-dmarc (1.1.0)
modoboa-imap-migration (1.2.0)
modoboa-pdfcredentials (1.3.0)
modoboa-postfix-autoreply (1.4.0)
modoboa-radicale (1.2.0)
modoboa-sievefilters (1.4.0)
modoboa-stats (1.4.0)
modoboa-webmail (1.4.0)
You are using pip version 9.0.1, however version 22.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
(env)[modoboa@mail01l instance]$ pip list|grep sievelib
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
sievelib (1.2.1)
You are using pip version 9.0.1, however version 22.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

I read https://bugzilla.redhat.com/show_bug.cgi?id=1793003. I have changed /srv/modoboa/env/lib/python2.7/site-packages/sievelib/commands.py manually for testing purposes. But it prints ASCII errors, so I reverted this back to default.

Can you help me, please?

Thank you

Originally created by @lbayerlein on GitHub (May 23, 2022). Original GitHub issue: https://github.com/modoboa/modoboa/issues/2523 Hi, thanks for your great work. Modoboa makes email server management a lot easier. I upgraded (yes, I know it is quite old) from version 1.8 to 1.10 and stopped, because I receive following error: ``` (env)[modoboa@mail01l instance]$ python manage.py check Traceback (most recent call last): File "manage.py", line 22, in <module> execute_from_command_line(sys.argv) File "/srv/modoboa/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line utility.execute() File "/srv/modoboa/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute django.setup() File "/srv/modoboa/env/lib/python2.7/site-packages/django/__init__.py", line 27, in setup apps.populate(settings.INSTALLED_APPS) File "/srv/modoboa/env/lib/python2.7/site-packages/django/apps/registry.py", line 116, in populate app_config.ready() File "/srv/modoboa/env/lib/python2.7/site-packages/modoboa_sievefilters/apps.py", line 13, in ready from . import handlers File "/srv/modoboa/env/lib/python2.7/site-packages/modoboa_sievefilters/handlers.py", line 9, in <module> from . import lib File "/srv/modoboa/env/lib/python2.7/site-packages/modoboa_sievefilters/lib.py", line 9, in <module> from sievelib.factory import FiltersSet File "/srv/modoboa/env/lib/python2.7/site-packages/sievelib/factory.py", line 14, in <module> from sievelib import commands File "/srv/modoboa/env/lib/python2.7/site-packages/sievelib/commands.py", line 23, in <module> from collections.abc import Iterable ImportError: No module named abc ``` I changed every line and updated plugins first. But on managesieve, I am doing something wrong. Here my module list: ``` (env)[modoboa@mail01l instance]$ pip list|grep modoboa DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning. modoboa (1.10.0) modoboa-amavis (1.2.0) modoboa-contacts (0.5.0) modoboa-dmarc (1.1.0) modoboa-imap-migration (1.2.0) modoboa-pdfcredentials (1.3.0) modoboa-postfix-autoreply (1.4.0) modoboa-radicale (1.2.0) modoboa-sievefilters (1.4.0) modoboa-stats (1.4.0) modoboa-webmail (1.4.0) You are using pip version 9.0.1, however version 22.1.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. (env)[modoboa@mail01l instance]$ pip list|grep sievelib DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning. sievelib (1.2.1) You are using pip version 9.0.1, however version 22.1.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. ``` I read https://bugzilla.redhat.com/show_bug.cgi?id=1793003. I have changed `/srv/modoboa/env/lib/python2.7/site-packages/sievelib/commands.py` manually for testing purposes. But it prints ASCII errors, so I reverted this back to default. Can you help me, please? Thank you
kerem closed this issue 2026-02-27 11:18:10 +03:00
Author
Owner

@lbayerlein commented on GitHub (May 23, 2022):

Downgrading sievelib solved my problem

$ pip install sievelib==0.9.2
<!-- gh-comment-id:1134834106 --> @lbayerlein commented on GitHub (May 23, 2022): Downgrading sievelib solved my problem ``` $ pip install sievelib==0.9.2 ```
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#1621
No description provided.