Power & Source of Big Ideas

RPi.GPIO does not work with python3

Moderators: chensy, FATechsupport

I am experimenting on my NanoPi Duo2. I was shocked to find out that RPi.GPIO does not work for python3.
Would someone be kind enough to share with me a way i can make it work for the NanoPi Duo2 for python3 please.

Also, Friendly Elec, please update this for python3. Its kinda of silly that its so outdated.
I assume you mean RPi.GPIO_NP. According to the Wiki most of the APIs are the same as RPi.GPIO, so which APIs are causing a problem?

Maybe you can press FriendlyArm to supply the differences?
import RPi.GPIO as GPIO

is all that is required for the problem.
I would have thought that if FriendlyArm tweaked RPi.GPIO that it should be called something else.

This is what I usedhttps://pypi.org/project/RPi.GPIO/#description on a RaspberryPi3, but you need pip installed.

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 1 guest