Closed craftyguy closed 5 months ago
I'll admit I'm not super familiar with how the local OS version of Python interacts with what Kodi is expecting. I generally use Windows (where it's bundled) or a Kodi specialized build like LibreElec. Looking at Kodi's build files it seems that it's expecting Python 3.11 for Omega.
Hey thanks for taking a look at this. Yeah I'm not entirely sure either... it seems(?) that kodi is using some bundled future
module, the host OS has future-1.0.0
installed but in the output above the backup addon is clearly using something older (since it's trying to pull in imp
). I just noticed that if go into kodi and list addon dependencies, it shows this, which is stuck at 0.18.23
: https://kodi.tv/addons/omega/script.module.future/
I have no clue who packages(?) that for kodi, it's not in the list of official addons. If you changed your import to bump the version, would kodi fetch a newer version? (I also don't know how dependency resolution stuff in kodi works...)
Looking at Kodi's build files it seems that it's expecting Python 3.11 for Omega.
This also seems kinda strange since Omega advertised python 3.12 support 🙃
FYI I went ahead and reported this to Kodi. Even if the actual problem doesn't lie in Kodi, maybe they can clarify how the old future module is being pulled in so this can be reported to the appropriate place.
Should be fixed by https://github.com/xbmc/repo-scripts/pull/2615, IIUC. Does this addon need an update once that patch is merged to use the newer future
version too?
Took a look at the PRs involved. The way Kodi works is that it will pull in the most recent version of an addon, so if the futures addon is required (looks like TinyURL uses it) then when it's updated in the main repo it should get downloaded locally to your system. We can leave this open if you want to confirm once it's merged in the addon repo.
@robweber this addon is now working as expected since the patch in repo-scripts landed 🎉
Thank you so much for the support, and the great addon :)
Describe the problem
This addon fails to run on with Python 3.12 because
future
0.18.x usesimp
, which was removed in Python 3.12.future
1.0 fixes this, see: https://github.com/PythonCharmers/python-future/commit/a6222d2bd54e8ba10e5e22ab42f4d747b51d92f5Platform and Kodi version
Alpine Linux 3.20, Kodi 21.0
Link to Debug Log