I am trying to locally run an existing Django 1.9 project from my own github on a Mac.
https://github.com/shanegibney/djangoForum.git
Since posting to github over a year ago I've moved to a mac from linux, Fedora.
I've been following instructions from,
How to run cloned Django project?
$ mkdir djangoForum
$ cd djangoForum
$ virtualenv
$ git clone https://github.com/shanegibney/djangoForum.git
$ source env/bin/activate
$ cd djangoForum
$ pip install -r requirements.txt
This is where I get the following error,
(env) shanegibney at Shanes-MacBook-Pro in ~/djangoForum/djangoForum on master*
$ pip3 install -r requirements.txt
Collecting arrow==0.7.0 (from -r requirements.txt (line 1))
Using cached arrow-0.7.0.tar.gz
Collecting beautifulsoup4==4.4.1 (from -r requirements.txt (line 2))
Using cached beautifulsoup4-4.4.1-py3-none-any.whl
Collecting disqus==0.0.4 (from -r requirements.txt (line 3))
Using cached disqus-0.0.4.tar.gz
Collecting Django==1.10.2 (from -r requirements.txt (line 4))
Using cached Django-1.10.2-py2.py3-none-any.whl
Collecting django-allauth==0.25.2 (from -r requirements.txt (line 5))
Using cached django-allauth-0.25.2.tar.gz
Collecting django-allauth-bootstrap==0.1 (from -r requirements.txt (line 6))
Using cached django-allauth-bootstrap-0.1.tar.gz
Collecting django-emoticons==1.1.2 (from -r requirements.txt (line 7))
Using cached django_emoticons-1.1.2-py2.py3-none-any.whl
Collecting django-forms-bootstrap==3.0.1 (from -r requirements.txt (line 8))
Using cached django-forms-bootstrap-3.0.1.tar.gz
Collecting django-tinymce==2.3.0 (from -r requirements.txt (line 9))
Using cached django-tinymce-2.3.0.tar.gz
Collecting evernote==1.25.1 (from -r requirements.txt (line 10))
Using cached evernote-1.25.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/8z/jqnd9kp531q6h12pj95z0kwc0000gn/T/pip-build-_kcvo5hn/evernote/setup.py", line 6
exec x
^
SyntaxError: Missing parentheses in call to 'exec'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/8z/jqnd9kp531q6h12pj95z0kwc0000gn/T/pip-build-_kcvo5hn/evernote/
The error is the same whether I use pip or pip3.
$ pip --version pip 9.0.1 from /Users/shanegibney/djangoForum/env/lib/python3.6/site-packages (python 3.6)
$ python --version
Python 3.6.3
$ which python
/Users/shanegibney/djangoForum/env/bin/python
$ which python2
returns nothing
The requirements.txt file is here,
https://github.com/shanegibney/djangoForum/blob/master/requirements.txt
Can anyone see why I get the error when trying to install requirements.txt?
Tried changing my virtualenv to Python2,
$ virtualenv -p python2 v
The path python2 (from --python=python2) does not exist