Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Broken with pip 10.0.0b2 #9

Open
erdnaxeli opened this issue Apr 3, 2018 · 6 comments
Open

Broken with pip 10.0.0b2 #9

erdnaxeli opened this issue Apr 3, 2018 · 6 comments

Comments

@erdnaxeli
Copy link

erdnaxeli commented Apr 3, 2018

A method have been removed from pip:

File "/tmp/64/1/459755/3208/e4a8b5e71641f249/src/venv/lib/python3.5/site-packages/pipconflictchecker/checker.py", line 279, in main
--
conflicts = checker.get_conflicts()
File "/tmp/64/1/459755/3208/e4a8b5e71641f249/src/venv/lib/python3.5/site-packages/pipconflictchecker/checker.py", line 244, in get_conflicts
requirement_versions = self.get_requirement_versions()
File "/tmp/64/1/459755/3208/e4a8b5e71641f249/src/venv/lib/python3.5/site-packages/pipconflictchecker/checker.py", line 208, in get_requirement_versions
distributions = pip.get_installed_distributions()
AttributeError: module 'pip' has no attribute 'get_installed_distributions'
@erdnaxeli
Copy link
Author

Related to: pypa/pip#5154

@erdnaxeli erdnaxeli changed the title Broken Broken with pip 10.0.0b2 Apr 3, 2018
rlmuraya added a commit to rlmuraya/ipv6map that referenced this issue Oct 12, 2018
@Constantin07
Copy link

I'm getting the same issue on MacOS in venv:

pip 18.1
python 2.7.15
virtualenv==16.1.0

(venv) @ $ pipconflictchecker -v
Traceback (most recent call last):
  File "/Users/user/venv/bin/pipconflictchecker", line 11, in <module>
    sys.exit(main())
  File "/Users/user/venv/lib/python2.7/site-packages/pipconflictchecker/checker.py", line 279, in main
    conflicts = checker.get_conflicts()
  File "/Users/user/venv/lib/python2.7/site-packages/pipconflictchecker/checker.py", line 244, in get_conflicts
    requirement_versions = self.get_requirement_versions()
  File "Users/user/venv/lib/python2.7/site-packages/pipconflictchecker/checker.py", line 208, in get_requirement_versions
    distributions = pip.get_installed_distributions()
AttributeError: 'module' object has no attribute 'get_installed_distributions'

@Alex-Bogdanov
Copy link

Alex-Bogdanov commented Dec 4, 2018

great tool for revealing conflicts! which unexpectedly raises exception on the first touch. nice

@JamesBalazs
Copy link

JamesBalazs commented Jan 4, 2019

This is still a problem...
Devs shouldn't be importing functions from Pip, and there are actual supported packages that provide the same output according to this: pypa/pip#5243 (comment)

A solution for the devs is even present in the same thread: pypa/pip#5243 (comment)

@worldmind
Copy link

Here same problem in another project and some solutions in comments.

@somewes
Copy link
Contributor

somewes commented Nov 20, 2019

this should be fixed in version 0.6.0. newer versions of pip offer the same functionality as what this project was meant to do. pip check

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

Successfully merging a pull request may close this issue.

6 participants