ERROR:root:'NoneType' object has no attribute 'find_all'
See original GitHub issueHi 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:
- Created a year ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
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.
@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)