#22 ImportError: cannot import name formataddr

closed-fixed
None
5
2004-10-07
2004-06-06
No

Hello,

I have Python 2.2 installed. After upgrading to
syncmail 2.1 I started getting the below. Looks like it
cannot find 'formataddr' for some reason. Any insight
on the matter would be appreciated.

Checking in wrappers/Worker.java;
/cvsroot/gipsy/gipsy/src/gipsy/wrappers/Worker.java,v
<-- Worker.java
new revision: 1.9; previous revision: 1.8
done
Traceback (most recent call last):
File "/cvsroot/gipsy/CVSROOT/syncmail", line 103, in ?
from email.Utils import formataddr
ImportError: cannot import name formataddr

-s

Discussion

  • Nobody/Anonymous

    Logged In: NO

    formataddr was added to python v2.2.2 - syncmail will fail on
    any version before that. Sounds like you need to upgrade
    your python...

     
  • Serguei A. Mokhov

    Logged In: YES
    user_id=560391

    That's what I suspected -- 2.2 is not enough, but was
    misguided by the comment in the syncmail file:

    # NOTE: SourceForge currently runs Python 2.2.3, so we need
    to remain
    # compatible with the Python 2.2 line.

    This ought to change to "with the Python 2.2.2 line."

    Thanks!

    -s

     
  • Fred L. Drake, Jr.

    • status: open --> closed
     
  • Fred L. Drake, Jr.

    • assigned_to: nobody --> fdrake
    • status: closed --> closed-fixed
     
  • Fred L. Drake, Jr.

    Logged In: YES
    user_id=3066

    I've fixed the comment in the syncmail script (file revision
    2.2 in CVS).

     

Log in to post a comment.