RPi.GPIO installed but can't import over LE 9.2.0

  • Hi guys,

    Code
    LibreELEC:~ # python
    Python 2.7.16 (default, Nov 23 2019, 02:28:55)
    [GCC 8.3.0] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import RPi.GPIO
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    ImportError: No module named RPi.GPIO
    >>>

    Search in forum shows that people encountered the problem above resolved it with installing "Raspberry Pi Tools" add-on.

    Tried even download the latest tar.gz from RPi.GPIO · PyPI and install it manually => failed on missing compilers and dependencies...

    Tried to uninstall the "Raspberry Pi Tools" add-on and install it again.

    Tried to install "System tools" too... maybe dependecies... No luck.

    Running LE 9.2.0 + Kodi 18.5. Log.

    I noticed, when installing add-on, it reports on dependency of LE 9.1, not 9.2. Can be this a root cause of poor installation of RPi.GPIO?

    Is it possible to manage packages from command line(shell, bash)? How?

    I might try to install pigpio or RPIO...

    Edited once, last by grhhm (February 3, 2020 at 7:53 AM).

  • Sorry, I forgot to tell you the final tweak about "Raspberry Pi Tools"./shrug

    Import the GPIO lib like this at your Python script:

    Code
    import sys
    sys.path.append('/storage/.kodi/addons/virtual.rpi-tools/lib')
    import RPi.GPIO as GPIO