I'm trying out gpiozero
, but after running the examples from their documentation, I still get this errors but it still runs ok.
gpiozero is installed on venv using pip3
#!/usr/bin/env python
from gpiozero import Button
from signal import pause
def say_hello():
print("Hello!")
button = Button(2)
button.when_pressed = say_hello
pause()
/home/pi/gpiozero/venv/lib/python3.7/site-packages/gpiozero/devices.py:279: PinFactoryFallback: Falling back from rpigpio: No module named 'RPi'
'Falling back from %s: %s' % (name, str(e))))
/home/pi/gpiozero/venv/lib/python3.7/site-packages/gpiozero/devices.py:279: PinFactoryFallback: Falling back from rpio: No module named 'RPIO'
'Falling back from %s: %s' % (name, str(e))))
/home/pi/gpiozero/venv/lib/python3.7/site-packages/gpiozero/devices.py:279: PinFactoryFallback: Falling back from pigpio: No module named 'pigpio'
'Falling back from %s: %s' % (name, str(e))))
If I install RPi.GPIO
the error goes away.
sudo apt install python3-gpiozero
NOT install a private copy