omab / python-social-auth

Social auth made simple
http://psa.matiasaguirre.net
BSD 3-Clause "New" or "Revised" License
2.83k stars 1.09k forks source link

ImportError: No module named 'social_django' #1070

Closed divonelnc closed 7 years ago

divonelnc commented 7 years ago

When getting version 0.3.0, I get the following error:

ImportError: No module named 'social_django'

Anybody had a similar issue?

omab commented 7 years ago

You need to install social-auth-app-django too. Check the details in the migration file.

yeago commented 7 years ago

....requirements.txt....?

omab commented 7 years ago

Sorry?

claycoleman commented 7 years ago

shouldn't that be included in the requirements.txt ? so that when you install python-social-auth, pip will download and install social-auth-app-django as well?

omab commented 7 years ago

@coleclayman, no, because somebody using Flask will end with a lot of dependencies related to Django that's undesired, so I've opted to document the needed dependency instead.

sils commented 7 years ago

@omab how about using setuptools extras?

omab commented 7 years ago

@sis, I can explore that option.

omab commented 7 years ago

@sis, I've added the extras in setup.py also documented them in the migration doc.

tolsoft32 commented 6 years ago

thanks, this help out, but i am now having issue with my django url back end, it display the following after login in with the superuser credential i created

Request Method: POST

http://127.0.0.1:8000/admin/login/?next=/admin/ 1.8.6 ImportError Module "social.backends.facebook" does not define a "Facebook2OAuth2" attribute/class C:\Users\TIPGRI~1\book_env\env\BOOKSM~1\lib\site-packages\django\utils\module_loading.py in import_string, line 29 C:\Users\TIPGRI~1\book_env\env\BOOKSM~1\Scripts\python.exe 3.6.2 ['C:\Users\Tipgridcom Services\book_env\bookmarks', 'C:\Users\TIPGRI~1\book_env\env\BOOKSM~1\Scripts\python36.zip', 'C:\Users\TIPGRI~1\book_env\env\BOOKSM~1\DLLs', 'C:\Users\TIPGRI~1\book_env\env\BOOKSM~1\lib', 'C:\Users\TIPGRI~1\book_env\env\BOOKSM~1\Scripts', 'c:\users\tipgridcom ' 'services\appdata\local\programs\python\python36\Lib', 'c:\users\tipgridcom ' 'services\appdata\local\programs\python\python36\DLLs', 'C:\Users\TIPGRI~1\book_env\env\BOOKSM~1', 'C:\Users\TIPGRI~1\book_env\env\BOOKSM~1\lib\site-packages'] Sat, 9 Dec 2017 22:07:53 +0100

does anyone have the idea of what i need to do and how to go about this.

Regards