You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from requests import post
from requests_oauthlib import OAuth1
from oauthlib.oauth1 import SIGNATURE_RSA
oauthHeader = OAuth1(
_CONSUMER_KEY,
signature_type="auth_header",
signature_method=SIGNATURE_RSA,
rsa_key=_PRIVATE_KEY,
)
r = post(f"{_HOST}/{_TOKEN_PATH}/request-token", auth=oauthHeader)
when I run I get this error
File "/usr/local/lib/python3.6/site-packages/oauthlib/oauth1/rfc5849/signature.py", line 561, in _jwt_rs1_signing_algorithm
_jwtrs1 = jwtalgo.RSAAlgorithm(jwtalgo.hashes.SHA1)
AttributeError: module 'jwt.algorithms' has no attribute 'RSAAlgorithm'
I have oauthlib, cryptography, and pyjwt installed :/
The text was updated successfully, but these errors were encountered:
This is my code:
when I run I get this error
I have oauthlib, cryptography, and pyjwt installed :/
The text was updated successfully, but these errors were encountered: