charlierguo / gmail

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

Authentication error #85

Open Debdut opened 7 years ago

Debdut commented 7 years ago
AuthenticationError                       Traceback (most recent call last)
<ipython-input-3-69ade5292074> in <module>()
----> 1 g.login ('**********', '**********')

/home/debdut/Code/workspace/gmail/gmail/gmail.pyc in login(self, username, password)
    104                 self.fetch_mailboxes()
    105         except imaplib.IMAP4.error:
--> 106             raise AuthenticationError
    107 
    108 

AuthenticationError: 

I also got an email that Google is blocking the login. How to fix it? Note: I have replaced my username password with *'s.

Aryal007 commented 6 years ago

Did you find the answer to this?

ANANTHU-R-NATH commented 6 years ago

Follow this steps to allow gmail o be accessed from this Library : https://support.google.com/accounts/answer/6010255?hl=en

i believe this should solve you problem

goutham9032 commented 6 years ago

if i am giving correct user name and password File "", line 1, in File "/usr/local/lib/python2.7/dist-packages/gmail/utils.py", line 7, in login gmail.login(username, password) File "/usr/local/lib/python2.7/dist-packages/gmail/gmail.py", line 100, in login raise AuthenticationError gmail.exceptions.AuthenticationError

Anon-Exploiter commented 4 years ago

@ANANTHU-R-NATH thanks!