Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Oauth1 - python3
#1
Python3 - Currently trying to sign a HTTP request to access an API, unfortunately I keep running into an issue with requests.

using: https://pypi.python.org/pypi/requests-oauthlib

import requests
from requests_oauthlib import OAuth1
returns: ModuleNotFoundError: No module named 'requests.compat'; 'requests' is not a package

from requests_oauthlib import OAuth1Session
returns: ImportError: cannot import name 'OAuth1Session'

I've been googling for hours and i'm lost
Reply
#2
please, post your full code in code tags as well as full traceback, not just the last line, in error tags.
by any chance, is your file named requests.py?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  OAuth1 authentication using Requests-OAuthlib failing dataplumber 0 1,745 Feb-20-2020, 11:09 PM
Last Post: dataplumber
  Gnuradio python3 is not compatible python3 xmlrpc library How Can I Fix İt ? muratoznnnn 3 4,905 Nov-07-2019, 05:47 PM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020