django-shop
django-shop copied to clipboard
Tutorial instructions don't work
http://django-shop.readthedocs.io/en/latest/tutorial/intro.html
The problem here is an outdated pip / setuptools.
Proposed fix: document that user should update pip and setuptools.
rene@rene /tmp $ virtualenv -p $(which python3.5) pshoptutorial
Running virtualenv with interpreter /home/rene/local/bin/python3.5
Using base prefix '/home/rene/local'
New python executable in pshoptutorial/bin/python3.5
Also creating executable in pshoptutorial/bin/python
Installing setuptools, pip...done.
rene@rene /tmp $ source shoptutorial/bin/activate
source: no such file or directory: shoptutorial/bin/activate
rene@rene /tmp $
rene@rene /tmp $
Script done, file is typescript
rene@rene /tmp $ rm typescript
rene@rene /tmp $ script 1
Script started, file is 1
* keychain 2.7.1 ~ http://www.funtoo.org
* Found existing ssh-agent: 4602
* Found existing gpg-agent: 4627
* Known ssh key: /home/rene/.ssh/id_rsa
rene@rene /tmp $ virtualenv -p $(which python3.5) shoptutorial
Running virtualenv with interpreter /home/rene/local/bin/python3.5
Using base prefix '/home/rene/local'
New python executable in shoptutorial/bin/python3.5
Also creating executable in shoptutorial/bin/python
Installing setuptools, pip...done.
rene@rene /tmp $ source shoptutorial/bin/activate
(shoptutorial)rene@rene /tmp $ mkdir Tutorial; cd Tutorial
(shoptutorial)rene@rene /tmp/Tutorial $ git clone --depth 1 https://github.com/awesto/django-shop
Cloning into 'django-shop'...
remote: Counting objects: 521, done.
remote: Compressing objects: 100% (461/461), done.
remote: Total 521 (delta 52), reused 208 (delta 25), pack-reused 0
Receiving objects: 100% (521/521), 1.82 MiB | 1.16 MiB/s, done.
Resolving deltas: 100% (52/52), done.
Checking connectivity... done.
(shoptutorial)rene@rene /tmp/Tutorial $ cd django-shop
(shoptutorial)rene@rene /tmp/Tutorial/django-shop (master) $ pip install -e .
Obtaining file:///tmp/Tutorial/django-shop
Running setup.py (path:/tmp/Tutorial/django-shop/setup.py) egg_info for package from file:///tmp/Tutorial/django-shop
error in django-shop setup command: Invalid environment marker: python_version<"3.4"
Complete output from command python setup.py egg_info:
error in django-shop setup command: Invalid environment marker: python_version<"3.4"
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/Tutorial/django-shop
Storing debug log for failure in /home/rene/.pip/pip.log
Experienced same issue with python 2.7.6 on Ubuntu 14.04
The issue seems to be that the setup.py file uses a feature that was added in setuptools v18.0. My version of setuptools was v2.2