Python 3 Support

Bug #1763335 reported by Peter Russell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
localmail
New
Undecided
Unassigned

Bug Description

When importing Localmail on Python 3.6.4 on Windows 10, I see the following stack trace. It appears that the imports in cred.py should be re-written to use relative imports.

---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-32-661df2d30865> in <module>()
----> 1 import localmail

~\.virtualenvs\Signatures-lUlE5qBd\lib\site-packages\localmail\__init__.py in <module>()
     17 from twisted.internet import reactor
     18 from twisted.cred import portal, checkers
---> 19 from .cred import TestServerRealm, CredentialsNonChecker
     20 from .smtp import TestServerESMTPFactory
     21 from .imap import TestServerIMAPFactory

~\.virtualenvs\Signatures-lUlE5qBd\lib\site-packages\localmail\cred.py in <module>()
     19 from twisted.mail import smtp, imap4
     20
---> 21 from imap import IMAPUserAccount
     22 from smtp import MemoryDelivery
     23

ModuleNotFoundError: No module named 'imap'

Related branches

Revision history for this message
Peter Russell (qwertyface) wrote :

Actually there's a bit more work to support Python 3 than just fixing the imports.

summary: - import error in cred.py
+ Python 3 Support
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.