You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been using a docker image with a python environment managed by pyenv and I've been able to successfully point reticulate at the shim for the last year or so. I've recently gone to update the image which brought in the new version of reticulate which is now failing when attempting to select the shim via use_python().
> reticulate::use_python("/root/.pyenv/shims/python")
Error in prefix_python_lib_to_ld_library_path(python) :
object 'oldlibpath' not found
I am not sure what version of reticulate we were using previously but this is behavior is new as of the last month or so.
For debugging purposes I've put together a simplified Dockerfile with replicates the environment on my end.
Thanks for the excellent bug report. This is now fixed in the development version.
RUN Rscript -e "install.packages('remotes', repos='https://packagemanager.rstudio.com/all/__linux__/noble/latest')"
RUN Rscript -e 'remotes::install_github("rstudio/reticulate")'
I've been using a docker image with a python environment managed by pyenv and I've been able to successfully point reticulate at the shim for the last year or so. I've recently gone to update the image which brought in the new version of reticulate which is now failing when attempting to select the shim via
use_python()
.I am not sure what version of reticulate we were using previously but this is behavior is new as of the last month or so.
For debugging purposes I've put together a simplified
Dockerfile
with replicates the environment on my end.To build and run:
docker build . --tag test:latest docker run -it --rm test:latest
and once running:
Rscript -e "reticulate::use_python('/root/.pyenv/shims/python')"
The text was updated successfully, but these errors were encountered: