Skip to content

ImportError: cannot import name 'MailBot' #4

Description

@swallace21

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions