Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module "imp" deprecated since Python 3.12 #12

Closed
comanche001 opened this issue Jun 5, 2024 · 3 comments
Closed

Module "imp" deprecated since Python 3.12 #12

comanche001 opened this issue Jun 5, 2024 · 3 comments

Comments

@comanche001
Copy link

Since Python 3.12 the module "imp" is deprecated.

Now I'm getting this error:

2024-06-05 09:03:19.624 T:1543846 error : EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the f
ollowing error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'ModuleNotFoundError'>
Error Contents: No module named 'imp'
Traceback (most recent call last):
File "/home/../.kodi/addons/script.grab.fanart/launcher.py", line 1, in <module

                                                   from resources.lib.service import GrabFanartService
                                                 File "/home/../.kodi/addons/script.grab.fanart/resources/lib/service.py", line 

5, in
from future.moves._thread import start_new_thread
File "/home/../.kodi/addons/script.module.future/lib/future/moves/init.py", line 5, in
from future.standard_library import import_top_level_modules
File "/home/../.kodi/addons/script.module.future/lib/future/standard_library/init.py", line 65, in
import imp
ModuleNotFoundError: No module named 'imp'
-->End of Python script error report<--

@robweber
Copy link
Owner

robweber commented Jun 5, 2024

I think this is essentially the same error as flagged in a different addon here: robweber/xbmcbackup#239

My understanding of this issue is that an upstream fix for the future library is needed to fix this. There is a PR open already just waiting for it to be merged in. When it's available it should update in Kodi automatically and fix this for any downstream addons using it.

@HomerJau
Copy link

HomerJau commented Jun 9, 2024

This memory leak crashes Kodi 21 in LibreElec 12 on my three Intel NUCs when script.grab.fanart is installed.

I also found a while back the xmbc backup addon does not work in Kodi 21 LE 12.

I'd really like to use both these addons like I've done in previous Kodi releases. Any way to get the Kodi PR moving?

@robweber
Copy link
Owner

Closing as this was finally merged in (months ago - wasn't paying attention!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants