Closed cbouss closed 1 week ago
If I run percy recipe sync
from aggregate/click-feedstock/recipe
or aggregate/click-feedstock
I get this error:
grayskull pypi --extras-require-all -o /var/folders/34/jpnxzfyj7v98l36m55zzjklr0000gq/T/tmpl3bgswnh click
Traceback (most recent call last):
File "/Users/skupr/miniconda3/envs/percy/bin/percy", line 8, in <module>
sys.exit(cli())
^^^^^
File "/Users/skupr/miniconda3/envs/percy/lib/python3.12/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/skupr/miniconda3/envs/percy/lib/python3.12/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/Users/skupr/miniconda3/envs/percy/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/skupr/miniconda3/envs/percy/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/skupr/miniconda3/envs/percy/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/skupr/miniconda3/envs/percy/lib/python3.12/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/skupr/miniconda3/envs/percy/lib/python3.12/site-packages/click/decorators.py", line 45, in new_func
return f(get_current_context().obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/skupr/miniconda3/envs/percy/lib/python3.12/site-packages/percy/commands/recipe.py", line 285, in sync
grayskull_sync.sync(recipe_path, pypi_spec, run_constrained, bump, run_linter)
File "/Users/skupr/miniconda3/envs/percy/lib/python3.12/site-packages/percy/updater/grayskull_sync.py", line 111, in sync
gs_raw_recipe, gs_rendered_recipe, sections = gen_grayskull_recipe(gs_file_path, package_spec, with_run_constrained)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/skupr/miniconda3/envs/percy/lib/python3.12/site-packages/percy/updater/grayskull_sync.py", line 38, in gen_grayskull_recipe
subprocess.run(
File "/Users/skupr/miniconda3/envs/percy/lib/python3.12/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'grayskull pypi --extras-require-all -o /var/folders/34/jpnxzfyj7v98l36m55zzjklr0000gq/T/tmpl3bgswnh click' returned non-zero exit status 127.
FYI, if conda env create
doesn't have the flag --force
since conda 24.3.x
, see https://docs.conda.io/projects/conda/en/latest/commands/env/create.html. That means the command make environment
fails for percy's newcomers.
FYI, if
conda env create
doesn't have the flag--force
sinceconda 24.3.x
, see https://docs.conda.io/projects/conda/en/latest/commands/env/create.html. That means the commandmake environment
fails for percy's newcomers.
Changing the flag to --yes
is the fix. I've had to do this in a bunch of repos.
get_read_only_parser()
function.