Page 1 of 1

RPi.GPIO does not work with python3

Posted: Sat Jan 25, 2020 11:51 pm
by mikemoy
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.

Re: RPi.GPIO does not work with python3

Posted: Sun Jan 26, 2020 6:32 am
by davef
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?

Re: RPi.GPIO does not work with python3

Posted: Sun Jan 26, 2020 2:55 pm
by mikemoy
import RPi.GPIO as GPIO

is all that is required for the problem.

Re: RPi.GPIO does not work with python3

Posted: Fri Jan 31, 2020 7:09 am
by davef
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.