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_config.yaml configuration error #4948

Closed
2 tasks done
brey opened this issue Jul 27, 2023 · 1 comment
Closed
2 tasks done

conda_build_config.yaml configuration error #4948

brey opened this issue Jul 27, 2023 · 1 comment
Labels
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

@brey
Copy link

brey commented Jul 27, 2023

Checklist

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

What happened?

When using a conda_build_config.yaml file to define mpi variants like

mpi:
  - mpich
  - openmpi
  

I get the following error

Traceback (most recent call last):
  File "/Users/brey/miniconda3/bin/conda-build", line 11, in <module>
    sys.exit(main())
  File "/Users/brey/miniconda3/lib/python3.9/site-packages/conda_build/cli/main_build.py", line 593, in main
    execute(sys.argv[1:])
  File "/Users/brey/miniconda3/lib/python3.9/site-packages/conda_build/cli/main_build.py", line 573, in execute
    outputs = api.build(
  File "/Users/brey/miniconda3/lib/python3.9/site-packages/conda_build/api.py", line 253, in build
    return build_tree(
  File "/Users/brey/miniconda3/lib/python3.9/site-packages/conda_build/build.py", line 3772, in build_tree
    metadata_tuples = render_recipe(
  File "/Users/brey/miniconda3/lib/python3.9/site-packages/conda_build/render.py", line 1005, in render_recipe
    rendered_metadata = distribute_variants(
  File "/Users/brey/miniconda3/lib/python3.9/site-packages/conda_build/render.py", line 892, in distribute_variants
    mv.parse_until_resolved(
  File "/Users/brey/miniconda3/lib/python3.9/site-packages/conda_build/metadata.py", line 1267, in parse_until_resolved
    self.parse_again(
  File "/Users/brey/miniconda3/lib/python3.9/site-packages/conda_build/metadata.py", line 1191, in parse_again
    self._get_contents(
  File "/Users/brey/miniconda3/lib/python3.9/site-packages/conda_build/metadata.py", line 1869, in _get_contents
    env.globals.update(environ.get_dict(m=self, skip_build_id=skip_build_id))
  File "/Users/brey/miniconda3/lib/python3.9/site-packages/conda_build/environ.py", line 317, in get_dict
    d.update(python_vars(m, prefix, escape_backslash))
  File "/Users/brey/miniconda3/lib/python3.9/site-packages/conda_build/environ.py", line 388, in python_vars
    build_or_host = "host" if metadata.is_cross else "build"
  File "/Users/brey/miniconda3/lib/python3.9/site-packages/conda_build/metadata.py", line 1105, in is_cross
    return bool(self.get_depends_top_and_out("host")) or "host" in self.meta.get(
  File "/Users/brey/miniconda3/lib/python3.9/site-packages/conda_build/metadata.py", line 1467, in get_depends_top_and_out
    extra_reqs = [
  File "/Users/brey/miniconda3/lib/python3.9/site-packages/conda_build/metadata.py", line 1468, in <listcomp>
    dep for dep in extra_reqs if dep.split()[0] not in req_names
AttributeError: 'NoneType' object has no attribute 'split'

Conda Info

❯ conda info

     active environment : base
    active env location : /Users/brey/mambaforge
            shell level : 1
       user config file : /Users/brey/.condarc
 populated config files : /Users/brey/mambaforge/.condarc
                          /Users/brey/.condarc
          conda version : 23.1.0
    conda-build version : 3.25.0
         python version : 3.10.12.final.0
       virtual packages : __archspec=1=x86_64
                          __osx=12.6.8=0
                          __unix=0=0
       base environment : /Users/brey/mambaforge  (writable)
      conda av data dir : /Users/brey/mambaforge/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/osx-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/osx-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/osx-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /Users/brey/mambaforge/pkgs
                          /Users/brey/.conda/pkgs
       envs directories : /Users/brey/mambaforge/envs
                          /Users/brey/.conda/envs
               platform : osx-64
             user-agent : conda/23.1.0 requests/2.31.0 CPython/3.10.12 Darwin/21.6.0 OSX/12.6.8
                UID:GID : 501:20
             netrc file : None
           offline mode : False

Conda Config

==> /Users/brey/mambaforge/.condarc <==
channels:
  - conda-forge

==> /Users/brey/.condarc <==
proxy_servers: {}
channel_priority: strict
channels:
  - conda-forge
  - defaults
anaconda_upload: False

Conda list

# packages in environment at /Users/brey/mambaforge:
#
# Name                    Version                   Build  Channel
beautifulsoup4            4.12.2             pyha770c72_0    conda-forge
brotli-python             1.0.9           py310h7a76584_9    conda-forge
bzip2                     1.0.8                h0d85af4_4    conda-forge
c-ares                    1.19.1               h0dc2134_0    conda-forge
ca-certificates           2023.5.7             h8857fd0_0    conda-forge
cctools                   973.0.1             h40f6528_13    conda-forge
cctools_osx-64            973.0.1             h5676edf_13    conda-forge
certifi                   2023.5.7           pyhd8ed1ab_0    conda-forge
cffi                      1.15.1          py310ha78151a_3    conda-forge
chardet                   5.1.0           py310h2ec42d9_0    conda-forge
charset-normalizer        3.1.0              pyhd8ed1ab_0    conda-forge
click                     8.1.4           unix_pyh707e725_0    conda-forge
colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
conda                     23.1.0          py310h2ec42d9_0    conda-forge
conda-build               3.25.0          py310h2ec42d9_0    conda-forge
conda-index               0.2.3              pyhd8ed1ab_0    conda-forge
conda-package-handling    2.0.2              pyh38be061_0    conda-forge
conda-package-streaming   0.8.0              pyhd8ed1ab_0    conda-forge
conda-verify              3.1.1           py310h2ec42d9_1006    conda-forge
cryptography              41.0.1          py310ha1817de_0    conda-forge
filelock                  3.12.2             pyhd8ed1ab_0    conda-forge
fmt                       9.1.0                hb8565cd_0    conda-forge
future                    0.18.3             pyhd8ed1ab_0    conda-forge
glob2                     0.7                        py_0    conda-forge
icu                       72.1                 h7336db1_0    conda-forge
idna                      3.4                pyhd8ed1ab_0    conda-forge
jinja2                    3.1.2              pyhd8ed1ab_1    conda-forge
krb5                      1.20.1               h049b76e_0    conda-forge
ld64                      609                 ha02d983_13    conda-forge
ld64_osx-64               609                 hbfe4790_13    conda-forge
libarchive                3.6.2                h0b5dc4a_1    conda-forge
libcurl                   8.1.2                hbee3ae8_0    conda-forge
libcxx                    16.0.6               hd57cbcb_0    conda-forge
libedit                   3.1.20191231         h0678c8f_2    conda-forge
libev                     4.33                 haf1e3a3_1    conda-forge
libffi                    3.4.2                h0d85af4_5    conda-forge
libiconv                  1.17                 hac89ed1_0    conda-forge
liblief                   0.12.3               hf0c8a7f_0    conda-forge
libllvm16                 16.0.6               he4b1e75_0    conda-forge
libmamba                  1.4.2                h9d281b0_0    conda-forge
libmambapy                1.4.2           py310hb15139c_0    conda-forge
libnghttp2                1.52.0               he2ab024_0    conda-forge
libsolv                   0.7.24               h7d26f99_1    conda-forge
libsqlite                 3.42.0               h58db7d2_0    conda-forge
libssh2                   1.11.0               hd019ec5_0    conda-forge
libxml2                   2.11.4               hd95e348_0    conda-forge
libzlib                   1.2.13               h8a1eda9_5    conda-forge
lz4-c                     1.9.4                hf0c8a7f_0    conda-forge
lzo                       2.10              haf1e3a3_1000    conda-forge
mamba                     1.4.2           py310h6bde348_0    conda-forge
markupsafe                2.1.3           py310h6729b98_0    conda-forge
more-itertools            9.1.0              pyhd8ed1ab_0    conda-forge
ncurses                   6.4                  hf0c8a7f_0    conda-forge
openssl                   3.1.1                h8a1eda9_1    conda-forge
packaging                 23.1               pyhd8ed1ab_0    conda-forge
patch                     2.7.6             hbcf498f_1002    conda-forge
pip                       23.1.2             pyhd8ed1ab_0    conda-forge
pkginfo                   1.9.6              pyhd8ed1ab_0    conda-forge
pluggy                    1.2.0              pyhd8ed1ab_0    conda-forge
psutil                    5.9.5           py310h90acd4f_0    conda-forge
py-lief                   0.12.3          py310h7a76584_0    conda-forge
pybind11-abi              4                    hd8ed1ab_3    conda-forge
pycosat                   0.6.4           py310h90acd4f_1    conda-forge
pycparser                 2.21               pyhd8ed1ab_0    conda-forge
pyopenssl                 23.2.0             pyhd8ed1ab_1    conda-forge
pysocks                   1.7.1              pyha2e5f31_6    conda-forge
python                    3.10.12         had23ca6_0_cpython    conda-forge
python-libarchive-c       4.0             py310h2ec42d9_2    conda-forge
python_abi                3.10                    3_cp310    conda-forge
pytz                      2023.3             pyhd8ed1ab_0    conda-forge
pyyaml                    6.0             py310h90acd4f_5    conda-forge
readline                  8.2                  h9e318b2_1    conda-forge
reproc                    14.2.4               hb7f2c08_0    conda-forge
reproc-cpp                14.2.4               hf0c8a7f_0    conda-forge
requests                  2.31.0             pyhd8ed1ab_0    conda-forge
ripgrep                   13.0.0               hbbacdb1_2    conda-forge
ruamel.yaml               0.17.32         py310h6729b98_0    conda-forge
ruamel.yaml.clib          0.2.7           py310h90acd4f_1    conda-forge
setuptools                68.0.0             pyhd8ed1ab_0    conda-forge
sigtool                   0.1.3                h88f4db0_0    conda-forge
six                       1.16.0             pyh6c4a22f_0    conda-forge
soupsieve                 2.3.2.post1        pyhd8ed1ab_0    conda-forge
tapi                      1100.0.11            h9ce4665_0    conda-forge
tk                        8.6.12               h5dbffcc_0    conda-forge
tomli                     2.0.1              pyhd8ed1ab_0    conda-forge
toolz                     0.12.0             pyhd8ed1ab_0    conda-forge
tqdm                      4.65.0             pyhd8ed1ab_1    conda-forge
tzdata                    2023c                h71feb2d_0    conda-forge
urllib3                   2.0.3              pyhd8ed1ab_1    conda-forge
wheel                     0.40.0             pyhd8ed1ab_0    conda-forge
xz                        5.2.6                h775f41a_0    conda-forge
yaml                      0.2.5                h0d85af4_2    conda-forge
yaml-cpp                  0.7.0                hf0c8a7f_2    conda-forge
zstandard                 0.19.0          py310h151724a_2    conda-forge
zstd                      1.5.2                hbc0c0cd_6    conda-forge

Additional Context

I have tested in another miniconda based env with py3.9 same behaviour. This is new. I have build with the same installation many packages in the past with no problem.

@brey brey added the type::bug describes erroneous operation, use severity::* to classify the type label Jul 27, 2023
Copy link

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 Jul 27, 2024
@github-actions github-actions bot added the stale::closed [bot] closed after being marked as stale label Aug 26, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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

1 participant