conda / conda-build

Commands and tools for building conda packages
https://docs.conda.io/projects/conda-build/
Other
382 stars 423 forks source link

metapackage TypeError #3862

Closed zeneofa closed 1 year ago

zeneofa commented 4 years ago

I am trying to create a metapackage for a set of system libraries, so that other packages that depend on these libraries use the system ones instead of a conda associated one. I am running into a TypeError. Not sure if I am doing something wrong, just being an idiot, or if there is something I am missing? Any advice or help would be greatly appreciated.

Some system specifics: conda-build 3.18.11 Python 3.7.3 conda 4.8.2

  Operating System: elementary OS 5.1 Hera
            Kernel: Linux 5.0.0-37-generic
      Architecture: x86-64

Actual Behavior

(base) zen@elysium:~/work/conda-recipes$ conda metapackage poppler 1.0
Adding in variants from internal_defaults
INFO:conda_build.variants:Adding in variants from internal_defaults
No numpy version specified in conda_build_config.yaml.  Falling back to default numpy value of 1.11
WARNING:conda_build.metadata:No numpy version specified in conda_build_config.yaml.  Falling back to default numpy value of 1.11
Traceback (most recent call last):
  File "/home/zen/miniconda3/bin/conda-metapackage", line 11, in <module>
    sys.exit(main())
  File "/home/zen/miniconda3/lib/python3.7/site-packages/conda_build/cli/main_metapackage.py", line 125, in main
    return execute(sys.argv[1:])
  File "/home/zen/miniconda3/lib/python3.7/site-packages/conda_build/cli/main_metapackage.py", line 121, in execute
    api.create_metapackage(channel_urls=channel_urls, **args.__dict__)
  File "/home/zen/miniconda3/lib/python3.7/site-packages/conda_build/api.py", line 376, in create_metapackage
    license_name=license_name, summary=summary, config=config)
  File "/home/zen/miniconda3/lib/python3.7/site-packages/conda_build/metapackage.py", line 29, in create_metapackage
    return build(m, config=config, need_source_download=False)
  File "/home/zen/miniconda3/lib/python3.7/site-packages/conda_build/api.py", line 209, in build
    notest=notest, need_source_download=need_source_download, variants=variants)
  File "/home/zen/miniconda3/lib/python3.7/site-packages/conda_build/build.py", line 2344, in build_tree
    notest=notest,
  File "/home/zen/miniconda3/lib/python3.7/site-packages/conda_build/build.py", line 1335, in build
    output_metas = expand_outputs([(m, need_source_download, need_reparse_in_env)])
  File "/home/zen/miniconda3/lib/python3.7/site-packages/conda_build/render.py", line 746, in expand_outputs
    for (output_dict, m) in _m.copy().get_output_metadata_set(permit_unsatisfiable_variants=False):
  File "/home/zen/miniconda3/lib/python3.7/site-packages/conda_build/metadata.py", line 2016, in get_output_metadata_set
    render_order = toposort(out_metadata_map)
  File "/home/zen/miniconda3/lib/python3.7/site-packages/conda_build/metadata.py", line 638, in toposort
    output_m.get_value('requirements/host', [])]
TypeError: can only concatenate tuple (not "list") to tuple

Expected Behavior

I was expecting a metapackage recipe to be created.

Output of conda info
    active env location : /home/zen/miniconda3
            shell level : 1
       user config file : /home/zen/.condarc
 populated config files : 
          conda version : 4.8.2
    conda-build version : 3.18.11
         python version : 3.7.3.final.0
       virtual packages : __glibc=2.27
       base environment : /home/zen/miniconda3  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /home/zen/miniconda3/pkgs
                          /home/zen/.conda/pkgs
       envs directories : /home/zen/miniconda3/envs
                          /home/zen/.conda/envs
               platform : linux-64
             user-agent : conda/4.8.2 requests/2.22.0 CPython/3.7.3 Linux/5.0.0-37-generic elementary/5.1 glibc/2.27
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False
github-actions[bot] commented 1 year ago

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!