mailnag icon indicating copy to clipboard operation
mailnag copied to clipboard

ModuleNotFoundError: No module named 'imp'

Open kparal opened this issue 2 years ago • 3 comments

Python 3.12 no longer contains module imp. Mailnag crashes immediately on start:

$ mailnag
Traceback (most recent call last):
  File "/usr/bin/mailnag", line 43, in <module>
    from Mailnag.daemon.mailnagdaemon import MailnagDaemon
  File "/usr/lib/python3.12/site-packages/Mailnag/daemon/mailnagdaemon.py", line 26, in <module>
    from Mailnag.daemon.mailchecker import MailChecker
  File "/usr/lib/python3.12/site-packages/Mailnag/daemon/mailchecker.py", line 26, in <module>
    from Mailnag.common.plugins import HookTypes
  File "/usr/lib/python3.12/site-packages/Mailnag/common/plugins.py", line 20, in <module>
    import imp
ModuleNotFoundError: No module named 'imp'

kparal avatar Sep 21 '23 12:09 kparal

FWIW, this is caused my the removal of imp in in Python 3.12, which is the default by Fedora 39+ (which is likely what @kparal uses). This for now will soon be worked-around in Fedora by requiring python3-zombie-imp. But for the record: that only got me one step further, as I a ssl function used by mailnag was also removed. See https://github.com/pulb/mailnag/issues/245 for details.

knurd avatar Sep 25 '23 13:09 knurd

Pardon my intrusion. On manjaro linux I get this error too.

jezek avatar May 18 '24 17:05 jezek

after update on Manjaro Linux I get the same error with Python 3.12.3

JanBluePix avatar Jun 15 '24 18:06 JanBluePix