-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: 'OpenSSL.crypto' has no attribute 'sign' #2554
Comments
Clarification question: do you mean set a constraint of openssl < 24.3.0 to avoid the error? |
I do think that having an openssl constraint while oauth2client is still there would be the right thing to do |
3 tasks
kraj
added a commit
to YoeDistro/meta-openembedded
that referenced
this issue
Feb 11, 2025
We have upgraded py3-openssl module to 24.3.0 in core, which means this test now fails as py3-openssl has removed the APIs it uses [1] disable until it is fixed in google-auth module Fixes ERROR: 'OpenSSL.crypto' has no attribute 'sign' [1] googleapis/google-api-python-client#2554 Signed-off-by: Khem Raj <[email protected]>
kraj
added a commit
to YoeDistro/meta-openembedded
that referenced
this issue
Feb 12, 2025
We have upgraded py3-openssl module to 24.3.0 in core, which means this test now fails as py3-openssl has removed the APIs it uses [1] disable until it is fixed in google-auth module Fixes ERROR: 'OpenSSL.crypto' has no attribute 'sign' [1] googleapis/google-api-python-client#2554 Signed-off-by: Khem Raj <[email protected]>
daregit
pushed a commit
to daregit/yocto-combined
that referenced
this issue
Feb 13, 2025
…Key ptest We have upgraded py3-openssl module to 24.3.0 in core, which means this test now fails as py3-openssl has removed the APIs it uses [1] disable until it is fixed in google-auth module Fixes ERROR: 'OpenSSL.crypto' has no attribute 'sign' [1] googleapis/google-api-python-client#2554 Signed-off-by: Khem Raj <raj.khemgmail.com>
daregit
pushed a commit
to daregit/yocto-combined
that referenced
this issue
Apr 4, 2025
…Key ptest We have upgraded py3-openssl module to 24.3.0 in core, which means this test now fails as py3-openssl has removed the APIs it uses [1] disable until it is fixed in google-auth module Fixes ERROR: 'OpenSSL.crypto' has no attribute 'sign' [1] googleapis/google-api-python-client#2554 Signed-off-by: Khem Raj <raj.khemgmail.com>
daregit
pushed a commit
to daregit/yocto-combined
that referenced
this issue
Apr 9, 2025
…Key ptest We have upgraded py3-openssl module to 24.3.0 in core, which means this test now fails as py3-openssl has removed the APIs it uses [1] disable until it is fixed in google-auth module Fixes ERROR: 'OpenSSL.crypto' has no attribute 'sign' [1] googleapis/google-api-python-client#2554 Signed-off-by: Khem Raj <raj.khemgmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment details
google-api-python-client
version: 2.159.0Steps to reproduce
from oauth2client.service_account import ServiceAccountCredentials
Why does this happen?
Because you are importing oauth2client on the line https://github.com/googleapis/google-api-python-client/blob/main/googleapiclient/_auth.py#L33 and it is deprecated, oauth2client uses openssl with the method sign and openssl removed the method sign on the version 24.3.0.
So if you install openssl >= 24.3.0, and if you use the oauth2client.service_account from googleapiclient this will retrieves you the error
ERROR: module 'OpenSSL.crypto' has no attribute 'sign'
How to solves this?
Set a constraint of openssl >= 24.3.0 on googleapiclient or dont import oauth2client on googleapi anymore.
The text was updated successfully, but these errors were encountered: