invl / pip-autoremove

Remove a package and its unused dependencies.
Other
618 stars 42 forks source link

Pip 10 error #14

Closed tybrs closed 6 years ago

tybrs commented 6 years ago

When I upgrade to pip version 10. I get the following error if i try to pip-autoremove package -y.

AttributeError: module 'pip' has no attribute 'main'
COOLIRON2311 commented 6 years ago

same issue here:

my output log:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.6/bin/pip-autoremove", line 11, in <module>
    sys.exit(main())
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip_autoremove.py", line 109, in main
    autoremove(args, yes=opts.yes)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip_autoremove.py", line 24, in autoremove
    remove_dist(d)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip_autoremove.py", line 83, in remove_dist
    pip.main(['uninstall', '-y', dist.project_name])
AttributeError: module 'pip' has no attribute 'main'
tybrs commented 6 years ago

Workaround:

$ pip install pip==9.0.3
$ pip-autoremove package
$ pip install --upgrade pip
tresni commented 6 years ago

This is fixed by #15

invl commented 6 years ago

Fixed in v0.9.1