# Error with neopixels

**URL:** <https://discourse.nodered.org/t/error-with-neopixels/3379>\
**Category:** General\
**Created:** [23 September 2018 14:12 UTC](https://discourse.nodered.org/t/error-with-neopixels/3379 "2018-09-23T14:12:08Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [23 September 2018 14:12 UTC](https://discourse.nodered.org/t/error-with-neopixels/3379/1 "2018-09-23T14:12:08Z")

</div>

Setup a new pi - installed Node-RED from script - added Blocky and Neopixel nodes using palette

I'm getting this showing up in editor

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/9/9bfa0dd8877a13cf833ca4ca1ee6ac5a8530acb7.png)

and this in the terminal window

```
pi@27Jun18_19Sep18:~/.node-red $ node-red
23 Sep 15:06:25 - [info] 

Welcome to Node-RED
===================

23 Sep 15:06:25 - [info] Node-RED version: v0.19.4
23 Sep 15:06:25 - [info] Node.js version: v8.12.0
23 Sep 15:06:25 - [info] Linux 4.14.50-v7+ arm LE
23 Sep 15:06:26 - [info] Loading palette nodes
23 Sep 15:06:32 - [info] Settings file : /home/pi/.node-red/settings.js
23 Sep 15:06:32 - [info] Context store : 'default' [module=memory]
23 Sep 15:06:32 - [info] User directory : /home/pi/.node-red
23 Sep 15:06:32 - [warn] Projects disabled : editorTheme.projects.enabled=false
23 Sep 15:06:32 - [info] Flows file : /home/pi/.node-red/flows_27Jun18_19Sep18.json
23 Sep 15:06:33 - [warn] 

---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.

You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------

23 Sep 15:06:33 - [info] Starting flows
23 Sep 15:06:33 - [info] Started flows
23 Sep 15:06:33 - [info] Server now running at http://127.0.0.1:1880/
23 Sep 15:07:19 - [info] Installing module: node-red-node-pi-neopixel, version: 0.0.21
23 Sep 15:07:33 - [info] Installed module: node-red-node-pi-neopixel
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named neopixel
23 Sep 15:07:33 - [warn] rpi-neopixels : Raspberry Pi specific node set inactive
23 Sep 15:07:33 - [info] Added node types:
23 Sep 15:07:33 - [info] - node-red-node-pi-neopixel:rpi-neopixels
23 Sep 15:08:07 - [info] Stopping flows
23 Sep 15:08:07 - [info] Stopped flows
23 Sep 15:08:07 - [info] Starting flows
23 Sep 15:08:07 - [info] Started flows

```

Tried un-installing/rebooting/re-installing and made no diff - I have installed Pimoroni unicornhat lib via their script and I can get Neopixels to shine using their example scripts

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [23 September 2018 17:13 UTC](https://discourse.nodered.org/t/error-with-neopixels/3379/2 "2018-09-23T17:13:28Z")

</div>

When yousetup the Pi, did you run the bash script at: [https://nodered.org/docs/hardware/raspberrypi](https://nodered.org/docs/hardware/raspberrypi) ?

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [23 September 2018 18:40 UTC](https://discourse.nodered.org/t/error-with-neopixels/3379/3 "2018-09-23T18:40:35Z")

</div>

Yes I did  
..........

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [23 September 2018 18:51 UTC](https://discourse.nodered.org/t/error-with-neopixels/3379/4 "2018-09-23T18:51:52Z")

</div>

did you install the python driver that the prerequisite tells you to?

## Pre-requisites

The Neopixel python driver need to be pre-installed... The easiest way to get the driver installed is to use the Unicorn HAT drivers install script... see the [Pimoroni Getting Started with Unicorn HAT](http://learn.pimoroni.com/tutorial/unicorn-hat/getting-started-with-unicorn-hat)page.

```auto
curl -sS get.pimoroni.com/unicornhat | bash

```

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [23 September 2018 18:54 UTC](https://discourse.nodered.org/t/error-with-neopixels/3379/5 "2018-09-23T18:54:25Z")

</div>

Yes. JFI I've use node this on several Pi and have contributed to the code on Github but never had an error like this

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [23 September 2018 18:58 UTC](https://discourse.nodered.org/t/error-with-neopixels/3379/6 "2018-09-23T18:58:28Z")

</div>

have you ever installed those two nodes together?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [23 September 2018 19:01 UTC](https://discourse.nodered.org/t/error-with-neopixels/3379/7 "2018-09-23T19:01:36Z")

</div>

python vrs python3 maybe??? which do you have installed?

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [23 September 2018 19:01 UTC](https://discourse.nodered.org/t/error-with-neopixels/3379/8 "2018-09-23T19:01:51Z")

</div>

On all my pi

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [23 September 2018 19:03 UTC](https://discourse.nodered.org/t/error-with-neopixels/3379/9 "2018-09-23T19:03:44Z")

</div>

Its a pi so they have always come with both. Like I said, running the example python scripts work fine

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [23 September 2018 19:32 UTC](https://discourse.nodered.org/t/error-with-neopixels/3379/10 "2018-09-23T19:32:55Z")

</div>

Hi.. ooops was checking for the old version of the library - - version 0.0.22 should now be better.

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [23 September 2018 19:47 UTC](https://discourse.nodered.org/t/error-with-neopixels/3379/11 "2018-09-23T19:47:59Z")

</div>

Thanks very much 🙂

 ![29](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/0/02d4d73b80e452b2cefad22f1f28207f0470c139.jpeg)

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [23 September 2018 20:01 UTC](https://discourse.nodered.org/t/error-with-neopixels/3379/12 "2018-09-23T20:01:50Z")

</div>

Thanks for reporting it !

---

<div class="post-metadata">

**Author:** ![Steampunk\_Prof](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@Steampunk\_Prof](https://discourse.nodered.org/u/Steampunk_Prof)\
**Post date:** [8 November 2018 19:38 UTC](https://discourse.nodered.org/t/error-with-neopixels/3379/13 "2018-11-08T19:38:47Z")

</div>

Are there plans for a UnicornHD node?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [9 November 2018 00:04 UTC](https://discourse.nodered.org/t/error-with-neopixels/3379/14 "2018-11-09T00:04:14Z")

</div>

Not unless someone who has one writes one.... ( no hint implied)

---

<div class="post-metadata">

**Author:** ![Steampunk\_Prof](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@Steampunk\_Prof](https://discourse.nodered.org/u/Steampunk_Prof)\
**Post date:** [9 November 2018 00:27 UTC](https://discourse.nodered.org/t/error-with-neopixels/3379/15 "2018-11-09T00:27:14Z")

</div>

I've made a start but wasn't 100% sure which values apply to the upper LED indices. Oh well, I'll just have to suck it and see.
