Error with neopixels


#1

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

I'm getting this showing up in editor

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


#2

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


#3

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


#4

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 HATpage.

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

#5

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


#6

have you ever installed those two nodes together?


#7

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


#8

On all my pi


#9

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


#10

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


#11

Thanks very much :slight_smile:


#12

Thanks for reporting it !


#13

Are there plans for a UnicornHD node?


#14

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


#15

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.