rbanffy / pip-chill

A more relaxed `pip freeze`
Other
557 stars 25 forks source link

pip-chill aborts with failure to find `pip.get_installed_distributions()` #14

Closed ebrensi closed 6 years ago

ebrensi commented 6 years ago

Description

pip-chill aborts with the error

File ".../lib/python2.7/site-packages/pip_chill/pip_chill.py", line 20, in chill
    for distribution in pip.get_installed_distributions():
AttributeError: 'module' object has no attribute 'get_installed_distributions'

which is apparently a new issue since pip 10. get_installed_distributions is no longer available. I found a solution here: https://stackoverflow.com/questions/49923671/are-there-any-function-replacement-for-pip-get-installed-distributions-in-pip?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa

and it works on my fork of pip-chill. I will submit it as a pull request.

headdab commented 6 years ago

Same problem.