Skip to content

Python: update to 3.13.5#9374

Merged
chewitt merged 1 commit intoLibreELEC:masterfrom
heitbaum:python
Jun 20, 2025
Merged

Python: update to 3.13.5#9374
chewitt merged 1 commit intoLibreELEC:masterfrom
heitbaum:python

Conversation

@heitbaum
Copy link
Copy Markdown
Contributor

@heitbaum heitbaum commented Oct 8, 2024

Dependent on kodi change:

Python3 compiles with the rebased patches and the drop of the lib2to3

during Kodi:host build swig failed to build, all other packages seem to compile. Patch now added.

make image was successful, but Kodi crashes with https://paste.libreelec.tv/engaged-badger.log (I have not investigated this yet)

error during run - NOW Fixed


2024-12-14 15:57:03.265 T:3716    error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'RuntimeError'>
                                                   Error Contents: There is no current event loop in thread 'Dummy-1'.
                                                   Traceback (most recent call last):
                                                     File "/usr/share/kodi/addons/service.libreelec.settings/service.py", line 13, in <module>
                                                       import dbus_utils
                                                     File "/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-13.0-devel/install_pkg/LibreELEC-settings-6481489178160ad8db108c225fe150afb06379dc/usr/share/kodi/addons/service.libreelec.settings/resources/lib/dbus_utils.py", line 131, in <module>
                                                     File "/usr/lib/python3.13/asyncio/events.py", line 716, in get_event_loop
                                                   RuntimeError: There is no current event loop in thread 'Dummy-1'.
                                                   -->End of Python script error report<--
                                                   
2024-12-14 15:57:03.265 T:3716    debug <general>: onExecutionDone(8, /usr/share/kodi/addons/service.libreelec.settings/service.py)
2024-12-14 15:57:03.265 T:3716    debug <general>: .
2024-12-14 15:57:03.269 T:3578    debug <general>: ------ Window Init (DialogNotification.xml) ------
2024-12-14 15:57:03.287 T:3716    debug <general>: Python interpreter stopped

@heitbaum
Copy link
Copy Markdown
Contributor Author

@heitbaum heitbaum marked this pull request as ready for review November 25, 2024 19:03
@heitbaum heitbaum changed the title Python: update to 3.13.0 Python: update to 3.13.1 Dec 4, 2024
@heitbaum
Copy link
Copy Markdown
Contributor Author

heitbaum commented Dec 9, 2024

hyperion fails to compile with Python 3.13 due to PyEval_ReleaseLock() being removed. But based on the documentation, it looks like PyEval_ReleaseLock() was never actually doing anything as there was no PyEval_AcquireLock().

@heitbaum
Copy link
Copy Markdown
Contributor Author

heitbaum commented Jan 26, 2025

New error I just noticed in the logs.


[   15.758119] LanguageInvoker[2917]: segfault at 1d1e ip 00007f441cc21d54 sp 00007f43767fb7e0 error 4 in libpython3.13.so.1.0[25cd
54,7f441c9c5000+458000] likely on CPU 4 (core 8, socket 0)
[   15.758129] Code: c0 74 1b e8 2e ac e2 ff 48 3b 44 24 08 0f 95 c0 48 83 c4 18 0f b6 c0 c3 66 0f 1f 44 00 00 31 c0 48 83 c4 18 c3
 90 48 8b 57 10 <48> 8b 82 d8 1c 00 00 48 8b 92 e0 1c 00 00 eb ba 66 66 2e 0f 1f 84

error is no longer - 7 Mar 2025

@heitbaum heitbaum changed the title Python: update to 3.13.1 Python: update to 3.13.2 Feb 5, 2025
@heitbaum heitbaum force-pushed the python branch 2 times, most recently from 721cd37 to b0332e8 Compare March 7, 2025 11:35
@heitbaum heitbaum changed the title Python: update to 3.13.2 Python: update to 3.13.3 Apr 9, 2025
@heitbaum heitbaum changed the title Python: update to 3.13.3 Python: update to 3.13.4 Jun 5, 2025
@heitbaum heitbaum changed the title Python: update to 3.13.4 Python: update to 3.13.5 Jun 12, 2025
@heitbaum
Copy link
Copy Markdown
Contributor Author

Now with the upstream Kodi running 3.13. Please pull alongside #10163

@chewitt chewitt merged commit 2572200 into LibreELEC:master Jun 20, 2025
@heitbaum heitbaum deleted the python branch June 20, 2025 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants