Hello guys.
I have read on this forum about some issue when trying start Node-RED Addon with RPi.GPIO library.
But not have success.
The NodeRed Addon Log:
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing...
-----------------------------------------------------------
Add-on: Node-RED
Flow-based programming for the Internet of Things
-----------------------------------------------------------
Add-on version: 10.2.0
You are running the latest version of this add-on.
System: Debian GNU/Linux 11 (bullseye) (aarch64 / raspberrypi4-64)
Home Assistant Core: 2021.12.3
Home Assistant Supervisor: 2021.12.2
-----------------------------------------------------------
Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing...
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] customizations.sh: executing...
[cont-init.d] customizations.sh: exited 0.
[cont-init.d] nginx.sh: executing...
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] node-red.sh: executing...
patching file nodes/ui_base.html
Hunk #1 succeeded at 1162 (offset 631 lines).
up to date, audited 1 package in 2s
found 0 vulnerabilities
[cont-init.d] node-red.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[06:51:48] INFO: Starting Node-RED...
> start
> node $NODE_OPTIONS node_modules/node-red/red.js "--settings" "/etc/node-red/config.js"
18 Dec 06:51:52 - [info]
Welcome to Node-RED
===================
18 Dec 06:51:52 - [info] Node-RED version: v2.1.4
18 Dec 06:51:52 - [info] Node.js version: v16.13.1
18 Dec 06:51:52 - [info] Linux 5.10.0-9-arm64 arm64 LE
18 Dec 06:51:54 - [info] Loading palette nodes
18 Dec 06:52:01 - [info] Dashboard version 3.1.2 started at /endpoint/ui
Traceback (most recent call last):
File "/opt/node_modules/node-red-node-pi-gpio/testgpio.py", line 3, in <module>
import RPi.GPIO as GPIO
File "/usr/lib/python3.9/site-packages/RPi/GPIO/__init__.py", line 23, in <module>
from RPi._GPIO import *
RuntimeError: This module can only be run on a Raspberry Pi!
18 Dec 06:52:03 - [warn] rpi-gpio : Raspberry Pi specific node set inactive
18 Dec 06:52:03 - [info] Settings file : /etc/node-red/config.js
18 Dec 06:52:03 - [info] Context store : 'default' [module=memory]
18 Dec 06:52:03 - [info] User directory : /config/node-red/
18 Dec 06:52:03 - [warn] Projects disabled : editorTheme.projects.enabled=false
18 Dec 06:52:03 - [info] Flows file : /config/node-red/flows.json
18 Dec 06:52:03 - [info] Server now running at http://127.0.0.1:46836/
18 Dec 06:52:03 - [info] Starting flows
18 Dec 06:52:03 - [info] Started flows
[06:52:03] INFO: Starting NGinx...
18 Dec 06:52:08 - [info] [server:Home Assistant] Connecting to undefined
18 Dec 06:52:08 - [info] [server:Home Assistant] Connected to undefined
My Rpi4 System:
~# uname -a
Linux FIFUrpi 5.10.0-9-arm64 #1 SMP Debian 5.10.70-1 (2021-09-30) aarch64 GNU/Linux
~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
I have rpi-gpio packets installed… :\
should be an Addon/Core issue, or a RPi.GPIO library issue?