Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'MailBot' #4

Open
swallace21 opened this issue Apr 18, 2016 · 1 comment
Open

ImportError: cannot import name 'MailBot' #4

swallace21 opened this issue Apr 18, 2016 · 1 comment

Comments

@swallace21
Copy link

swallace21 commented Apr 18, 2016

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

@Frodox
Copy link

Frodox commented Jun 19, 2017

Actually

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

fails for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants