If I use libgmail in a program I compile with py2exe I get the following error:
Traceback (most recent call last):
File "Drag.py", line 9, in <module>
File "zipextimporter.pyo", line 82, in load_module
File "libgmail.pyo", line 51, in <module>
File "email\__init__.pyo", line 79, in __getattr__
ImportError: No module named base
It can't seem to find base,
so I changed line 51-53 of libgmail.py:
#from email.MIMEBase import MIMEBase #comment this out
#from email.MIMEText import MIMEText
#from email.MIMEMultipart import MIMEMultipart
from email.mime.base import MIMEBase #change it to this
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
And I commented out line 784 of email/message.py (not in libgmail!)
#from email.Iterators import walk #comment out...it doesn't do anything
Is this a problem with py2exe or libgmail?
It seems to work with this fix. Is there any reason not to change it?
Well hope this helps!