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

Specifying multiple python versions on conda build results in an error #5051

Closed
2 tasks done
mikev-junimo opened this issue Nov 1, 2023 · 1 comment
Closed
2 tasks done
Labels
source::community catch-all for issues filed by community members stale::closed [bot] closed after being marked as stale stale [bot] marked as stale due to inactivity type::bug describes erroneous operation, use severity::* to classify the type

Comments

@mikev-junimo
Copy link

mikev-junimo commented Nov 1, 2023

Checklist

  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate

What happened?

When I run conda-build 3.27.0 with multiple python versions, e.g., conda build --py 3.10 --py 3.11 I get the following exception:

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

    Traceback (most recent call last):
      File "/spare/local/devtools/conda-env/lib/python3.11/site-packages/conda/exception_handler.py", line 17, in __call__
        return func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
      File "/spare/local/devtools/conda-env/lib/python3.11/site-packages/conda/cli/main.py", line 78, in main_subshell
        exit_code = do_call(args, parser)
                    ^^^^^^^^^^^^^^^^^^^^^
      File "/spare/local/devtools/conda-env/lib/python3.11/site-packages/conda/cli/conda_argparse.py", line 142, in do_call
        result = plugin_subcommand.action(getattr(args, "_args", args))
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/spare/local/devtools/conda-env/lib/python3.11/site-packages/conda_build/plugin.py", line 10, in build
        execute(*args, **kwargs)
      File "/spare/local/devtools/conda-env/lib/python3.11/site-packages/conda_build/cli/main_build.py", line 568, in execute
        outputs = api.build(
                  ^^^^^^^^^^
      File "/spare/local/devtools/conda-env/lib/python3.11/site-packages/conda_build/api.py", line 253, in build
        return build_tree(
               ^^^^^^^^^^^
      File "/spare/local/devtools/conda-env/lib/python3.11/site-packages/conda_build/build.py", line 3777, in build_tree
        metadata_tuples = render_recipe(
                          ^^^^^^^^^^^^^^
      File "/spare/local/devtools/conda-env/lib/python3.11/site-packages/conda_build/render.py", line 969, in render_recipe
        m = MetaData(recipe_dir, config=config)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/spare/local/devtools/conda-env/lib/python3.11/site-packages/conda_build/metadata.py", line 1111, in __init__
        self.parse_again(permit_undefined_jinja=True, allow_no_other_outputs=True)
      File "/spare/local/devtools/conda-env/lib/python3.11/site-packages/conda_build/metadata.py", line 1203, in parse_again
        self._get_contents(
      File "/spare/local/devtools/conda-env/lib/python3.11/site-packages/conda_build/metadata.py", line 1880, in _get_contents
        env.globals.update(get_selectors(self.config))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/spare/local/devtools/conda-env/lib/python3.11/site-packages/conda_build/metadata.py", line 143, in get_selectors
        defaults = variants.get_default_variant(config)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/spare/local/devtools/conda-env/lib/python3.11/site-packages/conda_build/variants.py", line 123, in get_default_variant
        base.update(_get_default_compilers(config.platform, python))
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    TypeError: unhashable type: 'list'

Conda Info

No response

Conda Config

No response

Conda list

No response

Additional Context

No response

@mikev-junimo mikev-junimo added the type::bug describes erroneous operation, use severity::* to classify the type label Nov 1, 2023
@github-project-automation github-project-automation bot moved this to 🆕 New in 🧭 Planning Nov 1, 2023
@travishathaway travishathaway added the source::community catch-all for issues filed by community members label Nov 6, 2023
Copy link

github-actions bot commented Nov 6, 2024

Hi there, thank you for your contribution!

This issue has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs.

If you would like this issue to remain open please:

  1. Verify that you can still reproduce the issue at hand
  2. Comment that the issue is still reproducible and include:
    - What OS and version you reproduced the issue on
    - What steps you followed to reproduce the issue

NOTE: If this issue was closed prematurely, please leave a comment.

Thanks!

@github-actions github-actions bot added the stale [bot] marked as stale due to inactivity label Nov 6, 2024
@github-actions github-actions bot added the stale::closed [bot] closed after being marked as stale label Dec 6, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 6, 2024
@github-project-automation github-project-automation bot moved this from 🆕 New to 🏁 Done in 🧭 Planning Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
source::community catch-all for issues filed by community members stale::closed [bot] closed after being marked as stale stale [bot] marked as stale due to inactivity type::bug describes erroneous operation, use severity::* to classify the type
Projects
Archived in project
Development

No branches or pull requests

2 participants