Skip to content
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

urllib3.packages.six.moves #606

Closed
juancresc opened this issue Aug 31, 2024 · 2 comments
Closed

urllib3.packages.six.moves #606

juancresc opened this issue Aug 31, 2024 · 2 comments

Comments

@juancresc
Copy link

Im not being able to make this work on an old project. Tried to upgrade a dependency and broke right here


  File "/Users/juan/Documents/dev/others/yas-v2/venv2/lib/python3.12/site-packages/social_django/__init__.py", line 4, in <module>
    from social_core.backends.base import BaseAuth
  File "/Users/juan/Documents/dev/others/yas-v2/venv2/lib/python3.12/site-packages/social_core/backends/base.py", line 3, in <module>
    from requests import request, ConnectionError
  File "/Users/juan/Documents/dev/others/yas-v2/venv2/lib/python3.12/site-packages/requests/__init__.py", line 43, in <module>
    import urllib3
  File "/Users/juan/Documents/dev/others/yas-v2/venv2/lib/python3.12/site-packages/urllib3/__init__.py", line 7, in <module>
    from .connectionpool import HTTPConnectionPool, HTTPSConnectionPool, connection_from_url
  File "/Users/juan/Documents/dev/others/yas-v2/venv2/lib/python3.12/site-packages/urllib3/connectionpool.py", line 11, in <module>
    from .exceptions import (
  File "/Users/juan/Documents/dev/others/yas-v2/venv2/lib/python3.12/site-packages/urllib3/exceptions.py", line 2, in <module>
    from .packages.six.moves.http_client import IncompleteRead as httplib_IncompleteRead
ModuleNotFoundError: No module named 'urllib3.packages.six.moves'

This is what I got

social-auth-app-django==3.4.0
social-auth-core==3.3.3
urllib3==1.25.8

I'd love if someone could help me fix these issues

Im using these versions cause Im in an older django release

Django==3.1.6

@pfouque
Copy link
Contributor

pfouque commented Feb 14, 2025

Hi,
I'm surprised this Django version (3.1) even runs with python3.12.
cause It was supporting only these Python versions: 3.6, 3.7, 3.8, 3.9 (added in 3.1.3)
Your best luck is to (learn how to create a virtual environment and ) install an officially supported version of Python for this Django version.

@nijel
Copy link
Member

nijel commented Feb 14, 2025

Indeed, this is most likely incompatibility of old packages with recent Python or other dependencies. The error is inside urrlib3 anyway, so nothing specific to social-app-django.

@nijel nijel closed this as completed Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants