Hi Mark,
i would recommend to de-install 3.8 and install 3.4.4 with installer found here https://www.python.org/downloads/release/python-344/
Try your code and if it works, try updating to 3.4.4 to last version 3.4.10
An alternative way is to install Anaconda
and then you can create virtual environments with different versions of python.
Detailed tutorial here: https://docs.conda.io/projects/conda/en/...ments.html
so windows sys module has no sys.stdout.buffer attribute, unix version has.
i would recommend to de-install 3.8 and install 3.4.4 with installer found here https://www.python.org/downloads/release/python-344/
Try your code and if it works, try updating to 3.4.4 to last version 3.4.10
An alternative way is to install Anaconda
and then you can create virtual environments with different versions of python.
Detailed tutorial here: https://docs.conda.io/projects/conda/en/...ments.html
(Nov-18-2019, 03:12 PM)baquerik Wrote: Strangely enough, that part of the code works good for me in Python 3.7.3 (Linux):Using google search i also think this is a Unix vs Windows problem
Python 3.7.3 (default, May 11 2019, 00:38:04) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> stdout = sys.stdout.buffer >>> type(stdout) <class '_io.BufferedWriter'>
so windows sys module has no sys.stdout.buffer attribute, unix version has.