Skip to content
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

Build fails due to empty READTHEDOCS_VIRTUALENV_PATH #10907

Closed
dionhaefner opened this issue Nov 16, 2023 · 3 comments
Closed

Build fails due to empty READTHEDOCS_VIRTUALENV_PATH #10907

dionhaefner opened this issue Nov 16, 2023 · 3 comments
Labels
Support Support question

Comments

@dionhaefner
Copy link

Details

Expected Result

Build completes successfully.

Actual Result

Getting an exception during the command:

$ python -mvirtualenv $READTHEDOCS_VIRTUALENV_PATH

Error:

usage: virtualenv [--version] [--with-traceback] [-v | -q] [--read-only-app-data] [--app-data APP_DATA] [--reset-app-data] [--upgrade-embed-wheels] [--discovery {builtin}] [-p py] [--try-first-with py_exe]
                  [--creator {builtin,cpython3-posix,venv}] [--seeder {app-data,pip}] [--no-seed] [--activators comma_sep_list] [--clear] [--no-vcs-ignore] [--system-site-packages] [--symlinks | --copies] [--no-download | --download]
                  [--extra-search-dir d [d ...]] [--pip version] [--setuptools version] [--wheel version] [--no-pip] [--no-setuptools] [--no-wheel] [--no-periodic-update] [--symlink-app-data] [--prompt prompt] [-h]
                  dest
SystemExit: 2
virtualenv: error: the following arguments are required: dest

Looks to me like READTHEDOCS_VIRTUALENV_PATH isn't set for some reason.

@humitos
Copy link
Member

humitos commented Nov 16, 2023

This is because build.tools.python is not set to mamba or conda. Read the docs about this config and set it properly and your build will work.

(I'm on the phone 📱 now)

@humitos humitos added the Support Support question label Nov 16, 2023
@dionhaefner
Copy link
Author

Changed config to this:

build:
  os: ubuntu-22.04
  tools:
    python: "miniconda3-4.7"

The build succeeded. Would be nice to get an error message if conda config keys are set together with an explicit python version.

Thanks for the help.

@humitos
Copy link
Member

humitos commented Nov 21, 2023

Would be nice to get an error message if conda config keys are set together with an explicit python version.

Yes, we have a few issues about improving these error messages. We weren't able to prioritize then yet.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Support Support question
Projects
None yet
Development

No branches or pull requests

2 participants