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
'_RSAPrivateKey' object has no attribute 'sign' #611
Comments
Yes, still not working.
…On 8/4/21 8:46 AM, Mateusz Woda wrote:
Hi @peternye <https://github.com/peternye>
Is it still an issue?
Thanks,
@mwwoda <https://github.com/mwwoda>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#611 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEGDBCAACDDA37JCI3BUKNTT3FODXANCNFSM5BCXGAVA>.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>.
|
@peternye could you do the steps mentioned above?
|
Here are the versions we're using: cryptography 1.7.2 |
This issue could be related to the old cryptography version. Could you try to upgrade it to 3.x.x version? You can use the latests for python 2.7 which is 3.3.2. |
I'm having problems getting this installed; waiting for help from Systems.
…On 8/6/21 7:54 AM, Mateusz Woda wrote:
This issue could be related to the old cryptography version. Could you
try to upgrade it to 3.x.x version? You can use the latests for python
2.7 which is 3.3.2.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#611 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEGDBCCGQ2LNNRIX2GAYLQDT3PZSDANCNFSM5BCXGAVA>.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>.
|
I upgraded to cryptography 3.3.2 and boxsdk 2.12.1. I'm now getting: |
This is probably the same issue as here #387. Refer to https://github.com/box/box-python-sdk#server-to-server-auth-with-jwt if you want to use JWT. |
Worked! pip install "boxsdk[jwt]" did it.
…On 8/19/21 7:45 AM, Mateusz Woda wrote:
This is probably the same issue as here #387
<#387>. Refer to
https://github.com/box/box-python-sdk#server-to-server-auth-with-jwt
<https://github.com/box/box-python-sdk#server-to-server-auth-with-jwt>
if you want to use JWT.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#611 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEGDBCHZZH3Q2PFVNOZKPGTT5UKJZANCNFSM5BCXGAVA>.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>.
|
Description of the Issue
When trying to access the folder structure from a Linux server, it sometimes succeeds, and sometimes I get:
File "/dist/shows/shared/lib/python2.7/site-packages/jwt/api_jws.py" in encode
114. signature = alg_obj.sign(signing_input, key)
File "/dist/shows/shared/lib/python2.7/site-packages/jwt/algorithms.py" in sign
313. return key.sign(msg, padding.PKCS1v15(), self.hash_alg())
Exception Type: AttributeError at /attachments/add/red/international/internationalizr/712768/
Exception Value: '_RSAPrivateKey' object has no attribute 'sign'
This seems to happen more often when the browser request to the server is coming from a Mac Big Sur. This doesn't make sense, since it is still the Linux server issuing the Box call.
Steps to Reproduce
rootFolder = self.client.folder(folder_id='0')
where self.client is the box client
Versions Used
Python SDK: 2.12.1
Python: 2.7.5
The text was updated successfully, but these errors were encountered: