nicolargo / glancesautoinstall

Glances Auto Install script
MIT License
60 stars 42 forks source link

Install is incompatible with pip 10.0 #24

Open jcberthon opened 6 years ago

jcberthon commented 6 years ago

I have been trying to build a Docker image for glances, but I get the following error:

W: --force-yes is deprecated, use one of the options starting with --allow instead.
Install dependancies
Collecting pip
  Downloading https://files.pythonhosted.org/packages/0f/74/ecd13431bcc456ed390b44c8a6e917c1820365cbebcb6a8974d1cd045ab4/pip-10.0.1-py2.py3-none-any.whl (1.3MB)
Installing collected packages: pip
  Found existing installation: pip 8.1.1
    Not uninstalling pip at /usr/lib/python2.7/dist-packages, outside environment /usr
Successfully installed pip-10.0.1
Traceback (most recent call last):
  File "/usr/bin/pip", line 9, in <module>
    from pip import main
ImportError: cannot import name main
The command '/bin/sh -c curl -L https://raw.githubusercontent.com/nicolargo/glancesautoinstall/master/install.sh | /bin/bash && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 1

I've tried with Ubuntu Xenial and Bionic as base image. I've tried the develop and release/glances2 branches. Always the same error.

pawel-lmcb commented 5 years ago

@jcberthon can you verify this isn't related to the pip10 bug https://github.com/pypa/pip/issues/5240