charlierguo / gmail

A Pythonic interface for Google Mail
MIT License
1.77k stars 386 forks source link

Error when running the script #80

Open matty0005 opened 7 years ago

matty0005 commented 7 years ago

Traceback (most recent call last): File "email.py", line 2, in import gmail File "build/bdist.linux-armv6l/egg/gmail/init.py", line 16, in from .gmail import Gmail File "build/bdist.linux-armv6l/egg/gmail/gmail.py", line 4, in File "build/bdist.linux-armv6l/egg/gmail/mailbox.py", line 1, in """Read/write support for Maildir, mbox, MH, Babyl, and MMDF mailboxes.""" File "build/bdist.linux-armv6l/egg/gmail/message.py", line 2, in File "/home/pi/AirConRemote/email.py", line 8, in g = gmail.login(username, password) AttributeError: 'module' object has no attribute 'login'

Note: The 'username' and 'password' have been hidden for security reasons. However it works by using python in command line.