Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No module named rest_auth

Getting the error: "ImportError: No module named rest_auth"

Full trace: https://dpaste.de/UHyx

When I try to run the server using 'python2.7 manage.py runserver'

My partner is working off the same venv as me but is able to run the server successfully when he runs 'python2.7 manage.py runserver'. We both have identical(we believe) venv installs and packages.

Not quite sure what can be done to fix this error as I cant really get much from the trace,but I believe it could be something wrong with my python version..

like image 479
Anon957 Avatar asked Nov 28 '15 14:11

Anon957


1 Answers

You have to install django-rest-auth :

pip install django-rest-auth

You may encounter some problems on MacOS which it seems you can fix following this :

  • Unable to install nltk on Mac OS El Capitan

Or this :

  • "OSError: [Errno 1] Operation not permitted" when installing Scrapy in OSX 10.11 (El Capitan) (System Integrity Protection)

Second one seems not to be very system friendly, try first, first.

like image 162
Loïc Avatar answered Sep 21 '22 03:09

Loïc