caiobegotti/Lost-Photos-Found

Exception: Cannot login, check username/password, are you using 2-factor auth?

Closed this issue · 1 comments

I am facing this error:

sindhu@leh ~/code/misc/Lost-Photos-Found (git)-[master] % ./lpf.py :(
Traceback (most recent call last):
File "./lpf.py", line 21, in
imap = Server(host, username, password, debug=False)
File "/home/sindhu/code/misc/Lost-Photos-Found/lostphotosfound/server.py", line 65, in init
self._login(username, password)
File "/home/sindhu/code/misc/Lost-Photos-Found/lostphotosfound/server.py", line 81, in _login
raise Exception('Cannot login, check username/password, are you using 2-factor auth?')
Exception: Cannot login, check username/password, are you using 2-factor auth?

How do I fix this?
Thanks.

Hi @sindhus, I've pushed a big change this morning so LostPhotosFound will use your system keychain now. Please see the README for that matter. It means you have typed the wrong password when asked for it. Anyway, try removing ~/.LostPhotosFound/config and run it again. It'll then ask your Gmail username and password (just this once). Make sure you type it correctly and it'll work. Promise! You can reopen this issue later if needed.