Skip to content

devops: fix conda build pipeline (pin conda) #2038

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

Merged
merged 7 commits into from
Aug 9, 2023

Conversation

mxschmitt
Copy link
Member

@mxschmitt mxschmitt commented Aug 9, 2023

There are two issues which we experience with the latest conda version:

macos:

# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

    Traceback (most recent call last):
      File "/usr/local/miniconda/lib/python3.10/site-packages/conda/exceptions.py", line 1132, in __call__
        return func(*args, **kwargs)
      File "/usr/local/miniconda/lib/python3.10/site-packages/conda/cli/main.py", line 6[9](https://github.com/microsoft/playwright-python/actions/runs/5797448985/job/15713019320#step:5:10), in main_subshell
        exit_code = do_call(args, p)
      File "/usr/local/miniconda/lib/python3.[10](https://github.com/microsoft/playwright-python/actions/runs/5797448985/job/15713019320#step:5:11)/site-packages/conda/cli/conda_argparse.py", line [11](https://github.com/microsoft/playwright-python/actions/runs/5797448985/job/15713019320#step:5:12)5, in do_call
        return args.plugin_subcommand.action(sys.argv[2:])
      File "/usr/local/miniconda/lib/python3.10/site-packages/conda_build/cli/main_build.py", line 5[16](https://github.com/microsoft/playwright-python/actions/runs/5797448985/job/15713019320#step:5:17), in execute
        _parser, args = parse_args(args)
      File "/usr/local/miniconda/lib/python3.10/site-packages/conda_build/cli/main_build.py", line 470, in parse_args
        check_recipe(args.recipe)
    AttributeError: 'Namespace' object has no attribute 'recipe'

`$ /usr/local/miniconda/condabin/conda build .`

windows:

Run conda build .
usage: conda-script.py [-h] [--no-plugins] [-V] COMMAND ...
conda-script.py: error: argument COMMAND: invalid choice: 'build' (choose from 'clean', 'compare', 'config', 'create', 'info', 'init', 'install', 'list', 'notices', 'package', 'remove', 'uninstall', 'rename', 'run', 'search', 'update', 'upgrade', 'doctor', 'content-trust', 'env')
Error: Process completed with exit code 1.

This seems already filed in conda/conda#12955.

We can fix both by pinning to an old conda version: 23.5.2.

@mxschmitt mxschmitt marked this pull request as ready for review August 9, 2023 08:53
@mxschmitt mxschmitt merged commit cd98efc into main Aug 9, 2023
@mxschmitt mxschmitt deleted the fix-conda-build-pipeline branch August 9, 2023 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants