Trouble Installing Blinkt pHat

Hi all,

Im having issues installing the blinkt pHat. I run the following command: sudo curl -sS | bash

however the script bails out when installing the Blinkt! library for Python 2

Installing Blinkt! library for Python 2…

Traceback (most recent call last):
File “/usr/bin/pip”, line 9, in
load_entry_point(‘pip==1.5.6’, ‘console_scripts’, ‘pip’)()
File “/usr/lib/python2.7/dist-packages/”, line 356, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File “/usr/lib/python2.7/dist-packages/”, line 2476, in load_entry_point
return ep.load()
File “/usr/lib/python2.7/dist-packages/”, line 2190, in load
File “/usr/lib/python2.7/dist-packages/pip/”, line 74, in
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File “/usr/lib/python2.7/dist-packages/pip/vcs/”, line 9, in
from import path_to_url
File “/usr/lib/python2.7/dist-packages/pip/”, line 25, in
from requests.compat import IncompleteRead
ImportError: cannot import name IncompleteRead
Python 2 library install failed!
If problems persist, visit for support"

Any ideas? Thanks

PyPi, where our libraries are hosted has been temperamental lately. The best advice I can give you is to try again every few hours.

Failing that you can try cloning the gothic repo and install manually, this board has next to no dependency so that should be relatively straightforward. Let us know if you need help with that.

Thanks rogueM I will give it another go tonight. Thanks for quick response!

Been trying constantly all day with no luck.

I have cloned the github repo, how do i now install as jsut running the python scripts produce and error.

Apologies for noob questions!

cd into the library folder then run:

sudo python install

(replace or replicate using python3 if your preference is for python 3)

Thanks worked perfect!

I’m super new to this what does “cd” mean. I’m also having the same issue.

Cd means “change directory”

This is what I get when I install from terminal on my raspberry pi 3.

And thank you for any help

Looks like you need python-dev to compile RPi-GPIO.
… rpi-gpio should already be installed on a Pi though, try:

sudo apt-get install python-rpi.gpio

and if that doesn’t work, then:

sudo apt-get install python-dev

Thanks. sudo apt-get install python-dev. Got me past that but now it looks like I’<img src="//"

width=“690” height=“431”>m lost in anouter spot

Might be because your Python script is called “” and it’s confused about where it should be importing those methods from?

Yes, exactly, you should never call a script as per one of the module you import in it. See the following for the explanation:

Thanks guys. I’ll have to try it later today, I have a long honey do list to complete today. And thanks again for to help it means alot

Ok I tried changing the name and just started over I get the same message , but with the new name i saved it under. It as if the library is missing.

If you go into the Python shell and type “import blinkt” what do you get?

The same message as the screenshots

Ok so I thought I renamed the file but it is still there is there a way to delete it. Thanks for the help

You should just be able to rename or remove it. Maybe try working in a different directory to make sure?