-
Notifications
You must be signed in to change notification settings - Fork 364
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
Docker image #173
Comments
good suggestion! we'll need to discuss this internally and let you know |
From my experience r-minimal and Alpine are hardly compatible with R packages that rely on Linux libraries. Alpine contains the minimum of required libraries that are enough just for base R. I would start from a full Linux/Ubuntu image rather than from the optimized one. |
I've been working on an Ubuntu Docker image but the image fails to find nevergrad. I've attempted following the virtualenv and conda installation approaches as defined in the Robyn documentation. Both approaches return the error below when running the demo.R application. Anyone else experiencing this? `
|
We've seen multiple cases where nevergrad won't install because of the Python path is not specified even after use_python(). We've added this to the demo in row 40 to force the python path optionally: Sys.setenv(RETICULATE_PYTHON = "~/Library/r-miniconda/envs/r-reticulate/bin/python3.9"). Could you please try? |
I've tried your suggestion as well as use_python with no luck. Nevergrad appears to be installed as shown below. It seems the virtual environment is not activated.
|
Hi! Let's try to debug this, step by step, and see where the error occurs. I think the problem might come from setting the environment and not resetting the R session. Can you please share your
You can check if it's enabled correctly with: |
Thank you for your feedback. I am forcing the python version here
|
I resolve the issue by installing the following libraries |
Hi, following your steps to debug I was still not able to enable nevergrad: |
I can share my Dockerfile if it helps. I'll just need to clean it up a bit. |
Hey that'd definitely speed things up. Thanks! |
This can be cleaned up a bit but I was able to get this working. It takes a while to build the base image so I split into two parts. Dockerfile (my-robyn-image)
install_packages.R
app/Dockerfile
app/app.R
|
Hey @romanumero I was just starting out on this exact project. Did you save it after it worked, so the nevergrad installation is working? Are you able to share the docker image? Also - can't tell if you're using base R or Rstudio? |
@romanumero thank you for your dockerfiles and guide! libxml-2.0 was not found:
Because of xml2 rvest can't be installed:
Because of rvest lares can't be installed:
Without cmake nloptr can't be installed:
Finally, Robyn can't be installed:
I managed to fix all that problems by adding cmake libxml2-dev to apt install in first Dockerfile, so now it looks like this:
Hope, it will help someone, who face same problems |
https://hub.docker.com/layers/leosentana/robyn/latest/images/sha256:fd701fe582d1314d4baae99b6daa664f210b21e310006d003c8c42710ab70382 created a docker updated image for this issue |
@Leonelsentana , thank you! Could you please share the dockerfile as well? A short instruction of how to run the container would be also helpful. |
Sharing the dockerfile and other helping docks |
Contributing to FB NextGen MMM R script
Issue
Would it be possible to provide public docker images for different OS that has all the Robyn dependencies installed like rstan and reticulate? I've been struggling to install Robyn on a r-minimal image that uses Alpine Linux.
The text was updated successfully, but these errors were encountered: