rstudio / cloudml

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

Any jobs that uses `{keras}` functions fail #221

Open irudnyts opened 3 years ago

irudnyts commented 3 years ago

Jobs of any simplest scripts fail with the following error.json:

{
  "message": "could not find a Python environment for /usr/local/bin/python3",
  "traceback": ["stop(sprintf(fmt, ...), call. = call.)", "stopf(\"could not find a Python environment for %s\", python)", "python_info(python)", "reticulate::py_install(packages = c(package, extra_packages), \n    envname = envname, method = method, conda = conda, python_version = conda_python_version, \n    pip = TRUE, ...)", "install_tensorflow()", "eval(ei, envir)", "eval(ei, envir)", "withVisible(eval(ei, envir))", "source(file = file, local = envir, echo = echo, encoding = encoding)", "withCallingHandlers({\n    source(file = file, local = envir, echo = echo, encoding = encoding)\n    write_run_property(\"completed\", TRUE)\n}, error = function(e) {\n    write_run_metadata(\"error\", list(message = e$message, traceback = capture_stacktrace(sys.calls())))\n    stop(e)\n})", "force(expr)", "tryCatch({\n    tfruns::training_run(file = deploy$entrypoint, context = deploy$context, \n        config = \"cloudml\", flags = deploy$overlay, encoding = \"UTF-8\", \n        echo = TRUE, view = FALSE, run_dir = run_dir)\n}, error = function(e) {\n    training_error <<- e\n})"]
}

The logs look like that:

"Error: Installation of TensorFlow not found."
"Python environments searched for 'tensorflow' package:"
" /usr/bin/python3.7"
" /usr/bin/python3.5"
" /usr/bin/python2.7"
"You can install TensorFlow using the install_tensorflow() function."
"Execution halted"

I have a feeling that this is related to the updated keras::install_keras() function.

irudnyts commented 3 years ago

I also have tried: