question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New login issue (Was working fine for months)

See original GitHub issue

The issue

I’ve been using this code successfully for the past few months (thank you!) and then it suddenly stopped working. I am getting the error posted below. I am wondering if this is the result of security changes at Google? Or what I am overlooking in my attempt to debug.

My attempts at solving

  1. Two factor turned on
  2. App pass created using this link: https://myaccount.google.com/apppasswords … then I copy and paste that pass into the sample code below.
  3. Running recent version of Python3 (3.8) and receive same error on local dev and remote
  4. Manually unlocked captcha using following link and have tried this many times UnlockCaptcha manually
  5. I am logged into GoogleKeeo in my browser.

I tried turning off two-factor and reseting and then creating a new app pass but that produced same error. Again, any help is appreciated as I depend on this for my workflow.

Error

File "/Users/Me/Projects/gkeep/test.py", line 4, in <module> success = keep.login('me@gmail.com', 'apppassword') File "/usr/local/lib/python3.9/site-packages/gkeepapi/__init__.py", line 695, in login ret = auth.login(username, password, device_id) File "/usr/local/lib/python3.9/site-packages/gkeepapi/__init__.py", line 59, in login raise exception.LoginException( gkeepapi.exception.LoginException: ('NeedsBrowser', 'To access your account, you must sign in on the web. Touch Next to start browser sign-in.')

Running this code

`import gkeepapi

keep = gkeepapi.Keep() success = keep.login(‘myemail@gmail.com’, ‘workingapppasswork’)

note = keep.createNote(‘Todo’, ‘Eat breakfast’) note.pinned = True note.color = gkeepapi.node.ColorValue.Red keep.sync()`

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:5
  • Comments:33 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
Trysupecommented, May 31, 2022

New Release and Commit that fixes the issue

I’ll try to update the dependency manually and see if it fixes the issue


Update: I currently have a functioning python3 env, my pip broke. I have to figure out what happend there first. Maybe someone else can check if the new version of gpsoauth works

3reactions
kiwizcommented, Jun 2, 2022

Thanks for testing. I’ve bumped the dependency on gpsoauth to 1.0.2 and published 0.14.0, which should fix the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix a Login Problem | Facebook Help Center
Recover Your Facebook Account if You Can't Log In. If you're having trouble logging into your Facebook account, here are some things you...
Read more >
Can't Log Into Online Banking? Try These Tips and Solutions
Call up the bank, explain the problem, and follow their troubleshooting steps. Stay safe when doing your banking online.
Read more >
Why can't I sign in to my mail.com email account?
Can't get into your email account? We explore 9 reasons for email login issues with mail.com and share troubleshooting tips in our blog ......
Read more >
How to FIX Can't Sign into PS5 Account (Login Error Tutorial)
26K views 10 months ago PS5 Account Tutorials ... If that doesn't work, and your playstation sign in failed, go to settings, then...
Read more >
Login error on Facebook app - Apple Community
Hello there. I have a question i can't login my facebook account it shows me (login error an unexpected error occurred. please try...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found