System Tools addon dstat not working

  • After upgrading to LE 11 dstat no longer works. Other utils from the same addon are ok.

    Any ideas how to fix this?

    Code
    LibreELEC:~ # dstat
    Traceback (most recent call last):
    File "/storage/.kodi/addons/virtual.system-tools/bin/dstat", line 32, in <module>
    import six
    ModuleNotFoundError: No module named 'six'

    I'm no python expert but some "six" lib seems to be missing.

    Cannot find it in addons available for installation, but there seem to be some leftovers from previous versions in Kodi addons folder:

    Quote

    LibreELEC:~/.kodi/addons # ls -ld *six*

    drwxr-xr-x 3 root root 4096 Jan 4 2022 script.module.kodi-six

    drwxr-xr-x 3 root root 4096 Jan 4 2022 script.module.six

  • Go to Best Answer
  • Some quick checking - this is the module - https://kodi.tv/addons/matrix/script.module.six/

    Test

    Add six.py to the addons

    Code
    cd /storage/.kodi/addons/virtual.system-tools/bin
    wget https://raw.githubusercontent.com/benjaminp/six/master/six.py


    Does not seem to help, as dstat seems to need some further python3 patches.

    Actual fix

    Edit dstat and change “import collections” to “import collections.abc”

    And “collections.Sequence” to “collections.abc.Sequence”

    Unable to import freegames python package : AttributeError: module 'collections' has no attribute 'Sequence'
    Python version : 3.10 I was trying to install the freegames python package using the following pip command C:\Users\praty&gt;pip install freegames Defaulting…
    stackoverflow.com


    dstat is unfortunately a archived project. https://github.com/dstat-real/dstat So whilst the above will get you going - not sure on longevity.