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

Stack trace on render() #7

Open
bkreider opened this issue May 24, 2023 · 1 comment
Open

Stack trace on render() #7

bkreider opened this issue May 24, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@bkreider
Copy link

I'm definitely doing it wrong, but this should still be caught and handled:

In [4]: p = Path("./meta.yaml")

In [5]: p
Out[5]: PosixPath('meta.yaml')

In [6]: r = recipe.render(p)
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Input In [6], in <cell line: 1>()
----> 1 r = recipe.render(p)

File /opt/anaconda/lib/python3.9/site-packages/percy/render/recipe.py:746, in render(recipe_path, subdir, python, others, return_exceptions)
    744 if others is None:
    745     others = {"r_implementation": "r-base", "rust_compiler": "rust"}
--> 746 variants = read_conda_build_config(recipe_path, subdir, python, others)
    748 # render for each variant and combine similar results
    749 render_results = []

File /opt/anaconda/lib/python3.9/site-packages/percy/render/variants.py:263, in read_conda_build_config(recipe_path, subdir, python, others, variant_config_files, exclusive_config_files)
    261     if k not in zip_keys and type(v) is list and len(v) > 1:
    262         groups[k] = v
--> 263 group_keys, group_values = zip(*groups.items())
    264 group_permutations = [
    265     dict(zip(group_keys, v)) for v in itertools.product(*group_values)
    266 ]
    267 for d in group_permutations:

ValueError: not enough values to unpack (expected 2, got 0)
@schuylermartin45 schuylermartin45 added the bug Something isn't working label Nov 7, 2023
@schuylermartin45
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants