mailbot
mailbot copied to clipboard
ImportError: cannot import name 'MailBot'
I installed it through pip install mailbot. And it installed succesfully and registers as a package: 'mailbot==0.3'
From Docs: https://mailbot.readthedocs.org/en/latest/
from mailbot import MailBot, register
from mycallbacks import MyCallback
mailbot = MailBot('imap.myserver.com', 'username', 'password')
# register your callback
register(MyCallback)
# check the unprocessed messages and trigger the callback
mailbot.process_messages()
However whenever the code above is run, output = "ImportError: cannot import name 'MailBot'"
Actually
>>> from mycallbacks import MyCallback
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named mycallbacks
fails for me