# Trouble Installing Blinkt pHat

**URL:** <https://forums.pimoroni.com/t/trouble-installing-blinkt-phat/2695>\
**Category:** Support\
**Created:** [July 19, 2016, 7:57pm UTC](https://forums.pimoroni.com/t/trouble-installing-blinkt-phat/2695 "2016-07-19T19:57:14Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![4dogsofwar](https://avatars.discourse-cdn.com/v4/letter/4/3e96dc/32.png) [@4dogsofwar](https://forums.pimoroni.com/u/4dogsofwar)\
**Post date:** [July 19, 2016, 7:57pm UTC](https://forums.pimoroni.com/t/trouble-installing-blinkt-phat/2695/1 "2016-07-19T19:57:14Z")

</div>

Hi all,

Im having issues installing the blinkt pHat. I run the following command: sudo curl -sS [get.pimoroni.com/blinkt](http://get.pimoroni.com/blinkt) | 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/pkg\_resources.py”, line 356, in load\_entry\_point  
return get\_distribution(dist).load\_entry\_point(group, name)  
File “/usr/lib/python2.7/dist-packages/pkg\_resources.py”, line 2476, in load\_entry\_point  
return ep.load()  
File “/usr/lib/python2.7/dist-packages/pkg\_resources.py”, line 2190, in load  
[‘ **name** ’])  
File “/usr/lib/python2.7/dist-packages/pip/ **init**.py”, line 74, in   
from pip.vcs import git, mercurial, subversion, bazaar # noqa  
File “/usr/lib/python2.7/dist-packages/pip/vcs/mercurial.py”, line 9, in   
from pip.download import path\_to\_url  
File “/usr/lib/python2.7/dist-packages/pip/download.py”, line 25, in   
from requests.compat import IncompleteRead  
ImportError: cannot import name IncompleteRead  
Python 2 library install failed!  
If problems persist, visit [forums.pimoroni.com](http://forums.pimoroni.com) for support"

Any ideas? Thanks

---

<div class="post-metadata">

**Author:** ![RogueM](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/roguem/32/311_2.png) [@RogueM](https://forums.pimoroni.com/u/RogueM)\
**Post date:** [July 20, 2016, 12:00am UTC](https://forums.pimoroni.com/t/trouble-installing-blinkt-phat/2695/2 "2016-07-20T00:00:49Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![4dogsofwar](https://avatars.discourse-cdn.com/v4/letter/4/3e96dc/32.png) [@4dogsofwar](https://forums.pimoroni.com/u/4dogsofwar)\
**Post date:** [July 20, 2016, 8:25am UTC](https://forums.pimoroni.com/t/trouble-installing-blinkt-phat/2695/3 "2016-07-20T08:25:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![4dogsofwar](https://avatars.discourse-cdn.com/v4/letter/4/3e96dc/32.png) [@4dogsofwar](https://forums.pimoroni.com/u/4dogsofwar)\
**Post date:** [July 20, 2016, 8:51pm UTC](https://forums.pimoroni.com/t/trouble-installing-blinkt-phat/2695/4 "2016-07-20T20:51:52Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![RogueM](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/roguem/32/311_2.png) [@RogueM](https://forums.pimoroni.com/u/RogueM)\
**Post date:** [July 21, 2016, 9:11am UTC](https://forums.pimoroni.com/t/trouble-installing-blinkt-phat/2695/5 "2016-07-21T09:11:16Z")

</div>

cd into the library folder then run:

```
sudo python setup.py install

```

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

---

<div class="post-metadata">

**Author:** ![4dogsofwar](https://avatars.discourse-cdn.com/v4/letter/4/3e96dc/32.png) [@4dogsofwar](https://forums.pimoroni.com/u/4dogsofwar)\
**Post date:** [July 21, 2016, 9:21pm UTC](https://forums.pimoroni.com/t/trouble-installing-blinkt-phat/2695/6 "2016-07-21T21:21:06Z")

</div>

> [@RogueM](#):
>
> sudo python setup.py install

Thanks worked perfect!

---

<div class="post-metadata">

**Author:** ![Glefic](https://avatars.discourse-cdn.com/v4/letter/g/22d042/32.png) [@Glefic](https://forums.pimoroni.com/u/Glefic)\
**Post date:** [August 26, 2016, 10:14pm UTC](https://forums.pimoroni.com/t/trouble-installing-blinkt-phat/2695/7 "2016-08-26T22:14:36Z")

</div>

> [@RogueM](#):
>
> cd into the library folder then run:
> 
> sudo python setup.py install
> 
> (replace or replicate using python3 if your preference is for python 3)

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

---

<div class="post-metadata">

**Author:** ![4dogsofwar](https://avatars.discourse-cdn.com/v4/letter/4/3e96dc/32.png) [@4dogsofwar](https://forums.pimoroni.com/u/4dogsofwar)\
**Post date:** [August 26, 2016, 10:33pm UTC](https://forums.pimoroni.com/t/trouble-installing-blinkt-phat/2695/8 "2016-08-26T22:33:56Z")

</div>

Cd means “change directory”

---

<div class="post-metadata">

**Author:** ![Glefic](https://avatars.discourse-cdn.com/v4/letter/g/22d042/32.png) [@Glefic](https://forums.pimoroni.com/u/Glefic)\
**Post date:** [August 26, 2016, 11:08pm UTC](https://forums.pimoroni.com/t/trouble-installing-blinkt-phat/2695/9 "2016-08-26T23:08:16Z")

</div>

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

 ![](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/1/1430ea7a2bb6aab4b7d9531ea9f4b5e5021d989c.jpg)

---

<div class="post-metadata">

**Author:** ![Glefic](https://avatars.discourse-cdn.com/v4/letter/g/22d042/32.png) [@Glefic](https://forums.pimoroni.com/u/Glefic)\
**Post date:** [August 26, 2016, 11:29pm UTC](https://forums.pimoroni.com/t/trouble-installing-blinkt-phat/2695/10 "2016-08-26T23:29:47Z")

</div>

And thank you for any help

---

<div class="post-metadata">

**Author:** ![RogueM](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/roguem/32/311_2.png) [@RogueM](https://forums.pimoroni.com/u/RogueM)\
**Post date:** [August 27, 2016, 10:41am UTC](https://forums.pimoroni.com/t/trouble-installing-blinkt-phat/2695/11 "2016-08-27T10:41:59Z")

</div>

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
```

---

<div class="post-metadata">

**Author:** ![Glefic](https://avatars.discourse-cdn.com/v4/letter/g/22d042/32.png) [@Glefic](https://forums.pimoroni.com/u/Glefic)\
**Post date:** [August 27, 2016, 10:47pm UTC](https://forums.pimoroni.com/t/trouble-installing-blinkt-phat/2695/12 "2016-08-27T22:47:02Z")

</div>

Thanks. sudo apt-get install python-dev. Got me past that but now it looks like I’\<img src="[//cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex016/uploads/pimoroni/original/2X/2/2184b250ef8bad7ee7a1736d7a7e9101aa75eacd.jpg](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/2/2184b250ef8bad7ee7a1736d7a7e9101aa75eacd.jpg)"

 ![](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/b/bbe186667723953d6679dc90a2ed0697f908b83e.jpg)width=“690” height=“431”\>m lost in anouter spot

---

<div class="post-metadata">

**Author:** ![major\_tomm](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/major_tomm/32/9044_2.png) [@major\_tomm](https://forums.pimoroni.com/u/major_tomm)\
**Post date:** [August 28, 2016, 8:31am UTC](https://forums.pimoroni.com/t/trouble-installing-blinkt-phat/2695/13 "2016-08-28T08:31:34Z")

</div>

Might be because your Python script is called “[blinkt.py](http://blinkt.py)” and it’s confused about where it should be importing those methods from?

---

<div class="post-metadata">

**Author:** ![RogueM](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/roguem/32/311_2.png) [@RogueM](https://forums.pimoroni.com/u/RogueM)\
**Post date:** [August 28, 2016, 11:21am UTC](https://forums.pimoroni.com/t/trouble-installing-blinkt-phat/2695/14 "2016-08-28T11:21:34Z")

</div>

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

[http://python-notes.curiousefficiency.org/en/latest/python\_concepts/import\_traps.html#the-name-shadowing-trap](http://python-notes.curiousefficiency.org/en/latest/python_concepts/import_traps.html#the-name-shadowing-trap)

---

<div class="post-metadata">

**Author:** ![Glefic](https://avatars.discourse-cdn.com/v4/letter/g/22d042/32.png) [@Glefic](https://forums.pimoroni.com/u/Glefic)\
**Post date:** [August 28, 2016, 4:24pm UTC](https://forums.pimoroni.com/t/trouble-installing-blinkt-phat/2695/15 "2016-08-28T16:24:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Glefic](https://avatars.discourse-cdn.com/v4/letter/g/22d042/32.png) [@Glefic](https://forums.pimoroni.com/u/Glefic)\
**Post date:** [August 28, 2016, 6:30pm UTC](https://forums.pimoroni.com/t/trouble-installing-blinkt-phat/2695/16 "2016-08-28T18:30:05Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![major\_tomm](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/major_tomm/32/9044_2.png) [@major\_tomm](https://forums.pimoroni.com/u/major_tomm)\
**Post date:** [August 28, 2016, 8:13pm UTC](https://forums.pimoroni.com/t/trouble-installing-blinkt-phat/2695/17 "2016-08-28T20:13:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Glefic](https://avatars.discourse-cdn.com/v4/letter/g/22d042/32.png) [@Glefic](https://forums.pimoroni.com/u/Glefic)\
**Post date:** [August 28, 2016, 10:50pm UTC](https://forums.pimoroni.com/t/trouble-installing-blinkt-phat/2695/18 "2016-08-28T22:50:58Z")

</div>

The same message as the screenshots

---

<div class="post-metadata">

**Author:** ![Glefic](https://avatars.discourse-cdn.com/v4/letter/g/22d042/32.png) [@Glefic](https://forums.pimoroni.com/u/Glefic)\
**Post date:** [August 29, 2016, 1:53am UTC](https://forums.pimoroni.com/t/trouble-installing-blinkt-phat/2695/19 "2016-08-29T01:53:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![major\_tomm](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/major_tomm/32/9044_2.png) [@major\_tomm](https://forums.pimoroni.com/u/major_tomm)\
**Post date:** [August 29, 2016, 8:37am UTC](https://forums.pimoroni.com/t/trouble-installing-blinkt-phat/2695/20 "2016-08-29T08:37:58Z")

</div>

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

[Next page](https://forums.pimoroni.com/t/trouble-installing-blinkt-phat/2695.md?page=2)
