mailbot icon indicating copy to clipboard operation
mailbot copied to clipboard

ImportError: cannot import name 'MailBot'

Open swallace21 opened this issue 9 years ago • 1 comments

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'"

swallace21 avatar Apr 18 '16 16:04 swallace21

Actually

>>> from mycallbacks import MyCallback
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named mycallbacks

fails for me

Frodox avatar Jun 19 '17 21:06 Frodox