You are not logged in.
I am following the git install directions for DGScored and have run into some trouble.
$ source $(make env)
Collecting decorator==4.0.6 (from -r requirements.txt (line 1))
Using cached decorator-4.0.6-py2.py3-none-any.whl
Collecting Django==1.8.11 (from -r requirements.txt (line 2))
Using cached Django-1.8.11-py2.py3-none-any.whl
Collecting django-admin-bootstrapped==2.5.7 (from -r requirements.txt (line 3))
Using cached django-admin-bootstrapped-2.5.7.tar.gz
Collecting django-bootstrap3==7.0.0 (from -r requirements.txt (line 4))
Using cached django-bootstrap3-7.0.0.tar.gz
Collecting django-extensions==1.6.1 (from -r requirements.txt (line 5))
Using cached django_extensions-1.6.1-py2.py3-none-any.whl
Collecting django-filter==0.12.0 (from -r requirements.txt (line 6))
Using cached django_filter-0.12.0-py2.py3-none-any.whl
Collecting django-rest-swagger==0.3.5 (from -r requirements.txt (line 7))
Using cached django_rest_swagger-0.3.5-py2.py3-none-any.whl
Collecting djangorestframework==3.3.2 (from -r requirements.txt (line 8))
Using cached djangorestframework-3.3.2-py2.py3-none-any.whl
Collecting ipython==4.0.1 (from -r requirements.txt (line 9))
Using cached ipython-4.0.1-py3-none-any.whl
Collecting ipython-genutils==0.1.0 (from -r requirements.txt (line 10))
Using cached ipython_genutils-0.1.0-py2.py3-none-any.whl
Collecting Markdown==2.6.5 (from -r requirements.txt (line 11))
Using cached Markdown-2.6.5.zip
Collecting MySQL-python==1.2.5 (from -r requirements.txt (line 12))
Using cached MySQL-python-1.2.5.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-ep5yhlfx/MySQL-python/setup.py", line 13, in <module>
from setup_posix import get_config
File "/tmp/pip-build-ep5yhlfx/MySQL-python/setup_posix.py", line 2, in <module>
from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ep5yhlfx/MySQL-python/
make: *** [env] Error 1
bash: Makefile:12:: No such file or directory
I had read somewhere that there is an issue with 'configparser' and 'ConfigParser' which stems to the Arch dilemma between Python 2.7 and Python 3.
So I followed this StackOverflow to change the Python symlinks but with no luck.
$ ls -l python
lrwxrwxrwx 1 root root 9 May 14 20:47 python -> python2.7
$ ls -l python2
lrwxrwxrwx 1 root root 9 Mar 31 02:30 python2 -> python2.7
$ ls -l python3
lrwxrwxrwx 1 root root 9 Mar 3 04:44 python3 -> python3.5
Any help understanding what I may be doing wrong, misunderstanding, and a possible solution is greatly appreciated.
TC
Offline
Try changing the virtualenv portion of the makefile to specify python 2.7. I know nothing about makefiles but try changing this:
test -d .env || virtualenv .env >&2
to this:
test -d .env || virtualenv .env –p python2.7 >&2
i would delete everything and start fresh, as the makefile is testing for an existing virtualenv. if you don't delete it, it will skip making a new virtualenv (with the correct python version) and use the existing python 3 one (and fail accordingly). this might be why it continued to fail even after changing your python symlinks (which by the way seems like a bad idea to me - virtualenv exists so you don't have to do things like that).
good luck!
Last edited by gkmcd (2016-05-15 04:53:25)
Offline
I had read somewhere that there is an issue with 'configparser' and 'ConfigParser' which stems to the Arch dilemma between Python 2.7 and Python 3.
So I followed this StackOverflow to change the Python symlinks but with no luck.$ ls -l python lrwxrwxrwx 1 root root 9 May 14 20:47 python -> python2.7 $ ls -l python2 lrwxrwxrwx 1 root root 9 Mar 31 02:30 python2 -> python2.7 $ ls -l python3 lrwxrwxrwx 1 root root 9 Mar 3 04:44 python3 -> python3.5
Any help understanding what I may be doing wrong, misunderstanding, and a possible solution is greatly appreciated.
TC
Never do this, messing with the symlinks will just break everything on your system. Just create a virtualenv for the interpeter version you want to use (and you really should be using python3)
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline