# Newbie with Unicorn Hat install problems

**URL:** <https://forums.pimoroni.com/t/newbie-with-unicorn-hat-install-problems/487>\
**Category:** Support\
**Created:** [February 26, 2015, 9:17pm UTC](https://forums.pimoroni.com/t/newbie-with-unicorn-hat-install-problems/487 "2015-02-26T21:17:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MisterG](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/misterg/32/170_2.png) [@MisterG](https://forums.pimoroni.com/u/MisterG)\
**Post date:** [February 26, 2015, 9:17pm UTC](https://forums.pimoroni.com/t/newbie-with-unicorn-hat-install-problems/487/1 "2015-02-26T21:17:18Z")

</div>

I have the Unicorn Hat attached to the Pi B+ and went to the github repo to get the software. When I run the beginners command (curl [get.pimoroni.com/unicornhat](http://get.pimoroni.com/unicornhat) | bash), copied and pasted, I get the following error message:

QUOTE  
ImportError: No module named ez\_setup

* * *

Command python [setup.py](http://setup.py) egg\_info failed with error code 1 in /home/pi/build/rpi-ws281x  
Storing complete log in /root/.pip/pip.log  
Python 2 library install failed!  
UNQUOTE

Any help would be gratefully appreciated!  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [February 26, 2015, 9:44pm UTC](https://forums.pimoroni.com/t/newbie-with-unicorn-hat-install-problems/487/2 "2015-02-26T21:44:41Z")

</div>

This error isn’t your fault, but I’m really confused about why it’s cropping up. I removed the “ez\_setup” nonsense a couple of versions ago!

Anyway, this should fix it:

```
sudo pip install rpi_ws281x -I
sudo pip install unicornhat -I
```

---

<div class="post-metadata">

**Author:** ![MisterG](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/misterg/32/170_2.png) [@MisterG](https://forums.pimoroni.com/u/MisterG)\
**Post date:** [February 28, 2015, 5:25pm UTC](https://forums.pimoroni.com/t/newbie-with-unicorn-hat-install-problems/487/3 "2015-02-28T17:25:24Z")

</div>

Thank you! It’s installed now.  
But still no joy. I cannot get any of the examples to run. For example when I run the [simple.py](http://simple.py) I get:

munmap error -1

Other things run, but no blinkys :(

I am running the Pi headless, using my mac to ssh into it via ethernet. I have swapped the USB power from the USB port to a mains USB adaptor. Nothing. I have even removed the top layer of my PiBow coupe to see if that’s stopping the connection. Still no joy.

I would try with the Pi2, but I’m still waiting for Flotilla to be finished :)

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [February 28, 2015, 11:15pm UTC](https://forums.pimoroni.com/t/newbie-with-unicorn-hat-install-problems/487/4 "2015-02-28T23:15:42Z")

</div>

Are you running the examples with “sudo”, ie:

```
sudo ./rainbow_blinky.py
```

---

<div class="post-metadata">

**Author:** ![MisterG](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/misterg/32/170_2.png) [@MisterG](https://forums.pimoroni.com/u/MisterG)\
**Post date:** [March 1, 2015, 8:27am UTC](https://forums.pimoroni.com/t/newbie-with-unicorn-hat-install-problems/487/5 "2015-03-01T08:27:53Z")

</div>

Oooops.

Yup; “sudo” was there … just not the “./”

I’m learning and WOW - those LEDS ARE bright :0

Thanks for the help
