Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3873

Python • Re: Does RPi.GPIO work in Bookworm??

$
0
0

Ive since read that RPi.GPIO is no longer available in Bookworm but can find anything official. If that is the case then thats a real shame and also means I need to re-write a lot of my old python programs if I want to run Bookworm.

If it is no longer available, is there a simple drop-in replacement?

It is clearly untrue that it is 'no longer available in Bookworm'. (If that were the case you would not be able to run it to generate that error message.) But it certainly doesn't work at all on RPi[5] hardware.

RP Ltd have stated that they have 'never supported' RPi.GPIO and their current documentation recommends gpiozero. (Which is not a drop-in replacement.) So it is unlikely that RP Ltd will fix the error you are seeing.

For interim use on your RPi4 board you might want to investigate rpi-lgpio - https://pypi.org/project/rpi-lgpio/

(Posted for information only - I don't guarantee that it will fix your issue. Speaking as another user not for or on behalf of RP Ltd.)

Statistics: Posted by B.Goode — Wed Jun 19, 2024 9:14 am



Viewing all articles
Browse latest Browse all 3873

Trending Articles