Last will set on 'hassio_slave/status' as 'dead'.
Requirement already satisfied: RPi.GPIO in /usr/lib/python2.7/dist-packages
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/pi/mqtt_slave/lib/python2.7/site-packages/pi_mqtt_gpio/server.py", line 450, in <module>
gpio_config)
File "/home/pi/mqtt_slave/lib/python2.7/site-packages/pi_mqtt_gpio/server.py", line 391, in configure_gpio_module
return gpio_module.GPIO(gpio_config)
File "/home/pi/mqtt_slave/local/lib/python2.7/site-packages/pi_mqtt_gpio/modules/raspberrypi.py", line 16, in __init__
import RPi.GPIO as gpio
ImportError: No module named RPi.GPIO
Tried to install RPi.GPIO in the venv but got this:
Using sudo runs the command as root user. Switching user takes you out of the virtual environment. If you need to install a python package in the virtual environment you must do so as the user that invokes the virtual environment