Skip to main content
Tweeted twitter.com/StackRaspi/status/680976680131911680
Source Link
Alex
  • 95
  • 2
  • 10

RPIO does not work on Python 3, only in Python 2.7

I've installed RPIO library to my RPI following these instructions:

$ sudo apt-get install python-setuptools
$ sudo easy_install -U RPIO

I'm trying to run this code (test.py):

from RPIO import PWM
servo = PWM.Servo()
servo.set_servo(7,1000)
servo.stop_servo(7)

using sudo python test.py it works, but using sudo python3 test.py it displays: ImportError: No module named RPIO

In the Documentation is written that we can use the library both in Python 2 and 3. Any idea?