[Bug 51813] New: python fatal error redirecting stdout to file

WineHQ Bugzilla wine-bugs at winehq.org
Tue Sep 28 02:43:31 CDT 2021


https://bugs.winehq.org/show_bug.cgi?id=51813

            Bug ID: 51813
           Summary: python fatal error redirecting stdout to file
           Product: Wine
           Version: 6.16
          Hardware: x86-64
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: -unknown
          Assignee: wine-bugs at winehq.org
          Reporter: xantares09 at hotmail.com
      Distribution: ArchLinux

python exits with a fatal error when the output is redirected to a file

$ wget https://www.python.org/ftp/python/3.9.5/python-3.9.5-embed-win32.zip
$ unzip python-3.9.5-embed-win32.zip
$ wine python -c 'print("hello world")' > out.txt
wine: created the configuration directory '/home/devel/.wine'
...
wine: configuration in L"/home/devel/.wine" has been updated.
Fatal Python error: init_sys_streams: can't initialize sys standard streams
Python runtime state: core initialized
OSError: [WinError 6] Invalid handle

Current thread 0x000000d4 (most recent call first):
<no Python frame>



whereas it succeeds on stdout or /dev/null:
$ wine python -c 'print("hello world")'
hello world


I also tried python 3.8.6 and wine 6.15/6.14 without luck

see also topic https://forum.winehq.org/viewtopic.php?f=8&t=33992

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list