Add-on dependency not automatically installed

  • Hi,

    I'm the developer of a moonlight-qt plugin for LibreELEC, full source can be found here: GitHub - veldenb/plugin.program.moonlight-qt: A launcher and updater for running Moonlight-qt on LibreELEC/Raspberry Pi 4 systems.

    I'm running into a problem that the dependency for my plugin is not installed.

    The addon.xml contains the dependency:

    Code
    <requires>
      <import addon="xbmc.python" version="3.0.0"/>
      <import addon="service.system.docker" version="9.80.11.133"/>
    </requires>

    Kodi info:

    Code
    2021-06-05 02:34:45.678 T:1139     INFO <general>: -----------------------------------------------------------------------
    2021-06-05 02:34:45.678 T:1139     INFO <general>: Starting Kodi (19.1 (19.1.0) Git:2d78f9dfc3095b548b3928bacaa141eea10b669c). Platform: Linux ARM 32-bit
    2021-06-05 02:34:45.678 T:1139     INFO <general>: Using Release Kodi x32
    2021-06-05 02:34:45.679 T:1139     INFO <general>: Kodi compiled 2021-05-26 by GCC 10.2.0 for Linux ARM 32-bit version 5.10.27 (330267)
    2021-06-05 02:34:45.679 T:1139     INFO <general>: Running on BCM2711 with LibreELEC (official): 9.95.4 10.0, kernel: Linux ARM 32-bit version 5.10.27

    Install plugin from zip, Docker is not found:

    Display Spoiler

    2021-06-05 02:41:20.179 T:1139 DEBUG <general>: CAddonInstaller: installing from zip '/storage/plugin.program.moonlight-qt.zip'

    2021-06-05 02:41:20.181 T:1414 DEBUG <general>: Thread JobWorker start, auto delete: true

    2021-06-05 02:41:20.191 T:1414 DEBUG <general>: CAddonDatabase: SELECT repo.id FROM repo .. took 2 ms

    2021-06-05 02:41:20.216 T:1414 DEBUG <general>: CAddonDatabase: query SELECT addons.*, repo.addonID AS repoID FROM addons JOIN addonlinkrepo ON addons.id=addonlinkrepo.idAddon JOIN repo ON repo.id=addonlinkrepo.idRepo WHERE addonlinkrepo.idRepo IN (1,2,3,4) ORDER BY repo.addonI

    D, addons.addonID returned 877 rows in 26 ms

    2021-06-05 02:41:20.382 T:1414 DEBUG <general>: CAddonDatabase::GetAddons took 194 ms

    2021-06-05 02:41:20.399 T:1414 DEBUG <general>: ADDONS: repo: repository.castagnait - 3 addon(s) loaded

    2021-06-05 02:41:20.399 T:1414 DEBUG <general>: ADDONS: repo: repository.kodi.game - 1 addon(s) loaded

    2021-06-05 02:41:20.399 T:1414 DEBUG <general>: ADDONS: repo: repository.libreelec.tv - 234 addon(s) loaded

    2021-06-05 02:41:20.399 T:1414 DEBUG <general>: ADDONS: repo: repository.xbmc.org - 639 addon(s) loaded

    2021-06-05 02:41:20.405 T:1414 ERROR <general>: CAddonInstallJob[plugin.program.moonlight-qt]: failed to find dependency service.system.docker

    Install docker manually:

    Display Spoiler

    2021-06-05 02:42:50.178 T:1139 DEBUG <general>: CAddonInstaller: installing 'service.system.docker' version '9.80.11.133' from repository 'repository.libreelec.tv'

    2021-06-05 02:42:50.206 T:1478 DEBUG <general>: CAddonDatabase: SELECT repo.id FROM repo .. took 2 ms

    2021-06-05 02:42:50.230 T:1478 DEBUG <general>: CAddonDatabase: query SELECT addons.*, repo.addonID AS repoID FROM addons JOIN addonlinkrepo ON addons.id=addonlinkrepo.idAddon JOIN repo ON repo.id=addonlinkrepo.idRepo WHERE addonlinkrepo.idRepo IN (1,2,3,4) ORDER BY repo.addonI

    D, addons.addonID returned 877 rows in 24 ms

    2021-06-05 02:42:50.405 T:1478 DEBUG <general>: CAddonDatabase::GetAddons took 201 ms

    2021-06-05 02:42:50.422 T:1478 DEBUG <general>: ADDONS: repo: repository.castagnait - 3 addon(s) loaded

    2021-06-05 02:42:50.422 T:1478 DEBUG <general>: ADDONS: repo: repository.kodi.game - 1 addon(s) loaded

    2021-06-05 02:42:50.422 T:1478 DEBUG <general>: ADDONS: repo: repository.libreelec.tv - 234 addon(s) loaded

    2021-06-05 02:42:50.422 T:1478 DEBUG <general>: ADDONS: repo: repository.xbmc.org - 639 addon(s) loaded

    2021-06-05 02:42:50.431 T:1478 DEBUG <general>: Unpacking zip://special%3a%2f%2fhome%2faddons%2fpackages%http://2fservice.system.docker-9.80.11.133.zip/service.system.docker/ to /storage/.kodi/addons/temp/ab8ac187-6767-48f3-8699-ad8bd5ac5ccd

    2021-06-05 02:42:50.504 T:1139 DEBUG <general>: ------ Window Deinit (DialogAddonInfo.xml) ------

    2021-06-05 02:42:57.741 T:1478 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: audioencoder.kodi.builtin.aac

    2021-06-05 02:42:57.741 T:1478 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: audioencoder.kodi.builtin.wma

    2021-06-05 02:42:57.764 T:1478 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: peripheral.joystick

    2021-06-05 02:42:57.772 T:1478 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: screensaver.xbmc.builtin.black

    2021-06-05 02:42:57.774 T:1478 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: screensaver.xbmc.builtin.dim

    2021-06-05 02:42:57.787 T:1478 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: game.libretro.vbam

    2021-06-05 02:42:57.789 T:1478 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: visualization.waveform

    2021-06-05 02:42:57.792 T:1478 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: visualization.starburst

    2021-06-05 02:42:57.793 T:1478 DEBUG <general>: CAddonMgr::FindAddons: Addon 'metadata.common.themoviedb.org' already present with version 3.2.13 at '/usr/share/kodi/addons/metadata.common.themoviedb.org/' replaced with version 3.2.14 at '/storage/.kodi/addons/metadata.common.th

    emoviedb.org/'

    2021-06-05 02:42:57.795 T:1478 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: visualization.fishbmc

    2021-06-05 02:42:57.800 T:1478 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: vfs.libarchive

    2021-06-05 02:42:57.801 T:1478 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: visualization.matrix

    2021-06-05 02:42:57.802 T:1478 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: game.libretro.pcsx-rearmed

    2021-06-05 02:42:57.803 T:1478 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: game.libretro.bnes

    2021-06-05 02:42:57.806 T:1478 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: visualization.spectrum

    2021-06-05 02:42:57.808 T:1478 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: vfs.rar

    2021-06-05 02:42:57.811 T:1478 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: game.libretro.yabause

    2021-06-05 02:42:57.811 T:1478 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: game.libretro.snes9x

    2021-06-05 02:42:57.814 T:1478 DEBUG <general>: CAddonMgr::FindAddons: Addon 'metadata.tvshows.themoviedb.org' already present with version 3.5.12 at '/usr/share/kodi/addons/metadata.tvshows.themoviedb.org/' replaced with version 3.5.13 at '/storage/.kodi/addons/metadata.tvshows

    .themoviedb.org/'

    2021-06-05 02:42:57.814 T:1478 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: game.libretro.genplus

    2021-06-05 02:42:57.816 T:1478 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: game.libretro

    2021-06-05 02:42:57.817 T:1478 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: inputstream.adaptive

    2021-06-05 02:42:57.819 T:1478 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: vfs.sftp

    2021-06-05 02:42:57.825 T:1478 DEBUG <general>: CAddonMgr::FindAddons: Addon 'metadata.tvshows.themoviedb.org.python' already present with version 1.3.14 at '/usr/share/kodi/addons/metadata.tvshows.themoviedb.org.python/' replaced with version 1.4.5 at '/storage/.kodi/addons/met

    adata.tvshows.themoviedb.org.python/'

    2021-06-05 02:42:57.827 T:1478 DEBUG <general>: CAddonMgr::FindAddons: Addon 'metadata.themoviedb.org.python' already present with version 1.3.1+matrix.1 at '/usr/share/kodi/addons/metadata.themoviedb.org.python/' replaced with version 1.3.3+matrix.1 at '/storage/.kodi/addons/me

    tadata.themoviedb.org.python/'

    2021-06-05 02:42:57.827 T:1478 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: visualization.shadertoy

    2021-06-05 02:42:57.830 T:1478 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: visualization.goom

    2021-06-05 02:42:57.831 T:1478 INFO <general>: CAddonMgr::FindAddon: service.system.docker v9.80.11.133 installed

    Install plugin from zip after manually installing Docker it is found:

    Display Spoiler

    2021-06-05 02:45:26.229 T:1139 DEBUG <general>: CAddonInstaller: installing from zip '/storage/plugin.program.moonlight-qt.zip'

    2021-06-05 02:45:26.231 T:1659 DEBUG <general>: Thread JobWorker start, auto delete: true

    2021-06-05 02:45:26.237 T:1659 DEBUG <general>: CAddonDatabase: SELECT repo.id FROM repo .. took 2 ms

    2021-06-05 02:45:26.260 T:1659 DEBUG <general>: CAddonDatabase: query SELECT addons.*, repo.addonID AS repoID FROM addons JOIN addonlinkrepo ON addons.id=addonlinkrepo.idAddon JOIN repo ON repo.id=addonlinkrepo.idRepo WHERE addonlinkrepo.idRepo IN (1,2,3,4) ORDER BY repo.addonI

    D, addons.addonID returned 877 rows in 23 ms

    2021-06-05 02:45:26.425 T:1659 DEBUG <general>: CAddonDatabase::GetAddons took 191 ms

    2021-06-05 02:45:26.442 T:1659 DEBUG <general>: ADDONS: repo: repository.castagnait - 3 addon(s) loaded

    2021-06-05 02:45:26.442 T:1659 DEBUG <general>: ADDONS: repo: repository.kodi.game - 1 addon(s) loaded

    2021-06-05 02:45:26.442 T:1659 DEBUG <general>: ADDONS: repo: repository.libreelec.tv - 234 addon(s) loaded

    2021-06-05 02:45:26.442 T:1659 DEBUG <general>: ADDONS: repo: repository.xbmc.org - 639 addon(s) loaded

    2021-06-05 02:45:26.452 T:1659 DEBUG <general>: Unpacking zip://%2fstorage%http://2fplugin.program.moonlight-qt.zip/plugin.program.moonlight-qt/ to /storage/.kodi/addons/temp/18fe9efd-4825-41ff-87a3-ebfa10cfd9ac

    2021-06-05 02:45:26.532 T:1659 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: audioencoder.kodi.builtin.aac

    2021-06-05 02:45:26.532 T:1659 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: audioencoder.kodi.builtin.wma

    2021-06-05 02:45:26.554 T:1659 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: peripheral.joystick

    2021-06-05 02:45:26.561 T:1659 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: screensaver.xbmc.builtin.black

    2021-06-05 02:45:26.563 T:1659 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: screensaver.xbmc.builtin.dim

    2021-06-05 02:45:26.576 T:1659 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: game.libretro.vbam

    2021-06-05 02:45:26.579 T:1659 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: visualization.waveform

    2021-06-05 02:45:26.582 T:1659 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: visualization.starburst

    2021-06-05 02:45:26.584 T:1659 DEBUG <general>: CAddonMgr::FindAddons: Addon 'metadata.common.themoviedb.org' already present with version 3.2.13 at '/usr/share/kodi/addons/metadata.common.themoviedb.org/' replaced with version 3.2.14 at '/storage/.kodi/addons/metadata.common.th

    emoviedb.org/'

    2021-06-05 02:45:26.585 T:1659 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: visualization.fishbmc

    2021-06-05 02:45:26.590 T:1659 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: vfs.libarchive

    2021-06-05 02:45:26.590 T:1659 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: visualization.matrix

    2021-06-05 02:45:26.591 T:1659 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: game.libretro.pcsx-rearmed

    2021-06-05 02:45:26.593 T:1659 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: game.libretro.bnes

    2021-06-05 02:45:26.595 T:1659 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: visualization.spectrum

    2021-06-05 02:45:26.597 T:1659 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: vfs.rar

    2021-06-05 02:45:26.600 T:1659 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: game.libretro.yabause

    2021-06-05 02:45:26.601 T:1659 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: game.libretro.snes9x

    2021-06-05 02:45:26.603 T:1659 DEBUG <general>: CAddonMgr::FindAddons: Addon 'metadata.tvshows.themoviedb.org' already present with version 3.5.12 at '/usr/share/kodi/addons/metadata.tvshows.themoviedb.org/' replaced with version 3.5.13 at '/storage/.kodi/addons/metadata.tvshows

    .themoviedb.org/'

    2021-06-05 02:45:26.604 T:1659 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: game.libretro.genplus

    2021-06-05 02:45:26.606 T:1659 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: game.libretro

    2021-06-05 02:45:26.606 T:1659 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: inputstream.adaptive

    2021-06-05 02:45:26.608 T:1659 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: vfs.sftp

    2021-06-05 02:45:26.614 T:1659 DEBUG <general>: CAddonMgr::FindAddons: Addon 'metadata.tvshows.themoviedb.org.python' already present with version 1.3.14 at '/usr/share/kodi/addons/metadata.tvshows.themoviedb.org.python/' replaced with version 1.4.5 at '/storage/.kodi/addons/met

    adata.tvshows.themoviedb.org.python/'

    2021-06-05 02:45:26.617 T:1659 DEBUG <general>: CAddonMgr::FindAddons: Addon 'metadata.themoviedb.org.python' already present with version 1.3.1+matrix.1 at '/usr/share/kodi/addons/metadata.themoviedb.org.python/' replaced with version 1.3.3+matrix.1 at '/storage/.kodi/addons/me

    tadata.themoviedb.org.python/'

    2021-06-05 02:45:26.617 T:1659 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: visualization.shadertoy

    2021-06-05 02:45:26.620 T:1659 DEBUG <general>: CAddonInfoBuilder::ParseXMLTypes: Binary addon found: visualization.goom

    2021-06-05 02:45:26.621 T:1659 INFO <general>: CAddonMgr::FindAddon: plugin.program.moonlight-qt v0.0.5 installed

    2021-06-05 02:45:26.638 T:1660 DEBUG <general>: Thread JobWorker start, auto delete: true

    2021-06-05 02:45:26.638 T:1659 DEBUG <general>: CAddonMgr: plugin.program.moonlight-qt successfully loaded

    2021-06-05 02:45:26.639 T:1660 DEBUG <general>: ContextMenuManager: addon menus reloaded.

    2021-06-05 02:45:26.641 T:1659 DEBUG <general>: LocalizeStrings: loaded 15 strings from file /storage/.kodi/addons/plugin.program.moonlight-qt/resources/language/resource.language.nl_nl/strings.po

    2021-06-05 02:45:26.641 T:1659 DEBUG <general>: LocalizeStrings: loaded 0 strings from file /storage/.kodi/addons/plugin.program.moonlight-qt/resources/language/resource.language.en_gb/strings.po

    2021-06-05 02:45:26.642 T:1659 DEBUG <general>: ADDONS: zip installed addon [plugin.program.moonlight-qt] will not be version checked and unpinned

    Am I running into a bug? Or is this by design? /shrug

    I tried shortening the version number to x.y.z but it didn't make a difference. Any ideas?

    For now I added the manual install of the Docker service to the readme but for the end user it would be better if this wasn't necessary.

  • I'm having the impression too there is something wrong with installing from zip in 19.1.

    If you can reproduce the install failure with an empty addon (not requiring LE platform or repo) open a kodi issue on github.