Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 1.0 crashes #60

Closed
gleb-chipiga opened this issue Jan 20, 2018 · 2 comments
Closed

Version 1.0 crashes #60

gleb-chipiga opened this issue Jan 20, 2018 · 2 comments
Assignees
Labels

Comments

@gleb-chipiga
Copy link

Ubuntu 17.10, Python 3.6.3, pip 9.0.1

Exception:
Traceback (most recent call last):
File "/home/gleb/.virtualenvs/dev/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/home/gleb/.virtualenvs/dev/lib/python3.6/site-packages/pip/commands/list.py", line 157, in run
packages = self.get_outdated(packages, options)
File "/home/gleb/.virtualenvs/dev/lib/python3.6/site-packages/pip/commands/list.py", line 168, in get_outdated
dist for dist in self.iter_packages_latest_infos(packages, options)
File "/home/gleb/.virtualenvs/dev/lib/python3.6/site-packages/pip/commands/list.py", line 169, in
if dist.latest_version > dist.parsed_version
TypeError: '>' not supported between instances of 'Version' and 'SetuptoolsVersion'
Traceback (most recent call last):
File "/home/gleb/.virtualenvs/dev/bin/pip-review", line 11, in
sys.exit(main())
File "/home/gleb/.virtualenvs/dev/lib/python3.6/site-packages/pip_review/main.py", line 201, in main
outdated = get_outdated_packages(forwarded)
File "/home/gleb/.virtualenvs/dev/lib/python3.6/site-packages/pip_review/main.py", line 185, in get_outdated_packages
output = check_output(command).decode('utf-8')
File "/usr/lib/python3.6/subprocess.py", line 336, in check_output
**kwargs).stdout
File "/usr/lib/python3.6/subprocess.py", line 418, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/home/gleb/.virtualenvs/dev/bin/python3', '-m', 'pip', 'list', '--outdated', '--disable-pip-version-check', '--format=json']' returned non-zero exit status 2.

@jgonggrijp
Copy link
Owner

The last line of your traceback is telling me that pip list is actually the crashing program. It appears you also reported the problem there: pypa/pip#4980. Closing here.

@jgonggrijp
Copy link
Owner

For future reference: the solution is pip3 install --ignore-installed pip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants