Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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 Eli Schwartz (eschwartz) - Friday, 07 September 2018, 20:46 GMT
Task Type Bug Report
Category Packages: Extra
Status Assigned
Assigned To Felix Yan (felixonmars)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

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
It's also been backported to the stable 3.7 branch via https://github.com/python/cpython/pull/8352
Comment by Jon Gjengset (Jonhoo) - Friday, 21 September 2018, 14:59 GMT
@felixonmars: any progress on this? It's a pretty annoying thing to work around :)
Comment by Johannes Sasongko (sjohannes) - Thursday, 29 October 2020, 10:56 GMT
I assume this is not an issue anymore on 3.8. The reproducer seems to run without errors now.

Loading...