Python 3.x installed via the standard installers from python.org seems to run well under Wine. However, I am finding that the Python interpreter crashes when I try to redirect STDOUT to a file. Starting without a Wine Prefix in Ubuntu 20.04 I install Python 3.8.3 https://www.python.org/ftp/python/3.8.3 ... -amd64.exe as follows:
Code: Select all
$ wine python-3.8.3-amd64.exe /quiet Include_doc=0 Include_dev=0 Include_test=0 PrependPath=1
Code: Select all
$ wine python -c 'print("hello world")'
Code: Select all
$ wine python -c 'print("hello world")' > out.txt
Fatal Python error: init_sys_streams: can't initialize sys standard streams
Python runtime state: core initialized
OSError: [WinError 6] Invalid handle
Current thread 0x0000002b (most recent call first):
<no Python frame>
Code: Select all
wine-5.0 (Ubuntu 5.0-3ubuntu1)
Doing the above with Python 3.4.4 https://www.python.org/ftp/python/3.4.4 ... .amd64.msi installed as follows:
Code: Select all
$ wine msiexec /i python-3.4.4.amd64.msi
Please let me now if I've neglected to include important information or should rather be following this up with the Python developers.
Thank you and kind regards,
Daniel van Niekerk