Skip to content

Commit

Permalink
🐞 Fixing some possible bug (issue #2)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrodriguez1989 committed Apr 24, 2019
1 parent adfe29f commit d1d6474
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion NAMESPACE
Expand Up @@ -25,6 +25,6 @@ importFrom(keras,load_model_hdf5)
importFrom(methods,new)
importFrom(methods,setClass)
importFrom(reticulate,import)
importFrom(reticulate,py_config)
importFrom(reticulate,py_discover_config)
importFrom(stats,predict)
importFrom(utils,download.file)
4 changes: 2 additions & 2 deletions R/install.R
Expand Up @@ -93,7 +93,7 @@
#' }
#'
#' @importFrom keras install_keras
#' @importFrom reticulate py_config
#' @importFrom reticulate py_discover_config
#'
#' @export
install_autokeras <- function(method=c("auto", "virtualenv", "conda"),
Expand All @@ -103,7 +103,7 @@ install_autokeras <- function(method=c("auto", "virtualenv", "conda"),
tensorflow="default",
extra_packages=NULL) {

py_version <- package_version(reticulate::py_config()$version);
py_version <- package_version(reticulate::py_discover_config()$version);
if (length(py_version) != 1 || py_version != 3.6)
stop("Currently, Auto-Keras is only compatible with: Python 3.6.",
"Please install this Python version and re-run install_autokeras()",
Expand Down

0 comments on commit d1d6474

Please sign in to comment.