D
D
DanyGrishaev2017-06-10 20:45:04
Django
DanyGrishaev, 2017-06-10 20:45:04

Social-auth-app-django throws an error on ./manage.py migrate What am I doing wrong?

Followed strictly the documentation python-social-auth-docs.readthedocs.io/en/latest/c...
Using Python3.5 in a pip environment. Installed social auth django
Trying to migrate ./manage.py migrate
I get this response

(myenv) [email protected] ~/someenv/touchphys $ ./manage.py migrate
Traceback (most recent call last):
  File "./manage.py", line 22, in <module>
    execute_from_command_line(sys.argv)
  File "/home/daniil/someenv/myenv/lib/python3.5/site-packages/django/core/management/__init__.py", line 363, in execute_from_command_line
    utility.execute()
  File "/home/daniil/someenv/myenv/lib/python3.5/site-packages/django/core/management/__init__.py", line 337, in execute
    django.setup()
  File "/home/daniil/someenv/myenv/lib/python3.5/site-packages/django/__init__.py", line 27, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/home/daniil/someenv/myenv/lib/python3.5/site-packages/django/apps/registry.py", line 108, in populate
    app_config.import_models()
  File "/home/daniil/someenv/myenv/lib/python3.5/site-packages/django/apps/config.py", line 202, in import_models
    self.models_module = import_module(models_module_name)
  File "/home/daniil/someenv/myenv/lib/python3.5/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 665, in exec_module
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "/home/daniil/someenv/myenv/lib/python3.5/site-packages/social_django/models.py", line 10, in <module>
    from .storage import DjangoUserMixin, DjangoAssociationMixin, \
  File "/home/daniil/someenv/myenv/lib/python3.5/site-packages/social_django/storage.py", line 8, in <module>
    from social_core.storage import UserMixin, AssociationMixin, NonceMixin, \
  File "/home/daniil/someenv/myenv/lib/python3.5/site-packages/social_core/storage.py", line 12, in <module>
    from openid.association import Association as OpenIdAssociation
  File "/home/daniil/someenv/myenv/lib/python3.5/site-packages/openid/__init__.py", line 52, in <module>
    if len(version_info) != 3:
TypeError: object of type 'map' has no len()

Module versions
appdirs (1.4.3)
certifi (2017.4.17)
chardet (3.0.4)
defusedxml (0.5.0)
Django (1.11.1)
django-allauth (0.32.0)
django-appconf (1.0.2)
django-ckeditor (5.2.2)
django-guardian (1.4.1)
django-social-auth (0.7.28)
django-user-accounts (2.0.1)
django-userena (2.0.1)
easy-thumbnails (2.4.1)
html2text (2014.12.29)
httplib2 (0.10.3)
idna (2.5)
oauth2 (1.9.0.post1)
oauthlib (2.0.2)
olefile (0.44)
packaging (16.8)
Pillow (4.1.1)
pip (9.0.1)
psycopg2 (2.7.1)
PyJWT (1.5.0)
pyparsing (2.2.0)
python-openid (2.2.5)
python-social-auth (0.3.6)
python3-openid (3.1.0)
pytz (2017.2)
requests (2.17.3)
requests-oauthlib (0.8.0)
setuptools (35.0.2)
six (1.10.0)
social-auth-app-django (1.2.0)
social-auth-core (1.4.0)
urllib3 (1.21.1)
wheel (0.29.0)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2017-06-10
@DanyGrishaev

The package page says:
It also says how to migrate:
https://github.com/omab/python-social-auth/blob/ma...
I would take django-allauth.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question