-
Notifications
You must be signed in to change notification settings - Fork 183
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
rocker/ml:latest fails to install tensorflow due to not finding its own venv #880
Comments
Just for completeness: I compared the environment variables, found two that sound like python/reticulate
|
So, while not a solution, the workaround is to
|
I'm sorry, but I couldn't figure out what bug in this was caused by this repository. |
So, as I have a workaround, this is not urgent. But as installation worked on |
Isn't that simply the difference between the environment variable By the way, to be clear, I am tired of managing images with Python set up. |
Container image name
rocker/ml:latest
Container image digest
rocker/ml@sha256:327295f35a097a7ee2fec46804e0a285057c9918df1e4e12470e915e29e7de40
What operating system are you seeing the problem on?
Linux
System information
Docker version 24.0.7-ce, build 311b9ff0aa93
on
openSUSE VERSION = 15.5
Bug description
Hi, I am installing keras/tensorflow in
rocker/ml
. Installation runs fine,From python I can activate the venv
/root/.virtualenvs/r-tensorflow
and python can import tensorflow, and even shows some GPUs.Issue happens when using
library(tensorflow)
, becauseModuleNotFoundError: No module named 'tensorflow'
.On an older rocker/rstudio based container with R-4.4.1 I get
while the non-working
rocker/ml
also installed into/root/.virtualenvs/r-tensorflow
but a different python venv
/opt/venv/
is used when I then want to load the library:=> How to inform reticulate/tensorflow to use the correct venv ?
I upgraded
reticulate
from 1.37 -> 1.40 which is the one in the working installation, same error.Both images are based on 22.04, both use python 3.10.12.
Yours,
Steffen
How to reproduce this bug?
docker run --rm -it rocker/ml R -e 'remotes::install_github("rstudio/tensorflow", upgrade="never"); library(tensorflow); install.packages("keras"); library(keras); install_keras(); model.sla <- keras_model_sequential(input_shape = c(NULL, 12906, 1))'
Full build log:
Broken
rocker/ml
installation:Working (older)
rocker/rstudio
-based installation:The text was updated successfully, but these errors were encountered: