-
Notifications
You must be signed in to change notification settings - Fork 332
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
GitHub Actions-installed miniconda on ubuntu defies assumptions, and a regex that should probably be fixed #1293
Comments
Things that didn't work:
For future travelers: I got this working in the meantime by switching to mambaforge, which seems to generate the expected content in the history file:
It would still be nice if reticulate made more consistent assumptions though -- if I use the provided hint functions, it shouldn't still try to locate conda through |
Thanks for the diagnosis! I agree; we should definitely be reading + respecting these. Presumedly, we could check Lines 148 to 166 in a1d7f7f
|
@kevinushey @t-kalinowski I've been running into this same issue with the
In my case, I noticed that reticulate wasn't recognizing that conda was installed when running the |
My lab has a project which uses GitHub Actions to build a blog from Rmarkdown files. Some of the source files include Python segments, which get built with reticulate. The last successful build was May 23, then we had a long quiet period before needing to build the blog again a couple of weeks ago. That build failed with:
I've assembled a reproducible example in a dedicated GitHub repo(and here's the workflow YAML as a static file in case that repo rots), but I have not been able to replicate this particular environment quirk in a system I can actually shell into, so unfortunately debugging is likely to be slow going.
I have managed to partially trace the problem to
reticulate:::python_info_condaenv_find
, which uses a more general regex to fetch lines from the history file than the one it uses to parse that line:reticulate/R/python-tools.R
Lines 176 to 182 in a1d7f7f
For some reason, the system resulting from running
conda-incubator/setup-miniconda@v2
onubuntu-latest
results in a history file where the firstcmd
line is amamba update
, not acreate
. Thesub
function atpython_info_condaenv_find:182
thus substitutes nothing and passes the history line tonormalizePath
wholesale, causing the above misbehavior.It also looks like there is no
create
line in my conda history file(screenshot below), so fixing the regex will only go so far. I've tried a bunch of other ways to tell reticulate how to configure itself for this environment but haven't found one that works yet. Any tips?The text was updated successfully, but these errors were encountered: