Coder Social home page Coder Social logo

Comments (8)

chidimo avatar chidimo commented on June 21, 2024 15

I am encountering same issue.

Exception Type: | ModuleNotFoundError
Exception Value: | No module named 'social'

I have upgraded to latest version, still same error.

So I tried to install social, but then the process led to an endless series of installs. Each package I installed led to a new missing package.
So far I've installed the following
pip install social
pip install splinter
pip install networkx
pip install gmane
pip install lxml
pip install numpy

Now the missing package is parsedatetime. I just stopped. But why was this issue closed without any resolution offered? Not even a link or a comment or any such thing.

Finally I got my login working by doing pip install python-social-auth.

The documentation of social-auth-app-django doesn't even mention such a thing.

from social-app-django.

omab avatar omab commented on June 21, 2024 11

@coler-j, @diegotejadav: python-social-auth is the old and deprecated library, by doing that you are using code that's old and not maintained anymore. The import error is report is very likely caused by settings that still point to the old library instead of the new one, some options to correct this:

  1. Update any backend in AUTHENTICATION_BACKENDS that still reads social.backends to be social_core.backends
  2. Update any SOCIAL setting that points to social.apps.django.* to be social_django.*

from social-app-django.

coler-j avatar coler-j commented on June 21, 2024 6

I also just ran into this issue. Weird. Never seen this before and I have been using this library alot. First time with Django 2.0.5 and python 3.6.5 though. I just had social-auth-app-django in my requirements and also needed to add python-social-auth and then it works.

from social-app-django.

thattejada avatar thattejada commented on June 21, 2024 3

@chidimo, your solution worked for me! thanks a lot! 😄

pip install python-social-auth

from social-app-django.

omab avatar omab commented on June 21, 2024 3

@diegotejadav, the new library is the one you are currently posting comments on, social-app-django.

I don't have examples for DRF.

from social-app-django.

adiguno avatar adiguno commented on June 21, 2024

I encountered the same error.
After pip installing social, it lead to a series of other 'no module' errors.
It ended with "ImportError: No module named 'mass' ", to which pip install doesn't work.
Why was this closed?

from social-app-django.

thattejada avatar thattejada commented on June 21, 2024

@omab, and what's the new library I can use? I don't want to be using old ones.
One more thing, have you some example of using OAuth 2 with Django Rest Framework, but once again... an updated source, not an deprecated one.
Thanks for your answer.

from social-app-django.

thattejada avatar thattejada commented on June 21, 2024

@omab jaja!, I'm sorry, thank you so much!

from social-app-django.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.