caiobegotti / Lost-Photos-Found

Linux version of the LostPhotos application for Mac/Windows
125 stars 9 forks source link

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

Closed ghost closed 10 years ago

ghost commented 10 years ago

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.

caiobegotti commented 10 years ago

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.