System Tools 11.80.5.0 issue

  • The python script using System Tools stopped working on my RPi 4B running LE 12 nightly-20231231-dfd843f (RPi4.aarch64)

    It looks at least paths has been changed so the add-on is not backward compatible anymore and the script failed with error message:

    File "/storage/.config/shutdown.py", line 25, in <module>
    import RPi_I2C_driver
    File "/storage/LCD/RPi_I2C_driver.py", line 16, in <module>
    import smbus
    ModuleNotFoundError: No module named 'smbus'

    After updating path in the script

    from sys.path.append('/storage/.kodi/addons/virtual.system-tools/lib')

    to sys.path.append('/storage/.kodi/addons/virtual.system-tools/lib.private')


    the error message has changed to:

    File "/storage/.config/shutdown.py", line 25, in <module>
    import RPi_I2C_driver
    File "/storage/LCD/RPi_I2C_driver.py", line 17, in <module>
    import smbus
    ImportError: libi2c.so.0: cannot open shared object file: No such file or directory

    The directory content is:

    ~/.kodi/addons/virtual.system-tools/lib.private # ls -l
    total 3092
    -rw-r--r-- 1 root root 266408 Dec 22 11:44 libfuse.so
    -rw-r--r-- 1 root root 266408 Dec 22 11:44 libfuse.so.2
    -rw-r--r-- 1 root root 266408 Dec 22 11:44 libfuse.so.2.9.9
    -rw-r--r-- 1 root root 67552 Dec 22 11:44 libi2c.so
    -rw-r--r-- 1 root root 67552 Dec 22 11:44 libi2c.so.0
    -rw-r--r-- 1 root root 67552 Dec 22 11:44 libi2c.so.0.1.1
    -rw-r--r-- 1 root root 619176 Dec 22 11:44 libonig.so
    -rw-r--r-- 1 root root 619176 Dec 22 11:44 libonig.so.5
    -rw-r--r-- 1 root root 619176 Dec 22 11:44 libonig.so.5.4.0
    -rw-r--r-- 1 root root 67824 Dec 22 11:44 libulockmgr.so
    -rw-r--r-- 1 root root 67824 Dec 22 11:44 libulockmgr.so.1
    -rw-r--r-- 1 root root 67824 Dec 22 11:44 libulockmgr.so.1.0.1
    -rw-r--r-- 1 root root 68944 Dec 22 11:44 smbus.so

    Edited once, last by ghtester (January 2, 2024 at 2:22 AM).