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.

ERROR:root:'NoneType' object has no attribute 'find_all'

See original GitHub issue

Hi guys!

I’m having an issue when I try to login after I put the captcha:

ERROR:root:'NoneType' object has no attribute 'find_all' Traceback (most recent call last): File "/home/user/.local/lib/python3.9/site-packages/aws_google_auth/__init__.py", line 79, in cli process_auth(args, config) File "/home/user/.local/lib/python3.9/site-packages/aws_google_auth/__init__.py", line 243, in process_auth google_client.do_login() File "/home/user/.local/lib/python3.9/site-packages/aws_google_auth/google.py", line 291, in do_login sess = self.handle_captcha(sess, payload) File "/home/user/.local/lib/python3.9/site-packages/aws_google_auth/google.py", line 433, in handle_captcha for tag in form.find_all('input'): AttributeError: 'NoneType' object has no attribute 'find_all'

Adittional info:

  • Python: 3.9
  • aws-google-auth: 0.0.38

I’d appreciate your help

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ingluifecommented, Sep 2, 2022

My mistake, I just reinstall using sudo pip install "aws-google-auth[u2f]", and now it’s working as expected.

Thank you so much @kriation for your time.

0reactions
kriationcommented, Sep 2, 2022

@ingluife, I don’t think you’re running v0.0.38.

The output you included indicates that the code is not handling bgresponse properly. In addition, the stacktrace you pasted indicates that line 433 in google.py is for form.find_all('input')

Line 433 in google.py for v0.0.38 is a new line (https://github.com/cevoaustralia/aws-google-auth/blob/0.0.38/aws_google_auth/google.py#L433)

Please clean up your installation and re-install using the instructions listed in the readme (https://github.com/cevoaustralia/aws-google-auth#installation)

Read more comments on GitHub >

github_iconTop Results From Across the Web

AttributeError: 'NoneType' object has no attribute 'findAll'
So now you have to figure out why it's None . Look at soup , and see if there's a table whose id...
Read more >
'Nonetype' object has no attribute 'findall' while using bs4
The error message is telling you that the variable named content does not contain a valid reference to an object. Which in turn...
Read more >
'NoneType' object has no attribute 'find_all' : Forums
Hi, I have been running my webSpider locally without a problem but then When I uploaded my code onto pythonanywhere I am getting...
Read more >
AttributeError: 'NoneType' object has no attribute 'find_all' #13
I ran your code with python3 on Colab and I got some errors. Error: in transcriptMaker(url) 8 page = requests.get(url).text 9 soup = ......
Read more >
AttributeError: 'NoneType' object has no attribute 'find_all'
The error states in plain English that you can't use find_all on a None type object. What are you using find_all with? The...
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