BurntSushi / nflvid

An experimental library to map play meta data to footage of that play.
The Unlicense
91 stars 17 forks source link

pip2 installation fails #9

Closed nrnrnr closed 11 years ago

nrnrnr commented 11 years ago

I located pip2 on github. However, the installation fails. I am running in a "virtual environment" as recommended by the pip2 documentation.

I failed to capture the entire screen but this dump may give you some of the gist:

copying build/lib/nflvid/pbp-xml/2012120207.xml.gz -> /home/nr/net/pip2/pip2/lib/python3.2/site-packages/nflvid/pbp-xml
copying build/lib/nflvid/pbp-xml/2013090809.xml.gz -> /home/nr/net/pip2/pip2/lib/python3.2/site-packages/nflvid/pbp-xml
copying build/lib/nflvid/schedule-status -> /home/nr/net/pip2/pip2/lib/python3.2/site-packages/nflvid
copying build/lib/nflvid/vlc.py -> /home/nr/net/pip2/pip2/lib/python3.2/site-packages/nflvid
copying build/lib/nflvid/version.py -> /home/nr/net/pip2/pip2/lib/python3.2/site-packages/nflvid
copying build/lib/nflvid/__init__.py -> /home/nr/net/pip2/pip2/lib/python3.2/site-packages/nflvid
byte-compiling /home/nr/net/pip2/pip2/lib/python3.2/site-packages/nflvid/vlc.py to vlc.cpython-32.pyc
byte-compiling /home/nr/net/pip2/pip2/lib/python3.2/site-packages/nflvid/version.py to version.cpython-32.pyc
byte-compiling /home/nr/net/pip2/pip2/lib/python3.2/site-packages/nflvid/__init__.py to __init__.cpython-32.pyc
  File "/home/nr/net/pip2/pip2/lib/python3.2/site-packages/nflvid/__init__.py", line 519
    except subprocess.CalledProcessError, e:
                                        ^
SyntaxError: invalid syntax

running install_scripts
copying build/scripts-3.2/nflvid-incomplete -> /home/nr/net/pip2/pip2/bin
copying build/scripts-3.2/nflvid-watch -> /home/nr/net/pip2/pip2/bin
copying build/scripts-3.2/nflvid-slice -> /home/nr/net/pip2/pip2/bin
copying build/scripts-3.2/nflvid-footage -> /home/nr/net/pip2/pip2/bin
changing mode of /home/nr/net/pip2/pip2/bin/nflvid-incomplete to 775
changing mode of /home/nr/net/pip2/pip2/bin/nflvid-watch to 775
changing mode of /home/nr/net/pip2/pip2/bin/nflvid-slice to 775
changing mode of /home/nr/net/pip2/pip2/bin/nflvid-footage to 775
running install_data
creating /home/nr/net/pip2/pip2/share
creating /home/nr/net/pip2/pip2/share/doc
creating /home/nr/net/pip2/pip2/share/doc/nflvid
copying README.md -> /home/nr/net/pip2/pip2/share/doc/nflvid
copying longdesc.rst -> /home/nr/net/pip2/pip2/share/doc/nflvid
copying UNLICENSE -> /home/nr/net/pip2/pip2/share/doc/nflvid
creating /home/nr/net/pip2/pip2/share/doc/nflvid/doc
copying doc/nflvid/index.html -> /home/nr/net/pip2/pip2/share/doc/nflvid/doc
running install_egg_info
Writing /home/nr/net/pip2/pip2/lib/python3.2/site-packages/nflvid-0.1.11.egg-info
writing list of installed files to '/tmp/tmp6ic2tw/nflvid-0.1.11/RECORD'
creating /home/nr/net/pip2/pip2/lib/python3.2/site-packages/nflvid-0.1.11.dist-info/METADATA
creating /home/nr/net/pip2/pip2/lib/python3.2/site-packages/nflvid-0.1.11.dist-info/INSTALLER
creating /home/nr/net/pip2/pip2/lib/python3.2/site-packages/nflvid-0.1.11.dist-info/RECORD
removing /home/nr/net/pip2/pip2/lib/python3.2/site-packages/nflvid-0.1.11.egg-info
Successfully installed nflvid.
(pip2)nr@homedog:~/net/pip2$ which nflvid
(pip2)nr@homedog:~/net/pip2$ which nflvid-footage
/home/nr/net/pip2/pip2/bin/nflvid-footage
(pip2)nr@homedog:~/net/pip2$ nflvid-footage
  File "/home/nr/net/pip2/pip2/bin/nflvid-footage", line 118
    print p
          ^
SyntaxError: invalid syntax
(pip2)nr@homedog:~/net/pip2$ nflvid-footage --help
  File "/home/nr/net/pip2/pip2/bin/nflvid-footage", line 118
    print p
          ^
SyntaxError: invalid syntax
(pip2)nr@homedog:~/net/pip2$ 

I can't tell if the problem is "eventlet", but it looks like an internal problem in nflvid. Hence this trouble report.

BurntSushi commented 11 years ago

The problem is that you're still somehow using Python 3 and nflvid requires Python 2.7.

I suspect this is happening either because you're using a pip for Python 3 or because you're using a virtualenv for Python 3. You should be able to see which pip you have by examining the output of pip --version. For example, on my system:

[andrew@Liger ~] pip --version
pip 1.4.1 from /usr/lib/python3.3/site-packages (python 3.3)
[andrew@Liger ~] pip2 --version
pip 1.4.1 from /usr/lib/python2.7/site-packages (python 2.7)

In other words, I cannot use pip on my system to install nflvid but I could use pip2. I can tell this because of the python 3.3 for pip and python 2.7 for pip2. If your pip says python 2.7, then you should be able to use pip.