[error] [rpi-gpio out:fe7c0fde.e33d2] nrpgio python command not running

1,279 views
Skip to first unread message

arie van Lieshout

unread,
Jul 3, 2017, 5:51:07 AM7/3/17
to Node-RED
Hello there,

I'm a complete NOOB to node-red and would appreciate some help with the following problem.

I want to operate de GPIO pins and created a small flow with two injects with value 1 and 0 and a Raspberry Pi output node. When i deploy this the Raspberry Pi output node starts with status "ok" which quickly changes to "stopped". When i now hit the insertion button i receive the error message:"nrpgio python command not running" 
Operating the GPIO's via python script is working just fine.

I installed node-red according to the node-red documentation by using the command:

I have seen Paneb post "Node-Red failed GPIO (nrpgpio)" and re-installed my Pi and node-red just to make sure i didn't sudo the bash command. unfortunately i still have this error. What am I doing wrong?

My environment:
Raspberrypi zero running Raspbian Jessie 4.9.28+
Python 2.7.9
GPIO.VERSION '0.6.3'

Many thanks in advance.


Message has been deleted

Zenofmud

unread,
Jul 3, 2017, 10:29:07 AM7/3/17
to node...@googlegroups.com
First off welcome to Node red and remember you learn in steps. Now some questions
1) what model Pi are you using?
2) what OS and release (i.e. Rasbian released 2017-06-17 full version)
3) what release of NPM, Node and Node-red? (you can use ‘npm -v’ and ‘node -v and when you start node-red you should see the version)
4) post your flow - go into node-red and from the menu select export->clipboard then copy the text and paste it in your reply
5) did you read the section 'Accessing GPIO’ at http://nodered.org/docs/hardware/raspberrypi

Providing the basic information when you post a query for help will let others know your environment and saves them time asking for it and save you time in getting a reply.

Don’t forget to read the documentation (http://nodered.org/docs/) and that Google is your friend (try 'nodered nrpgio python command not running’)

Paul
> --
> http://nodered.org
>
> Join us on Slack to continue the conversation: http://nodered.org/slack
> ---
> You received this message because you are subscribed to the Google Groups "Node-RED" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
> To post to this group, send email to node...@googlegroups.com.
> Visit this group at https://groups.google.com/group/node-red.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/9ee8105c-a8e4-4120-9e13-483b9b649568%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

arie van Lieshout

unread,
Jul 3, 2017, 12:33:23 PM7/3/17
to Node-RED
Hi Paul, and thank you for your reaction :-)

As mentioned in my post i am using a raspberry Pi Zero W running Raspbian Jessie 4.9.28+ Full version release date 2017-06-21.
Python 2.7.9
nrgpio ver --> 0.6.3
npm -v --> 3.10.10
node -v --> v6.11.0

node-red-start output

Welcome to Node-RED
===================
3 Jul 11:17:20 - [info] Node-RED version: v0.17.2
3 Jul 11:17:20 - [info] Node.js  version: v6.11.0
3 Jul 11:17:20 - [info] Linux 4.9.28+ arm LE
3 Jul 11:17:24 - [info] Loading palette nodes
3 Jul 11:17:41 - [info] Settings file  : /home/pi/.node-red/settings.js
3 Jul 11:17:41 - [info] User directory : /home/pi/.node-red
3 Jul 11:17:41 - [info] Flows file     : /home/pi/.node-red/flows_tuinpi.json
3 Jul 11:17:41 - [info] Creating new flow file
3 Jul 11:17:41 - [info] Starting flows
3 Jul 11:17:41 - [info] Started flows
3 Jul 11:17:42 - [info] Server now running at http://127.0.0.1:1880/


The flow i'm using is quit simple and is listed below.

[{"id":"6837e76f.2d5408","type":"inject","z":"9588ce11.3fa8a","name":"1","topic":"","payload":"1","payloadType":"num","repeat":"","crontab":"","once":false,"x":130,"y":229.99999999999997,"wires":[["fe7c0fde.e33d2"]]},{"id":"7ad38d6e.985314","type":"inject","z":"9588ce11.3fa8a","name":"0","topic":"","payload":"0","payloadType":"num","repeat":"","crontab":"","once":false,"x":130,"y":280,"wires":[["fe7c0fde.e33d2"]]},{"id":"fe7c0fde.e33d2","type":"rpi-gpio out","z":"9588ce11.3fa8a","name":"","pin":"4","set":"","level":"0","freq":"","out":"out","x":424.2857142857142,"y":260,"wires":[]}]


Yes, i've read the section about 'Accessing GPIO’  at http://nodered.org/docs/hardware/raspberrypi and verified that i'm using the right or higher version of nrgpio. 
Because i'm using user "pi" i've skip the command "NodeREDusername ALL=(ALL) NOPASSWD: /usr/bin/python"

Unfortunately Google is not my good friend when I try 'nodered nrpgio python command not running’
quote
"errors": {
"ignorenode": "Ignoring Raspberry Pi specific node",
"version": "Version command failed",
"sawpitype": "Saw Pi Type",
"libnotfound": "Cannot find Pi RPi.GPIO python library",
"alreadyset": "GPIO pin __pin__ already set as type: __type__",
"invalidpin": "Invalid GPIO pin",
"invalidinput": "Invalid input",
"needtobeexecutable": "__command__ needs to be executable",
"mustbeexecutable": "nrgpio must to be executable",
"commandnotfound": "nrgpio command not found",
"commandnotexecutable": "nrgpio command not executable",
"error": "error: __error__",
"pythoncommandnotfound": "nrpgio python command not running"
}

Please let me know if you need more information.

Kind regards, Arie


Op maandag 3 juli 2017 16:29:07 UTC+2 schreef Paul Woodard:

arie van Lieshout

unread,
Jul 4, 2017, 3:47:57 AM7/4/17
to Node-RED
Hi Paul,

I think i've solved this problem.

1. I started from scratch with a freshly downloaded Raspbian Jessie 4.9.28+ Full version release date 2017-06-21.
2. This time i DID NOT run the commands "sudo apt-get update -y" and "sudo apt-get upgrade -y"
4. Started node-red
5. Imported the flow
6. Hit deploy and..... it workes

Not sure why it works now, i find it hard to believe that skipping the sudo apt-get commands solved this problem.....
Anyway, it's working now ;-)

Thanks for you help :-)

Arie.



Op maandag 3 juli 2017 18:33:23 UTC+2 schreef arie van Lieshout:

Zenofmud

unread,
Jul 4, 2017, 1:27:47 PM7/4/17
to node...@googlegroups.com
Glad it's working! However, being the inquisitive type I am, I personally would want to know why.

Paul
Reply all
Reply to author
Forward
0 new messages