FS#59971 - [python] python 3.7 broke fontforge scripts
Attached to Project:
Arch Linux
Opened by Jon Gjengset (Jonhoo) - Friday, 07 September 2018, 20:17 GMT
Last edited by Felix Yan (felixonmars) - Sunday, 31 July 2022, 09:24 GMT
Opened by Jon Gjengset (Jonhoo) - Friday, 07 September 2018, 20:17 GMT
Last edited by Felix Yan (felixonmars) - Sunday, 31 July 2022, 09:24 GMT
|
Details
Description:
python 3.7 broke fontforge python scripts due an undocumented internal API change (specifically https://bugs.python.org/issue33932). This was fixed in https://github.com/python/cpython/pull/8043, which has been merged upstream, but not yet released. Fedora bug for the same issue is here https://bugzilla.redhat.com/show_bug.cgi?id=1595421, and was resolved by patching python3 until the merged fix is released through upstream: https://src.fedoraproject.org/rpms/python3/pull-request/46. We should probably do the same. Steps to reproduce: $ fontforge -lang=py -script <(echo '') Copyright (c) 2000-2014 by George Williams. See AUTHORS for Contributors. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> with many parts BSD <http://fontforge.org/license.html>. Please read LICENSE. Based on sources from 18:54 UTC 14-Jul-2018-ML-D. Based on source from git with hash: Fatal Python error: _Py_InitializeCore: main interpreter already initialized |
This task depends upon
Comment by
Eli Schwartz (eschwartz) - Friday,
07 September 2018, 20:46 GMT
Comment by Jon Gjengset (Jonhoo) -
Friday, 21 September 2018, 14:59 GMT
Comment by
Johannes Sasongko (sjohannes) -
Thursday, 29 October 2020, 10:56 GMT
Comment by
Felix Yan (felixonmars) - Sunday,
31 July 2022, 09:24 GMT
- Field changed: Status (Unconfirmed → Assigned)
- Task assigned to Felix Yan (felixonmars)
It's also been backported to the stable 3.7 branch via
https://github.com/python/cpython/pull/8352
@felixonmars: any progress on this? It's a pretty annoying thing
to work around :)
I assume this is not an issue anymore on 3.8. The reproducer seems
to run without errors now.
Sorry for the late response. This should no longer be an issue.