I'm setting up some test flows to test out my projects integration to GitHub and Balena. I created a very simple flow of an inject node, a trigger node and a GPIO out node to turn on and off an LED.
The issue is that for some reason I am hit with this error:
[error] [rpi-gpio out:5508a8b9.eff008] nrpgio python command not running
Hi, even after the update I am still getting the same error. Any ideas?
I can't think what could be causing it. The only thing I've done differently from normal is that I'm using the projects, could it be something to do with that?
Can you restart node-red and post the first part of the output log until the part it says it’s available on :? Sounds like there might still be a version mismatch somewhere. It will also show the exact error you’re getting.
As for the python script, it is bundled with the gpio node. It should be run by the output node in the background to interact.
pi@MSAT-Master:~ $ node-red-stop && node-red-start
Stop Node-RED
Use node-red-start to start Node-RED again
Start Node-RED
Once Node-RED has started, point a browser at http://192.168.1.107:1880
On Pi Node-RED works better with the Firefox or Chrome browser
Use node-red-stop to stop Node-RED
Use node-red-start to start Node-RED again
Use node-red-log to view the recent log output
Use sudo systemctl enable nodered.service to autostart Node-RED at every boot
Use sudo systemctl disable nodered.service to disable autostart on boot
To find more nodes and example flows - go to http://flows.nodered.org
Starting as a systemd service.
26 Sep 12:31:02 - [info]
Welcome to Node-RED
===================
26 Sep 12:31:02 - [info] Node-RED version: v0.20.8
26 Sep 12:31:02 - [info] Node.js version: v10.16.3
26 Sep 12:31:02 - [info] Linux 4.19.57-v7l+ arm LE
26 Sep 12:31:03 - [info] Loading palette nodes
26 Sep 12:31:05 - [info] Dashboard version 2.16.3 started at /ui
26 Sep 12:31:06 - [info] Settings file : /home/pi/.node-red/settings.js
26 Sep 12:31:06 - [info] Context store : 'default' [module=memory]
26 Sep 12:31:06 - [info] User directory : /home/pi/.node-red
26 Sep 12:31:06 - [info] Server now running at http://127.0.0.1:1880/
26 Sep 12:31:06 - [info] Active project : MSAT-EC-Twinfan
26 Sep 12:31:06 - [info] Flows file : /home/pi/.node-red/projects/MSAT-EC-Twinfan/flows_MSAT-Master_EC-Twinfan.json
26 Sep 12:31:06 - [info] Starting flows
26 Sep 12:31:06 - [info] Started flows
26 Sep 12:31:06 - [error] [rpi-gpio out:5508a8b9.eff008] nrpgio python command not running
Pretty sure it’s that. The error matches the “python command not found” error message. My gut says there’s a version mismatch/incompatibility somewhere
I’m going to check the python code to see if there’s actually an incompatibility, and if so do a PR to make it able to handle both versions if possible.
yeah, and the code is already compatible so it should execute...
Can you execute the following commands from the terminal: ls -ahl /usr/lib/node_modules/node-red/node_modules/@node-red/nodes/core/hardware/
Then, if that doesn't give an error test the following: python /usr/lib/node_modules/node-red/node_modules/@node-red/nodes/core/hardware/nrgpio.py
If that gives the following error
Traceback (most recent call last):
File "nrgpio.py", line 17, in <module>
import RPi.GPIO as GPIO
ModuleNotFoundError: No module named 'RPi'
your next step should be to install the RPi python module on the device. To install that in the global python system that executes at /usr/bin/python, type sudo pip install RPi.GPIO.
If it doesn't get that error, I've no clue at all what is going wrong here.