Closed danjenson closed 10 months ago
Reverting to the following library to an older version helped for me:
pip3 install requests==2.23.0
It's certainly not a ideal solution but it may fit your needs.
Thanks! Although, I think it is important to properly set the cipher or have a reasonable default going forward, and I'm not sure what makes the most sense for this library/API.
I encountered the same error (urllib3.util.ssl_ has no attribute DEFAULT_CIPHERS).
Tried this and also downgrading urllib to 1.25.11 as suggested elsewhere, but now I get:
robl@:~/venv_test$ ./foo.py
Traceback (most recent call last):
File "/home/robl/venv_test/./foo.py", line 8, in <module>
success = keep.login('username', 'XXXX')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/robl/venv_test/lib/python3.11/site-packages/gkeepapi/__init__.py", line 697, in login
ret = auth.login(email, password, device_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/robl/venv_test/lib/python3.11/site-packages/gkeepapi/__init__.py", line 62, in login
raise exception.LoginException(res.get("Error"), res.get("ErrorDetail"))
gkeepapi.exception.LoginException: ('BadAuthentication', None)
robl@:~/venv_test$ ./bin/pip list
Package Version
------------------ --------
certifi 2023.5.7
cffi 1.15.1
chardet 3.0.4
charset-normalizer 3.1.0
cryptography 41.0.1
future 0.18.3
gkeepapi 0.14.2
gpapi 0.4.4
gpsoauth 1.0.2
idna 2.10
pip 23.0.1
protobuf 4.23.3
pycparser 2.21
pycryptodomex 3.18.0
requests 2.23.0
setuptools 66.1.1
urllib3 1.25.11
Any hints?
I'm experiencing the same issue.
The DEFAULT_CIPHERS issue looks like it has been fixed here: https://github.com/simon-weber/gpsoauth/issues/52
For those of you who have downgraded to urllib3==1.26.16
and are getting BadAuthentication errors, that is a separate issue:
https://github.com/simon-weber/gpsoauth/issues/48
openssl3 doesn't work... so I wrote a small Dockerfile to take care of getting a master token. After you have a master token, you can use other functionality with openssl3 without worrying about the BadAuthentication error. https://github.com/simon-weber/gpsoauth/issues/48#issuecomment-1690340572
Closing since the issue is now resolved.
Please make sure you've done the following before submitting your issue:
Additionally, please provide the following information:
Stack trace:
It looks like
urllib3
no longer defines this, which is used bygpsoauth
. Unclear what the cleanest way to repair / mediate this going forward is, as it seems we need to specify a cipher in order for google to permit logins. I manually modified thegpsoauth
package to put theDEFAULT_CIPHERS
back in but still got(BadAuthentication, None)
error.