requests / requests-oauthlib

OAuthlib support for Python-Requests!
https://requests-oauthlib.readthedocs.org/
ISC License
1.72k stars 424 forks source link

ImportError: No module named parse #533

Closed huypxgear closed 6 months ago

huypxgear commented 6 months ago

There is an issue when updating to the version 1.4.0. It does not work in Python 2.7. The parse does not exist

  File "/opt/kff/Whiplash-Server-Env/lib/python2.7/site-packages/social/backends/open_id.py", line 12, in <module>
    from social.backends.oauth import BaseOAuth2
  File "/opt/kff/Whiplash-Server-Env/lib/python2.7/site-packages/social/backends/oauth.py", line 3, in <module>
    from requests_oauthlib import OAuth1
  File "/opt/kff/Whiplash-Server-Env/lib/python2.7/site-packages/requests_oauthlib/__init__.py", line 5, in <module>
    from .oauth1_session import OAuth1Session
  File "/opt/kff/Whiplash-Server-Env/lib/python2.7/site-packages/requests_oauthlib/oauth1_session.py", line 1, in <module>
    from urllib.parse import urlparse
ImportError: No module named parse
jtroussard commented 6 months ago

I believe the project is dropping support for <=3.7, there have been some rollback PRs recently. You might need to revert the version to get back this functionality.

jtroussard commented 6 months ago

last release should have been a major version since since some of the API had changed. I believe this will be "fixed" in the up coming release, to prevent this kind of confusion. @JonathanHuot is this correct?

huypxgear commented 6 months ago

Got it. Thank you