tk78
tk78

Reputation: 957

Install Wheel on Raspberry Pi 2 failing - IncompleteRead

I'm trying to install a wheel file and keep stumbling over the following error:

pi@raspberrypi:~ $ pip-3.2 install DsController-1.0-py3-none-any.whl

Traceback (most recent call last):
  File "/usr/bin/pip-3.2", line 9, in <module>
    load_entry_point('pip==1.5.6', 'console_scripts', 'pip3')()
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 356, in 
    load_entry_point
return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2476, in
load_entry_point
return ep.load()
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2190, in load
['__name__'])
File "/usr/lib/python3/dist-packages/pip/__init__.py", line 74, in <module>
from pip.vcs import git, mercurial, subversion, bazaar  # noqa
File "/usr/lib/python3/dist-packages/pip/vcs/mercurial.py", line 9, in
<module>
from pip.download import path_to_url
File "/usr/lib/python3/dist-packages/pip/download.py", line 25, in <module>
from requests.compat import IncompleteRead
ImportError: cannot import name 'IncompleteRead'

I followed the answer in this thread: How do I fix 'ImportError: cannot import name IncompleteRead'?, unfortunately without success.

The Wheel can be installed without problems under Windows.

Upvotes: 0

Views: 939

Answers (1)

Peter Brittain
Peter Brittain

Reputation: 13619

You are not picking up the version of pip that you have installed when running pip-3.2.

As you can see, version 8.1.2 of download.py does not import IncompleteRead. However, version 1.5.6 of download.py does.

Either your copy of pip and pip-3.2 are not the same executable (and so just using pip will work), or your system has a confused import path that means you are picking up the wrong version of the pip package. In the latter case, remvoing the old installation or fixing your import path should work.

Upvotes: 1

Related Questions