I've been able to recreate this via the following steps:
schroot -u root -c trusty-amd64 apt-get install python-pip debsums pip install httpie pip --help (ImportError traceback) ------------------------------------------------ Here's the output:
(trusty-amd64)root@impulse:/home/bdmurray# pip install httpie Downloading/unpacking httpie Downloading httpie-0.9.2-py2.py3-none-any.whl (66kB): 66kB downloaded Downloading/unpacking requests>=2.3.0 (from httpie) Downloading requests-2.7.0-py2.py3-none-any.whl (470kB): 470kB downloaded Downloading/unpacking Pygments>=1.5 (from httpie) Downloading Pygments-2.0.2-py2-none-any.whl (672kB): 672kB downloaded Installing collected packages: httpie, requests, Pygments Found existing installation: requests 2.2.1 Uninstalling requests: Successfully uninstalled requests Successfully installed httpie requests Pygments Cleaning up... (trusty-amd64)root@impulse:/home/bdmurray# pip --help Traceback (most recent call last): File "/usr/bin/pip", line 9, in <module> load_entry_point('pip==1.5.4', 'console_scripts', 'pip')() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 351, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2363, in load_entry_point return ep.load() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2088, in load entry = __import__(self.module_name, globals(),globals(), ['__name__']) File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 11, in <module> from pip.vcs import git, mercurial, subversion, bazaar # noqa File "/usr/lib/python2.7/dist-packages/pip/vcs/mercurial.py", line 9, in <module> from pip.download import path_to_url File "/usr/lib/python2.7/dist-packages/pip/download.py", line 25, in <module> from requests.compat import IncompleteRead ImportError: cannot import name IncompleteRead (trusty-amd64)root@impulse:/home/bdmurray# debsums python-requests debsums: missing file /usr/lib/python2.7/dist-packages/requests-2.2.1.egg-info (from python-requests package) /usr/lib/python2.7/dist-packages/requests/__init__.py OK
I've been able to recreate this via the following steps:
schroot -u root -c trusty-amd64 ------- ------- ------- ------- ------- ------
apt-get install python-pip debsums
pip install httpie
pip --help
(ImportError traceback)
-------
Here's the output:
(trusty- amd64)root@ impulse: /home/bdmurray# pip install httpie unpacking httpie 0.9.2-py2. py3-none- any.whl (66kB): 66kB downloaded unpacking requests>=2.3.0 (from httpie) 2.7.0-py2. py3-none- any.whl (470kB): 470kB downloaded unpacking Pygments>=1.5 (from httpie) 2.0.2-py2- none-any. whl (672kB): 672kB downloaded amd64)root@ impulse: /home/bdmurray# pip --help entry_point( 'pip==1. 5.4', 'console_scripts', 'pip')() python2. 7/dist- packages/ pkg_resources. py", line 351, in load_entry_point n(dist) .load_entry_ point(group, name) python2. 7/dist- packages/ pkg_resources. py", line 2363, in load_entry_point python2. 7/dist- packages/ pkg_resources. py", line 2088, in load _(self. module_ name, globals( ),globals( ), ['__name__']) python2. 7/dist- packages/ pip/__init_ _.py", line 11, in <module> python2. 7/dist- packages/ pip/vcs/ mercurial. py", line 9, in <module> python2. 7/dist- packages/ pip/download. py", line 25, in <module> amd64)root@ impulse: /home/bdmurray# debsums python-requests python2. 7/dist- packages/ requests- 2.2.1.egg- info (from python-requests package) python2. 7/dist- packages/ requests/ __init_ _.py OK
Downloading/
Downloading httpie-
Downloading/
Downloading requests-
Downloading/
Downloading Pygments-
Installing collected packages: httpie, requests, Pygments
Found existing installation: requests 2.2.1
Uninstalling requests:
Successfully uninstalled requests
Successfully installed httpie requests Pygments
Cleaning up...
(trusty-
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
load_
File "/usr/lib/
return get_distributio
File "/usr/lib/
return ep.load()
File "/usr/lib/
entry = __import_
File "/usr/lib/
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "/usr/lib/
from pip.download import path_to_url
File "/usr/lib/
from requests.compat import IncompleteRead
ImportError: cannot import name IncompleteRead
(trusty-
debsums: missing file /usr/lib/
/usr/lib/