[issue32849] Fatal Python error: Py_Initialize: can't initialize sys standard streams

STINNER Victor report at bugs.python.org
Wed Apr 17 12:36:19 EDT 2019


STINNER Victor <vstinner at redhat.com> added the comment:

Thanks Rudolph Froger for the bug report: the issue is now fixed in 3.7 and master (future Python 3.8) branches. Sorry for the delay.

--

Alexey Izbyshev wrote PR 5773 to also use fstat() on Linux.

I chose to merge my PR 12852 which is more conservative: it keeps dup() on Linux. I'm not sure why exactly, but I recall that the author of the function, Antoine Pitrou, wanted to use dup() on Linux.

I'm not convinced by the O_PATH issue on Linux (described above), so I merged my conservative change instead.

Later, we can still move to fstat() on Linux as well if someone comes with a more concrete example against dup().

----------
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32849>
_______________________________________


More information about the Python-bugs-list mailing list