Closed
Description
Not quite sure what provokes this error, I've seen it a few times when pip is invoked under tox:
py33 installdeps: flake8, mock, sqlalchemy, Flask
ERROR: invocation failed, logfile: /Users/alex_gaynor/projects/project/.tox/py33/log/py33-1.log
ERROR: actionid=py33
msg=getenv
cmdargs=[local('/Users/alex_gaynor/projects/project/.tox/py33/bin/pip'), 'install', '--pre', 'flake8', 'mock', 'sqlalchemy', 'Flask']
env={'PYTHONIOENCODING': 'utf_8', 'VERSIONER_PYTHON_PREFER_32_BIT': 'no', 'TMPDIR': '/var/folders/fm/57qdjdrx6gzgcq1zlym0xwfc0000gn/T/', 'LOGNAME': 'alex_gaynor', 'USER': 'alex_gaynor', 'HOME': '/Users/alex_gaynor', 'PATH': '/Users/alex_gaynor/projects/project/.tox/py33/bin:/Users/alex_gaynor/.virtualenvs/c8ee7ddf8807579c/bin:/usr/local/heroku/bin:/Users/alex_gaynor/.rbenv/shims:/Users/alex_gaynor/Library/Python/2.7/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin', 'PS1': '(c8ee7ddf8807579c)\\h:\\W \\u\\$ ', 'DISPLAY': '/tmp/launch-EyMZ56/org.macosforge.xquartz:0', 'TERM_PROGRAM': 'iTerm.app', 'LANG': 'en_US.UTF-8', 'TERM': 'xterm-256color', 'Apple_PubSub_Socket_Render': '/tmp/launch-Ds4n39/Render', 'COLORFGBG': '7;0', 'VERSIONER_PYTHON_VERSION': '2.7', 'SHLVL': '1', 'SECURITYSESSIONID': '186a6', 'ITERM_SESSION_ID': 'w0t4p0', 'EDITOR': 'subl -w', 'HISTFILESIZE': '100000000000', 'WORKON_HOME': '/Users/alex_gaynor/.virtualenvs', 'SSH_AUTH_SOCK': '/tmp/launch-f04gW3/Listeners', 'VIRTUAL_ENV': '/Users/alex_gaynor/projects/project/.tox/py33', 'SHELL': '/bin/bash', 'ITERM_PROFILE': 'Default', '_': '/Users/alex_gaynor/.virtualenvs/c8ee7ddf8807579c/bin/tox', 'VIRTUALENVWRAPPER_PROJECT_FILENAME': '.project', 'VIRTUALENVWRAPPER_HOOK_DIR': '/Users/alex_gaynor/.virtualenvs', 'OLDPWD': '/Users/alex_gaynor/.virtualenvs/c8ee7ddf8807579c', '__CF_USER_TEXT_ENCODING': '0x1F5:0:0', 'Apple_Ubiquity_Message': '/tmp/launch-7G7rbX/Apple_Ubiquity_Message', 'PWD': '/Users/alex_gaynor/projects/project', 'COMMAND_MODE': 'unix2003'}
Downloading/unpacking flake8
Downloading/unpacking mock
Using download cache from /Users/alex_gaynor/.pip/cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fm%2Fmock%2Fmock-1.0.1.tar.gz
Running setup.py egg_info for package mock
warning: no files found matching '*.png' under directory 'docs'
warning: no files found matching '*.css' under directory 'docs'
warning: no files found matching '*.html' under directory 'docs'
warning: no files found matching '*.js' under directory 'docs'
Downloading/unpacking sqlalchemy
Cleaning up...
Exception:
Traceback (most recent call last):
File "/Users/alex_gaynor/projects/project/.tox/py33/lib/python3.3/site-packages/pip/basecommand.py", line 134, in main
status = self.run(options, args)
File "/Users/alex_gaynor/projects/project/.tox/py33/lib/python3.3/site-packages/pip/commands/install.py", line 236, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/Users/alex_gaynor/projects/project/.tox/py33/lib/python3.3/site-packages/pip/req.py", line 1085, in prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
File "/Users/alex_gaynor/projects/project/.tox/py33/lib/python3.3/site-packages/pip/index.py", line 287, in find_requirement
applicable_versions = self._sort_versions(applicable_versions)
File "/Users/alex_gaynor/projects/project/.tox/py33/lib/python3.3/site-packages/pip/index.py", line 180, in _sort_versions
return sorted(applicable_versions, key=self._link_sort_key, reverse=True)
File "/Users/alex_gaynor/projects/project/.tox/py33/lib/python3.3/site-packages/pip/index.py", line 167, in _link_sort_key
pri = -(link.wheel.support_index_min())
TypeError: bad operand type for unary -: 'NoneType'