The default version 1.9 of the runtime ended its availability on March 16, 2020. Therefore, the default version of the runtime is set to 2.1, which requires to be used in conjunction with Python 3.7.
In line 40 of deploy.py, the function sys.stdout.write() throws an error (write() argument must be str, not bytes), when it is executed under Python 3.7 (instead of Python 2.7). The line should be decoded into str using utf-8 encoding.
The default version 1.9 of the runtime ended its availability on March 16, 2020. Therefore, the default version of the runtime is set to 2.1, which requires to be used in conjunction with Python 3.7.
In line 40 of
deploy.py
, the functionsys.stdout.write()
throws an error (write()
argument must bestr
, notbytes
), when it is executed under Python 3.7 (instead of Python 2.7). Theline
should be decoded intostr
usingutf-8
encoding.