Arch Linux

Please read this before reporting a bug:

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!

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



python 3.7 broke fontforge python scripts due an undocumented internal API change (specifically This was fixed in, which has been merged upstream, but not yet released.

Fedora bug for the same issue is here, and was resolved by patching python3 until the merged fix is released through upstream: 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 <>
with many parts BSD <>. 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
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.