# Rpi gpio library not work with dietpi trixie

**URL:** https://discourse.nodered.org/t/rpi-gpio-library-not-work-with-dietpi-trixie/100595
**Category:** General
**Created:** [18 March 2026 20:00 UTC](https://discourse.nodered.org/t/rpi-gpio-library-not-work-with-dietpi-trixie/100595 "2026-03-18T20:00:20Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![devifast](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@devifast](https://discourse.nodered.org/u/devifast)
#### Post date: [18 March 2026 20:00 UTC](https://discourse.nodered.org/t/rpi-gpio-library-not-work-with-dietpi-trixie/100595/1 "2026-03-18T20:00:20Z")

</div>

@Colin  
rpi gpio 2.07 library not work with dietpi trixie?  
In general, they don't work on Bookworm either. The old 2.06 library works on Bulleye.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [18 March 2026 20:56 UTC](https://discourse.nodered.org/t/rpi-gpio-library-not-work-with-dietpi-trixie/100595/2 "2026-03-18T20:56:04Z")

</div>

> [@devifast](#):
>
> @Colin  
> rpi gpio 2.07 library not work with dietpi trixie?

I don't know whether it works or not.

---

<div class="post-metadata">

### Author: ![devifast](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@devifast](https://discourse.nodered.org/u/devifast)
#### Post date: [18 March 2026 22:07 UTC](https://discourse.nodered.org/t/rpi-gpio-library-not-work-with-dietpi-trixie/100595/3 "2026-03-18T22:07:13Z")

</div>

Dear Colin, I don't know if you have cross-platform support? I've learned that I have to ask the same question on both platforms and expect an adequate answer. Thanks.

---

<div class="post-metadata">

### Author: ![devifast](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@devifast](https://discourse.nodered.org/u/devifast)
#### Post date: [18 March 2026 22:10 UTC](https://discourse.nodered.org/t/rpi-gpio-library-not-work-with-dietpi-trixie/100595/4 "2026-03-18T22:10:26Z")

</div>

I apologize, but you gave me correct answers to the questions I asked. That's why I turned to you.

---

<div class="post-metadata">

### Author: ![devifast](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@devifast](https://discourse.nodered.org/u/devifast)
#### Post date: [18 March 2026 22:22 UTC](https://discourse.nodered.org/t/rpi-gpio-library-not-work-with-dietpi-trixie/100595/5 "2026-03-18T22:22:49Z")

</div>

> [@devifast](#):
>
> rpi gpio 2.07 library not work with dietpi trixie?  
> In general, they don't work on Bookworm either. The old 2.06 library works on Bulleye.

@dceejay rpi gpio 2.07 library not work with dietpi trixie?  
In general, they don't work on Bookworm either. The old 2.06 library works on Bulleye.

---

<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: [19 March 2026 07:13 UTC](https://discourse.nodered.org/t/rpi-gpio-library-not-work-with-dietpi-trixie/100595/6 "2026-03-19T07:13:50Z")

</div>

Is that a question or a statement ? I don’ t know as I haven’t tried it. We rely on user feedback to report back. If you are saying it doesn’t work, then what errors is it reporting ?

---

<div class="post-metadata">

### Author: ![devifast](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@devifast](https://discourse.nodered.org/u/devifast)
#### Post date: [19 March 2026 16:29 UTC](https://discourse.nodered.org/t/rpi-gpio-library-not-work-with-dietpi-trixie/100595/7 "2026-03-19T16:29:45Z")

</div>

After Bullseye they replaced the rpi-gpio library with something like rpi-lgpio which was more modern etc. And since then node-red-node-pi-gpio stopped working (under the pins when I configure them as inputs and outputs it says n/a). I keep installing Bullseye but this can't go on forever.

---

<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: [19 March 2026 16:34 UTC](https://discourse.nodered.org/t/rpi-gpio-library-not-work-with-dietpi-trixie/100595/8 "2026-03-19T16:34:50Z")

</div>

Who replaced it ? Official Pi did I think. Did Diet-Pi not also do it ? A few more clues would be useful.

---

<div class="post-metadata">

### Author: ![devifast](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@devifast](https://discourse.nodered.org/u/devifast)
#### Post date: [19 March 2026 16:41 UTC](https://discourse.nodered.org/t/rpi-gpio-library-not-work-with-dietpi-trixie/100595/9 "2026-03-19T16:41:54Z")

</div>

As far as I remember, the official Pi was replaced because the new library controlled the pins in a more modern way or something. Things don't work with Bookworm and Trixie.[https://dietpi.com/forum/t/node-red-node-pi-gpio-library/24578](https://dietpi.com/forum/t/node-red-node-pi-gpio-library/24578)

---

<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: [19 March 2026 17:34 UTC](https://discourse.nodered.org/t/rpi-gpio-library-not-work-with-dietpi-trixie/100595/10 "2026-03-19T17:34:09Z")

</div>

They work fine with Pi-OS. So we need to fine out what is different

---

<div class="post-metadata">

### Author: ![devifast](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@devifast](https://discourse.nodered.org/u/devifast)
#### Post date: [19 March 2026 17:36 UTC](https://discourse.nodered.org/t/rpi-gpio-library-not-work-with-dietpi-trixie/100595/11 "2026-03-19T17:36:08Z")

</div>

I don't know if you looked at the link above.

---

<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: [19 March 2026 17:36 UTC](https://discourse.nodered.org/t/rpi-gpio-library-not-work-with-dietpi-trixie/100595/12 "2026-03-19T17:36:38Z")

</div>

Yes. The pi nodes can use lgpio so it could/should work

---

<div class="post-metadata">

### Author: ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)
#### Post date: [19 March 2026 18:02 UTC](https://discourse.nodered.org/t/rpi-gpio-library-not-work-with-dietpi-trixie/100595/13 "2026-03-19T18:02:05Z")

</div>

Im quite social currently, so thought id chip in (and sound clever)

```auto
python3-rpi-lgpio

```

`RPi.GPIO` (used by the python helper for the Node RED Node) depends on an old library - no longer around in recent RPI OS's, and the shim above is a proxy to the new lib (`lgpio`), and polyfils the missing lib that `RPi.GPIO` wants.

(at least thats what I understand)

---

<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: [19 March 2026 19:01 UTC](https://discourse.nodered.org/t/rpi-gpio-library-not-work-with-dietpi-trixie/100595/14 "2026-03-19T19:01:19Z")

</div>

Yes correct AFAIK. And the default script checks for it. But I’ve no idea if the Diet-Pi installs it. ( and generally it’s a bad idea to mix the default script with the Diet-Pi installer - you can but it’s a one way deal so in general don’t).

---

<div class="post-metadata">

### Author: ![devifast](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@devifast](https://discourse.nodered.org/u/devifast)
#### Post date: [20 March 2026 15:10 UTC](https://discourse.nodered.org/t/rpi-gpio-library-not-work-with-dietpi-trixie/100595/15 "2026-03-20T15:10:07Z")

</div>

I am just a user and I can install Dietpi and Node red and that's where my competence ends. I have made several attempts with a fresh installation and what is shown here [https://dietpi.com/forum/t/node-red-node-pi-gpio-library/24578](https://dietpi.com/forum/t/node-red-node-pi-gpio-library/24578)  
but things work half-heartedly or not at all.  
I tried that too [https://dietpi.com/forum/t/rpi-gpio-node-red-library-not-work-on-dietpi-bookworm-and-trixie/25047/3](https://dietpi.com/forum/t/rpi-gpio-node-red-library-not-work-on-dietpi-bookworm-and-trixie/25047/3)  
but I can't set it up as a daemon. In short, nothing happened. Please help.

---

<div class="post-metadata">

### Author: ![devifast](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@devifast](https://discourse.nodered.org/u/devifast)
#### Post date: [20 March 2026 15:13 UTC](https://discourse.nodered.org/t/rpi-gpio-library-not-work-with-dietpi-trixie/100595/16 "2026-03-20T15:13:03Z")

</div>

![0-02-05-9ea9ba15ee017a1c8a18ca48677ce08e89e1dfa4c753590add14493fc5721659_150fddc9b695b7ec](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/2/e20cc3c7d3a06377f571b8737a8f6abcddc5abcd.jpeg)  
 ![0-02-05-4348348ca690dddd6d1151225f069d3fc059112996602100b6ae0873ea743e20_9470e323e7dd7408](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/9/a915f4be957f83f7781547d63800f30fe0076eab.jpeg)

Here are some pictures.

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [20 March 2026 16:11 UTC](https://discourse.nodered.org/t/rpi-gpio-library-not-work-with-dietpi-trixie/100595/17 "2026-03-20T16:11:46Z")

</div>

I have seen this issue over and over in the forum.

Someone says something along the lines of "gpio pins don't work any more"  
Someone else says what setup do you have? What error messages do you see?  
A third person says it works for me with lgpio.  
And there the discussion ends.

So I'll happily reprogram an SD card and try flashing an led if it helps clarify this.

1. What version of Pi would you like me to use? Available, assuming i can find my USB wifi dongle are zero 2W (64 bit), 3B (32 bit?) And 1B+ (32 bit)
2. What version of RPiOS should I install?
3. What version of Node-red?
4. Can you post a test flow?

Update:  
I did try but alas my soldering skills were not up to the task of putting a header on the Pi and now it won't boot ☹

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [20 March 2026 16:30 UTC](https://discourse.nodered.org/t/rpi-gpio-library-not-work-with-dietpi-trixie/100595/18 "2026-03-20T16:30:10Z")

</div>

I think you need a dietpi unfortunately.

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [20 March 2026 16:39 UTC](https://discourse.nodered.org/t/rpi-gpio-library-not-work-with-dietpi-trixie/100595/19 "2026-03-20T16:39:39Z")

</div>

Ah.

But Dietpi is an OS not an alternative board?

---

<div class="post-metadata">

### Author: ![devifast](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@devifast](https://discourse.nodered.org/u/devifast)
#### Post date: [20 March 2026 16:42 UTC](https://discourse.nodered.org/t/rpi-gpio-library-not-work-with-dietpi-trixie/100595/20 "2026-03-20T16:42:28Z")

</div>

board: rpi zero2  
OS: Dietpi Trixie 64 bit  
Node Red from install manager of Dietpi.  
Thats it.

[Next page](https://discourse.nodered.org/t/rpi-gpio-library-not-work-with-dietpi-trixie/100595.md?page=2)
