-
Notifications
You must be signed in to change notification settings - Fork 334
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
uv_get_or_create_env() is not robust against empty resolve_python_version() #1751
Comments
Thank you very much for the excellent bug report. I am able to reproduce the error. The issue is that A workaround until this is fixed is to point reticulate at a specific python installation using the |
Thanks again for the great bug report, being able to reproduce with docker was very helpful. This should be fixed with #1752 On platforms where Users can now also force This now succeeds:
Note that a very narrow set of Python version constraints are satisfiable if only the system Python is usable. E.g., if user or package code calls We'll be submitting a new reticulate to CRAN later |
The title conveys a very specific issue but there may be a larger problem behind.
With the newly released reticulate 1.41.0,
py_config()
now gives a confusing error:The previous reticulate 1.40.0 shows the following
py_config()
:Debugging
reticulate::py_available(initialize = TRUE)
shows that whenuv_get_or_create_env()
callsresolve_python_version(NULL, uv)
, whereuv = "~/.cache/R/reticulate/uv/bin/uv"
, it gets backNULL
, so the lateruv
system call contains an unset--python
argument.Indeed, on my Alpine Linux 3.21 system:
but
outputs nothing.
You can reproduce the problem using the rhub/r-minimal image via
docker run --rm -it rhub/r-minimal /bin/bash
, running:installr -d -t gfortran reticulate R -s -e 'reticulate::py_config()'
Is there a setting I could use to let reticulate again find the python installation?
The text was updated successfully, but these errors were encountered: