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

Python: update to 3.13.1 #9374

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Python: update to 3.13.1 #9374

wants to merge 5 commits into from

Conversation

heitbaum
Copy link
Contributor

@heitbaum heitbaum commented Oct 8, 2024

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

  • unsure if 0012-gh-115382-Fix-cross-compiles-when-host-and-target-us.patch is still required as python/cpython@53eb9a6 seems to indicate that this is fixed in 3.13.0
  • the 2 py312-cpython118618-y patches seem to be included (at least partially in 3.13.0)

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


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
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
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().

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.

1 participant