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

conda build traceback in _combine_spec_dictionaries #3404

Closed
nehaljwani opened this issue Feb 20, 2019 · 2 comments · Fixed by #5417
Closed

conda build traceback in _combine_spec_dictionaries #3404

nehaljwani opened this issue Feb 20, 2019 · 2 comments · Fixed by #5417
Labels
locked [bot] locked due to inactivity stale::closed [bot] closed after being marked as stale stale [bot] marked as stale due to inactivity

Comments

@nehaljwani
Copy link
Contributor

nehaljwani commented Feb 20, 2019

Don't have a MWE yet, but hit this on CI with CB v3.17.8 on Windows:

  File "C:\ci\containers\000037pqvih\tmp\build\80754af9\mc\Scripts\conda-build-script.py", line 10, in <module>
    sys.exit(main())
  File "C:\ci\containers\000037pqvih\tmp\build\80754af9\mc\lib\site-packages\conda_build\cli\main_build.py", line 456, in main
    execute(sys.argv[1:])
  File "C:\ci\containers\000037pqvih\tmp\build\80754af9\mc\lib\site-packages\conda_build\cli\main_build.py", line 447, in execute
    verify=args.verify, variants=args.variants)
  File "C:\ci\containers\000037pqvih\tmp\build\80754af9\mc\lib\site-packages\conda_build\api.py", line 208, in build
    notest=notest, need_source_download=need_source_download, variants=variants)
  File "C:\ci\containers\000037pqvih\tmp\build\80754af9\mc\lib\site-packages\conda_build\build.py", line 2292, in build_tree
    bypass_env_check=True)
  File "C:\ci\containers\000037pqvih\tmp\build\80754af9\mc\lib\site-packages\conda_build\render.py", line 803, in render_recipe
    variants = get_package_variants(m, variants=variants)
  File "C:\ci\containers\000037pqvih\tmp\build\80754af9\mc\lib\site-packages\conda_build\variants.py", line 517, in get_package_variants
    combined_spec = combine_specs(specs, log_output=config.verbose)
  File "C:\ci\containers\000037pqvih\tmp\build\80754af9\mc\lib\site-packages\conda_build\variants.py", line 277, in combine_specs
    log_output=log_output)
  File "C:\ci\containers\000037pqvih\tmp\build\80754af9\mc\lib\site-packages\conda_build\variants.py", line 245, in _combine_spec_dictionaries
    values[k] = v.copy()
AttributeError: 'str' object has no attribute 'copy'
@183amir
Copy link
Contributor

183amir commented Oct 1, 2021

This happens with zip_keys in a variant file like below:

c_compiler_version:            # [unix]
  - 11                         # [osx]
  - 9                          # [linux]
cxx_compiler_version:          # [unix]
  - 11                         # [osx]
  - 9                          # [linux]
fortran_compiler_version:      # [unix or win64]
  - 11                         # [osx and arm64]
  - 9                          # [osx and x86_64]
  - 9                          # [linux]
  - 5                          # [win64]


python:
  # part of a zip_keys: python, python_impl, numpy
  - 3.8.* *_cpython
python_impl:
  # part of a zip_keys: python, python_impl, numpy
  - cpython

zip_keys:
  -                             # [unix]
    - c_compiler_version        # [unix]
    - cxx_compiler_version      # [unix]
    - fortran_compiler_version  # [unix]
-
   - python
   - numpy
   - python_impl

numpy:
  # part of a zip_keys: python, python_impl, numpy
  - 1.19.5

I don't understand why, but, commenting:

-
   - python
   - numpy
   - python_impl

fixed it.

@github-actions
Copy link

github-actions bot commented Jan 7, 2023

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 Jan 7, 2023
@github-actions github-actions bot added the stale::closed [bot] closed after being marked as stale label Feb 6, 2023
@github-actions github-actions bot closed this as completed Feb 6, 2023
@github-actions github-actions bot added the locked [bot] locked due to inactivity label Feb 6, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 6, 2024
corneliusroemer added a commit to corneliusroemer/conda-build that referenced this issue Jul 18, 2024
…oesn't

resolves conda#5416
resolves conda#3404 (closed because stale, not because fixed)

Bug was possibly introduced in conda#3344
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity stale::closed [bot] closed after being marked as stale stale [bot] marked as stale due to inactivity
Projects
None yet
2 participants