Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation failed #2

Open
shiyu-wangbyte opened this issue Oct 10, 2024 · 2 comments
Open

Installation failed #2

shiyu-wangbyte opened this issue Oct 10, 2024 · 2 comments

Comments

@shiyu-wangbyte
Copy link

Sorry to bother developers.

As your document guide, I am trying to install this software on my machine (OpenSuse 15.4).

First, I create an anaconda virtual environment with python (verion 3.6.13) and install tensorflow (version 2.2.0) keras (version 2.3.0) with pip install command.

Next, I install R (version 3.5.1) on my machine with source code and trying to install reticulate for R. However, an error occur: package ‘withr’ is not available (for R version 3.5.1). Therefore, I just can update the version to 4.2.0 and install reticulate successfully.

When I trying to run : R/4.2.0/bin/Rscript Off-targetP_ML.R external_test.csv, an new error occur: Error in library(tensorflow) : there is no package called ‘tensorflow’. So, my question is : although i activated the conda environment r-tensorflow, the tensorflow and keras for python still cannot be used for R. Therefore, I install tensorflow and keras using "install.packages("tensorflow")" and "install.packages("keras")". As a result, tensorflow (version 2.16.0) and keras (version 2.15.0) were installed.

When I trying to run : R/4.2.0/bin/Rscript Off-targetP_ML.R external_test.csv, an new error occur: ValueError: Unknown regularizer: L2. That maybe because the version of tensorflow is too high. Therefore, I download the 2.2.0.tar.gz file from tensorflow for R github, and install tensorflow for R from local file. and download the 2.3.0.0.tar.gz file from keras for R github, and install keras for R from local file. However, the above error had not been solved, still reminding me that ValueError: Unknown regularizer: L2.

Do you have any suggestion for me? Thank you!

@DohaNaga
Copy link
Owner

DohaNaga commented Oct 10, 2024 via email

@shiyu-wangbyte
Copy link
Author

Thanks for you reply!

The error information follows:
"
The loop is magicalized with print().
| | 0%Error in py_call_impl(callable, call_args$unnamed, call_args$named) :
ValueError: Unknown regularizer: L2
Run reticulate::py_last_error() for details.
Calls: for ... load_model -> do.call -> -> py_call_impl
Execution halted
"
You suggest me to check the version of tensorflow and keras of R or Python?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants