-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Amend or clarify interaction between build.tools.python
and conda.environment
#8595
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
Comments
I think it makes sense to fail the build with a validation error in the config file saying something like "If |
My thanks for finding my question and documenting what's going on! |
use mambaforge to force readthedocs to use conda environments issue from readthedocs/readthedocs.org#8595
use mambaforge to force readthedocs to use conda environments issue from readthedocs/readthedocs.org#8595
I would also like this amended or clarified somewhere in the documentation. I was getting the following error, with no clear way of how to fix it: python -mvirtualenv $READTHEDOCS_VIRTUALENV_PATH Although the Stack overflow post exists (https://stackoverflow.com/questions/69774313/why-does-rtd-run-python-env-create-instead-of-conda-env-create-when-building), I don't know what I would have done if I didn't find it. |
This seems at the very least like a simple docs issue: I also just stumbled on it while wondering if |
Hi, Edit: this is where I'd be looking for a hint: Thanks. |
Make it clear that when using `conda` it's required to use `build.tools.python` with Conda or Mamba. Related #8595 (comment)
Make it clear that when using `conda` it's required to use `build.tools.python` with Conda or Mamba. Related #8595 (comment)
use mambaforge to force readthedocs to use conda environments issue from readthedocs/readthedocs.org#8595
If
build.tools.python
is specified with a non-conda version at the same time thatconda.environment
is present, the build fails. See for example:https://readthedocs.org/projects/salishsea-nowcast/builds/14996913/
/home/docs/.asdf/installs/python/3.9.7/bin/python: can't open file '/home/docs/checkouts/readthedocs.org/user_builds/salishsea-nowcast/checkouts/latest/env': [Errno 2] No such file or directory
which corresponds to this configuration file:
We should either produce a better error message if this combination is not possible, or reconcile the two options.
(Thanks @douglatornell for the report 🙏🏽)
The text was updated successfully, but these errors were encountered: