Issue installing blinkt

Hi Guys

Installed hat but… blinkit directory empty )even though i said Y to full install.
Im getting this message.

Installing Blinkt! library for Python 3…

Traceback (most recent call last):
_ File “/usr/bin/pip3”, line 9, in _
_ 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 _
_ from pip.vcs import git, mercurial, subversion, bazaar # noqa_
_ File “/usr/lib/python3/dist-packages/pip/vcs/mercurial.py”, line 9, in _
_ from pip.download import path_to_url_
_ File “/usr/lib/python3/dist-packages/pip/download.py”, line 25, in _
_ from requests.compat import IncompleteRead_
ImportError: cannot import name 'IncompleteRead’
Python 3 library install failed!
If problems persist, visit forums.pimoroni.com for support

Hardware tested and work fine … not a major issue but can you assist please

BTW nice product with mini black hat

Regards

Allan

yes, if the scripts exits while trying to install the library itself, in this case for python3 specifically, then it does not complete, including install of examples.

… what you have there looks like an issue with pip itself, or pypi (though the later should interfere with lib install for python2 as well, so likely the former).

what happens if you run:

sudo pip3 install blinkt

tried sudo pip3 blinkt … and now ave this message

pi@raspberrypi:~ $ sudo pip3 blinkt
Traceback (most recent call last):
File “/usr/bin/pip3”, line 9, in
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
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File “/usr/lib/python3/dist-packages/pip/vcs/mercurial.py”, line 9, in
from pip.download import path_to_url
File “/usr/lib/python3/dist-packages/pip/download.py”, line 25, in
from requests.compat import IncompleteRead
ImportError: cannot import name ‘IncompleteRead’

Btw I installed envirophat (a few weeks ago) and that runs fine.

Searching around the interweb I found some posts hinting at version discrepancies related to the requests module. What do you get when you run:

pip3 list | grep requests

also, getting a list of where modules are loaded from might shed some lights on the matter, possibly:

python3 -c "import sys; print(sys.path)"

Many thansk for the reply.

First ran pip 3 and got this …
pip3 list | grep requests
Traceback (most recent call last):
File “/usr/bin/pip3”, line 9, in
load_entry_point(‘pip==1.5.6’, ‘console_scripts’, ‘pip3’)()
File “/usr/lib/python3/dist-packages/pkg_resources.py”, line 356, in load_entr
return get_distribution(dist).load_entry_point(group, name)
File “/usr/lib/python3/dist-packages/pkg_resources.py”, line 2476, in load_ent
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
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
from requests.compat import IncompleteRead
ImportError: cannot import name ‘IncompleteRead’

then ran …
python3 -c “import sys; print(sys.path)”

and got this…
python3 -c “import sys; print(sys.path)”
[‘’, ‘/usr/local/lib/python3.4/dist-packages/iwlib-1.5-py3.4-linux-armv7l.egg’, ‘/usr/local/lib/python3.4/dist-packages/jsonpickle-0.9.2-py3.4.egg’, ‘/usr/local/lib/python3.4/dist-packages/netifaces-0.10.4-py3.4-linux-armv7l.egg’, ‘/usr/local/lib/python3.4/dist-packages/psutil-0.5.0-py3.4-linux-armv7l.egg’, ‘/usr/local/lib/python3.4/dist-packages/requests-2.9.1-py3.4.egg’, ‘/usr/local/lib/python3.4/dist-packages/myDevices-0.1.20741-py3.4.egg’, ‘/usr/local/lib/python3.4/dist-packages/WebIOPi-0.7.22-py3.4-linux-armv7l.egg’, ‘/usr/lib/python3.4’, ‘/usr/lib/python3.4/plat-arm-linux-gnueabihf’, ‘/usr/lib/python3.4/lib-dynload’, ‘/usr/local/lib/python3.4/dist-packages’, ‘/usr/lib/python3/dist-packages’]

sorry to be ignorant i haven’t got a clue what all this means

Btw have run most of the examples fro Git and everything seems to be working although i have no idea how that binary clock works:-(

Regards

Allan

according to that output your version of requests is significantly newer than the version included with Raspbian, and it seems incompatible with pip 1.5.6

how you can resolve this issue is not clear to me, with pip3 in a broken state. I am reluctant to advise you to delete usr/local/lib/python3.4/dist-packages/requests-2.9.1-py3.4.egg although I suspect that will be one of the required step, if not fully sufficient to get things back on track.