rstudio / cloudml

R interface to Google Cloud Machine Learning Engine
https://tensorflow.rstudio.com/tools/cloudml/
65 stars 24 forks source link

Set the default version of runtime to 2.1 and Python to 3.7 #207

Closed irudnyts closed 4 years ago

irudnyts commented 4 years ago

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.