-
Notifications
You must be signed in to change notification settings - Fork 13
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
deep-learning-tools2: error when using python with R-notebook and reticulate #18
Comments
It looks that it is trying to use conda, even if it is not installed, for some reason. Here is what I tried from the R console: > library('reticulate')
> reticulate::py_discover_config() Output:
I then tried to install miniconda using: |
Now it doesn't find tensorflow anymore because it looks for it in the r-reticulate environment.
Should I try to install tensorflow and all other dependencies within this environment? This wasn't an issue with the 'old' tensorflow1 deep-learning-tool. |
You can avoid to use miniconda and just install numpy, so you avoid having a separate environment. |
I installed numpy, but that didn't help. I got the same error. |
Unable to replicate. Feel free to reach me on the phone or just have a meeting. |
Fixed by deleting |
I installed the deep-learning-tool with this docker-image: quay.io/nird-toolkit/deep-learning-tools2:20220303-cbd3b76. But when I open a R-notebook, I can't run code that uses python (using the reticulate package).
When I run
reticulate::py_discover_config()
to check which python version is used I get the following error:Warning message in system2(conda, c("run", in_env, run_args, shQuote(cmd), args), : “running command ''/opt/conda/bin/conda' run --prefix '/opt/conda' --no-capture-output 'python' -c "import os; print(os.environ['PATH'])"' had status 1” Error in Sys.setenv(PATH = new_path): wrong length for argument Traceback:
1. py_discover_config() 2. python_config(python_version, required_module, python_versions) 3. python_munge_path(python) 4. Sys.setenv(PATH = new_path)
And I get a similar error when I run other code that uses python. For example when trying to train a deep learning model using the R-package keras.
The text was updated successfully, but these errors were encountered: