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

TypeError with pip 10.0.1 #63

Closed
FriedrichFroebel opened this issue Jul 15, 2018 · 1 comment
Closed

TypeError with pip 10.0.1 #63

FriedrichFroebel opened this issue Jul 15, 2018 · 1 comment

Comments

@FriedrichFroebel
Copy link

I am using Python 3.6.6 with pip 10.0.1 on Manjaro Linux. Trying to run the usual sudo pip-review -i command throws an error:

Exception:
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/pip/_internal/basecommand.py", line 228, in main
    status = self.run(options, args)
  File "/usr/lib/python3.6/site-packages/pip/_internal/commands/list.py", line 145, in run
    packages = self.get_outdated(packages, options)
  File "/usr/lib/python3.6/site-packages/pip/_internal/commands/list.py", line 156, in get_outdated
    dist for dist in self.iter_packages_latest_infos(packages, options)
  File "/usr/lib/python3.6/site-packages/pip/_internal/commands/list.py", line 157, in <listcomp>
    if dist.latest_version > dist.parsed_version
TypeError: '>' not supported between instances of 'Version' and 'Version'
Traceback (most recent call last):
  File "/usr/bin/pip-review", line 11, in <module>
    sys.exit(main())
  File "/usr/lib/python3.6/site-packages/pip_review/__main__.py", line 201, in main
    outdated = get_outdated_packages(forwarded)
  File "/usr/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 '['/usr/bin/python3', '-m', 'pip', 'list', '--outdated', '--disable-pip-version-check', '--format=json']' returned non-zero exit status 2.
@FriedrichFroebel
Copy link
Author

FriedrichFroebel commented Jul 15, 2018

Seems like it is an issue with bundling pip as in pypa/pip#5429 - unfortunately missed this before. Therefore I am going to close this issue.

Edit: The solution from #60 fixed this.

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

No branches or pull requests

1 participant