FS#73002 - [python] broken subinterpreters
Attached to Project:
Arch Linux
Opened by John (graysky) - Monday, 13 December 2021, 19:40 GMT
Last edited by Toolybird (Toolybird) - Tuesday, 30 May 2023, 08:06 GMT
Opened by John (graysky) - Monday, 13 December 2021, 19:40 GMT
Last edited by Toolybird (Toolybird) - Tuesday, 30 May 2023, 08:06 GMT
|
Details
Seems as though cpython is broken when working with
subinterpreters. The problematic change could be this[1]
affecting import.c. Reverting this change and rebuilding
python fixes the issues on my system with some scripts that
import sqlite. Attached a revert patch but I am NOT expert
with python by any means.
The bug is seen within several Kodi plugins including the YouTube[2] plugin and the IMDB Trailers plugin. Others in the bbs have reported similar issues affecting other python code[3]. Additional info: * package version(s) 3.10.1-1 1. https://github.com/python/cpython/commit/d0d29655ffc43d426ad68542d8de8304f7f1346a 2. https://github.com/anxdpanic/plugin.video.youtube/issues/255 3. https://bbs.archlinux.org/viewtopic.php?id=272121 |
This task depends upon
Closed by Toolybird (Toolybird)
Tuesday, 30 May 2023, 08:06 GMT
Reason for closing: Fixed
Additional comments about closing: python 3.10.4-2
Tuesday, 30 May 2023, 08:06 GMT
Reason for closing: Fixed
Additional comments about closing: python 3.10.4-2
FS#72979FS#73004FS#73004.(couldnt get the check()s working).
1. https://bbs.archlinux.org/viewtopic.php?pid=2012681#p2012681
[1] https://github.com/python/cpython/commit/72c260cf0c71eb01eb13100b751e9d5007d00b70
See the following issues:
https://github.com/python/cpython/issues/92036
https://github.com/xbmc/xbmc/issues/21243
This is the fix on the 3.10 branch:
https://github.com/python/cpython/commit/178a238f25ab8aff7689d7a09d66dc1583ecd6cb
According to the Python release schedule, this should be available in version 3.10.5 in early June, though it would be nice to have the fix in sooner for the Arch package.
Note to anybody building Python from source to apply the patch: apparently there's a bug in the python-setuptools package in Arch (which is rather out of date) that causes building Python to fail if it's installed. To work around the issue, set the following environment variable before building: SETUPTOOLS_USE_DISTUTILS=stdlib (see https://github.com/pypa/setuptools/issues/3007)
I can confirm that applying the commit you mentioned fixes the problem. I agree that it would be nice to have this applied to our 3.10.4 package.