Open
Description
openedon Apr 9, 2024
Checklist
- I added a descriptive title
- I searched open reports and couldn't find a duplicate
What happened?
I try to add a dual license to a recipe with this entry:
about:
license:
- Artistic-1.0-Perl
- GPL-1.0-or-later
At build time, I get an error conda.auxlib.exceptions.ValidationError: Invalid value ['Artistic-1.0-Perl', 'GPL-1.0-or-later'] for license
Since, when I try to build any recipe. I get this error, even if the meta.yaml
don't contain those licenses. For example, this file (with an empty build.sh
next to it) produces the above error:
package:
name: test
I was able to solve the issue by using conda build purge-all
, but this behavior is clearly a bug.
Conda Info
active environment : base
active env location : /home/pbordron/.local/miniconda3
shell level : 1
user config file : /home/pbordron/.condarc
populated config files : /home/pbordron/.condarc
conda version : 24.3.0
conda-build version : 24.3.0
python version : 3.11.8.final.0
solver : libmamba (default)
virtual packages : __archspec=1=icelake
__conda=24.3.0=0
__glibc=2.31=0
__linux=5.15.0=0
__unix=0=0
base environment : /home/pbordron/.local/miniconda3 (writable)
conda av data dir : /home/pbordron/.local/miniconda3/etc/conda
conda av metadata url : None
channel URLs : https://conda.anaconda.org/conda-forge/linux-64
https://conda.anaconda.org/conda-forge/noarch
https://conda.anaconda.org/bioconda/linux-64
https://conda.anaconda.org/bioconda/noarch
file:///home/pbordron/.local/miniconda3/conda-bld/linux-64
file:///home/pbordron/.local/miniconda3/conda-bld/noarch
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/pbordron/.local/miniconda3/pkgs
/home/pbordron/.conda/pkgs
envs directories : /home/pbordron/.local/miniconda3/envs
/home/pbordron/.conda/envs
platform : linux-64
user-agent : conda/24.3.0 requests/2.31.0 CPython/3.11.8 Linux/5.15.0-102-generic linuxmint/20.3 glibc/2.31 solver/libmamba conda-libmamba-solver/24.1.0 libmambapy/1.5.8
UID:GID : 4063:500
netrc file : None
offline mode : False
Conda Config
==> /home/pbordron/.condarc <==
allow_conda_downgrades: True
auto_activate_base: False
channels:
- conda-forge
- bioconda
- file:///home/pbordron/.local/miniconda3/conda-bld/
- defaults
report_errors: False
solver: libmamba
Conda list
# packages in environment at /home/pbordron/.local/miniconda3:
#
# Name Version Build Channel
_libgcc_mutex 0.1 conda_forge conda-forge
_openmp_mutex 4.5 2_gnu conda-forge
archspec 0.2.3 pyhd8ed1ab_0 conda-forge
attrs 23.2.0 pyh71513ae_0 conda-forge
beautifulsoup4 4.12.3 pyha770c72_0 conda-forge
boltons 24.0.0 pyhd8ed1ab_0 conda-forge
brotli 1.1.0 hd590300_1 conda-forge
brotli-bin 1.1.0 hd590300_1 conda-forge
brotli-python 1.1.0 py311hb755f60_1 conda-forge
brotlipy 0.7.0 py311h459d7ec_1006 conda-forge
bzip2 1.0.8 hd590300_5 conda-forge
c-ares 1.28.1 hd590300_0 conda-forge
ca-certificates 2024.2.2 hbcca054_0 conda-forge
certifi 2024.2.2 pyhd8ed1ab_0 conda-forge
cffi 1.16.0 py311hb3a22ac_0 conda-forge
chardet 5.2.0 py311h38be061_1 conda-forge
charset-normalizer 3.3.2 pyhd8ed1ab_0 conda-forge
click 8.1.7 unix_pyh707e725_0 conda-forge
colorama 0.4.6 pyhd8ed1ab_0 conda-forge
conda 24.3.0 py311h38be061_0 conda-forge
conda-build 24.3.0 py311h38be061_1 conda-forge
conda-index 0.4.0 pyhd8ed1ab_0 conda-forge
conda-libmamba-solver 24.1.0 pyhd8ed1ab_0 conda-forge
conda-package-handling 2.2.0 pyh38be061_0 conda-forge
conda-package-streaming 0.9.0 pyhd8ed1ab_0 conda-forge
conda-verify 3.1.1 py311h38be061_1006 conda-forge
cryptography 42.0.5 py311h63ff55d_0 conda-forge
distro 1.9.0 pyhd8ed1ab_0 conda-forge
filelock 3.13.3 pyhd8ed1ab_0 conda-forge
fmt 10.2.1 h00ab1b0_0 conda-forge
future 1.0.0 pyhd8ed1ab_0 conda-forge
glob2 0.7 py_0 conda-forge
icu 73.2 h59595ed_0 conda-forge
idna 3.6 pyhd8ed1ab_0 conda-forge
importlib_resources 6.4.0 pyhd8ed1ab_0 conda-forge
jinja2 3.1.3 pyhd8ed1ab_0 conda-forge
jsonpatch 1.33 pyhd8ed1ab_0 conda-forge
jsonpointer 2.4 py311h38be061_3 conda-forge
jsonschema 4.21.1 pyhd8ed1ab_0 conda-forge
jsonschema-specifications 2023.12.1 pyhd8ed1ab_0 conda-forge
keyutils 1.6.1 h166bdaf_0 conda-forge
krb5 1.21.2 h659d440_0 conda-forge
ld_impl_linux-64 2.40 h41732ed_0 conda-forge
libarchive 3.7.2 h2aa1ff5_1 conda-forge
libbrotlicommon 1.1.0 hd590300_1 conda-forge
libbrotlidec 1.1.0 hd590300_1 conda-forge
libbrotlienc 1.1.0 hd590300_1 conda-forge
libcurl 8.7.1 hca28451_0 conda-forge
libedit 3.1.20191231 he28a2e2_2 conda-forge
libev 4.33 hd590300_2 conda-forge
libexpat 2.6.2 h59595ed_0 conda-forge
libffi 3.4.2 h7f98852_5 conda-forge
libgcc-ng 13.2.0 h807b86a_5 conda-forge
libgomp 13.2.0 h807b86a_5 conda-forge
libiconv 1.17 hd590300_2 conda-forge
liblief 0.14.1 hac33072_1 conda-forge
libmamba 1.5.8 had39da4_0 conda-forge
libmambapy 1.5.8 py311hf2555c7_0 conda-forge
libnghttp2 1.58.0 h47da74e_1 conda-forge
libnsl 2.0.1 hd590300_0 conda-forge
libsolv 0.7.28 hfc55251_2 conda-forge
libsqlite 3.45.2 h2797004_0 conda-forge
libssh2 1.11.0 h0841786_0 conda-forge
libstdcxx-ng 13.2.0 h7e041cc_5 conda-forge
libuuid 2.38.1 h0b41bf4_0 conda-forge
libxcrypt 4.4.36 hd590300_1 conda-forge
libxml2 2.12.6 h232c23b_1 conda-forge
libzlib 1.2.13 hd590300_5 conda-forge
llvm-openmp 18.1.3 h4dfa4b3_0 conda-forge
lz4-c 1.9.4 hcb278e6_0 conda-forge
lzo 2.10 h516909a_1000 conda-forge
mamba 1.5.8 py311h3072747_0 conda-forge
markupsafe 2.1.5 py311h459d7ec_0 conda-forge
menuinst 2.0.2 py311h38be061_0 conda-forge
more-itertools 10.2.0 pyhd8ed1ab_0 conda-forge
ncurses 6.4.20240210 h59595ed_0 conda-forge
openssl 3.2.1 hd590300_1 conda-forge
packaging 24.0 pyhd8ed1ab_0 conda-forge
patch 2.7.6 h7f98852_1002 conda-forge
patchelf 0.18.0 h59595ed_0 conda-forge
pip 24.0 pyhd8ed1ab_0 conda-forge
pkginfo 1.10.0 pyhd8ed1ab_0 conda-forge
pkgutil-resolve-name 1.3.10 pyhd8ed1ab_1 conda-forge
platformdirs 4.2.0 pyhd8ed1ab_0 conda-forge
pluggy 1.4.0 pyhd8ed1ab_0 conda-forge
psutil 5.9.8 py311h459d7ec_0 conda-forge
py-lief 0.14.1 py311h4332511_1 conda-forge
pybind11-abi 4 hd8ed1ab_3 conda-forge
pycosat 0.6.6 py311h459d7ec_0 conda-forge
pycparser 2.22 pyhd8ed1ab_0 conda-forge
pyopenssl 24.0.0 pyhd8ed1ab_0 conda-forge
pysocks 1.7.1 pyha2e5f31_6 conda-forge
python 3.11.8 hab00c5b_0_cpython conda-forge
python-libarchive-c 5.1 py311h38be061_0 conda-forge
python_abi 3.11 4_cp311 conda-forge
pytz 2024.1 pyhd8ed1ab_0 conda-forge
pyyaml 6.0.1 py311h459d7ec_1 conda-forge
readline 8.2 h8228510_1 conda-forge
referencing 0.34.0 pyhd8ed1ab_0 conda-forge
reproc 14.2.4.post0 hd590300_1 conda-forge
reproc-cpp 14.2.4.post0 h59595ed_1 conda-forge
requests 2.31.0 pyhd8ed1ab_0 conda-forge
ripgrep 14.1.0 he8a937b_0 conda-forge
rpds-py 0.18.0 py311h46250e7_0 conda-forge
ruamel.yaml 0.18.6 py311h459d7ec_0 conda-forge
ruamel.yaml.clib 0.2.8 py311h459d7ec_0 conda-forge
ruamel_yaml 0.15.80 py311h459d7ec_1009 conda-forge
setuptools 69.2.0 pyhd8ed1ab_0 conda-forge
six 1.16.0 pyh6c4a22f_0 conda-forge
soupsieve 2.5 pyhd8ed1ab_1 conda-forge
sqlite 3.45.2 h2c6b66d_0 conda-forge
tk 8.6.13 noxft_h4845f30_101 conda-forge
toml 0.10.2 pyhd8ed1ab_0 conda-forge
tomli 2.0.1 pyhd8ed1ab_0 conda-forge
toolz 0.12.1 pyhd8ed1ab_0 conda-forge
tqdm 4.66.2 pyhd8ed1ab_0 conda-forge
truststore 0.8.0 pyhd8ed1ab_0 conda-forge
tzdata 2024a h0c530f3_0 conda-forge
urllib3 2.2.1 pyhd8ed1ab_0 conda-forge
wheel 0.43.0 pyhd8ed1ab_1 conda-forge
xz 5.2.6 h166bdaf_0 conda-forge
yaml 0.2.5 h7f98852_2 conda-forge
yaml-cpp 0.8.0 h59595ed_0 conda-forge
zipp 3.17.0 pyhd8ed1ab_0 conda-forge
zlib 1.2.13 hd590300_5 conda-forge
zstandard 0.22.0 py311haa97af0_0 conda-forge
zstd 1.5.5 hfc55251_0 conda-forge
Additional Context
The complete error message
WARNING: No numpy version specified in conda_build_config.yaml. Falling back to default numpy value of 1.23
Adding in variants from internal_defaults
Attempting to finalize metadata for test
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
Traceback (most recent call last):
File "/home/pbordron/.local/miniconda3/lib/python3.11/site-packages/conda/exception_handler.py", line 17, in __call__
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/pbordron/.local/miniconda3/lib/python3.11/site-packages/conda/cli/main.py", line 83, in main_subshell
exit_code = do_call(args, parser)
^^^^^^^^^^^^^^^^^^^^^
File "/home/pbordron/.local/miniconda3/lib/python3.11/site-packages/conda/cli/conda_argparse.py", line 175, in do_call
result = plugin_subcommand.action(getattr(args, "_args", args))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pbordron/.local/miniconda3/lib/python3.11/site-packages/conda_build/plugin.py", line 17, in build
return execute(args)
^^^^^^^^^^^^^
File "/home/pbordron/.local/miniconda3/lib/python3.11/site-packages/conda_build/cli/main_build.py", line 581, in execute
api.build(
File "/home/pbordron/.local/miniconda3/lib/python3.11/site-packages/conda_build/api.py", line 250, in build
return build_tree(
^^^^^^^^^^^
File "/home/pbordron/.local/miniconda3/lib/python3.11/site-packages/conda_build/build.py", line 3762, in build_tree
packages_from_this = build(
^^^^^^
File "/home/pbordron/.local/miniconda3/lib/python3.11/site-packages/conda_build/build.py", line 2436, in build
output_metas = expand_outputs([(m, need_source_download, need_reparse_in_env)])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pbordron/.local/miniconda3/lib/python3.11/site-packages/conda_build/render.py", line 923, in expand_outputs
for output_dict, m in deepcopy(_m).get_output_metadata_set(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pbordron/.local/miniconda3/lib/python3.11/site-packages/conda_build/metadata.py", line 2613, in get_output_metadata_set
conda_packages = finalize_outputs_pass(
^^^^^^^^^^^^^^^^^^^^^^
File "/home/pbordron/.local/miniconda3/lib/python3.11/site-packages/conda_build/metadata.py", line 949, in finalize_outputs_pass
fm = finalize_metadata(
^^^^^^^^^^^^^^^^^^
File "/home/pbordron/.local/miniconda3/lib/python3.11/site-packages/conda_build/render.py", line 645, in finalize_metadata
build_unsat, host_unsat = add_upstream_pins(
^^^^^^^^^^^^^^^^^^
File "/home/pbordron/.local/miniconda3/lib/python3.11/site-packages/conda_build/render.py", line 460, in add_upstream_pins
build_deps, build_unsat, extra_run_specs_from_build = _read_upstream_pin_files(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pbordron/.local/miniconda3/lib/python3.11/site-packages/conda_build/render.py", line 439, in _read_upstream_pin_files
deps, precs, unsat = get_env_dependencies(
^^^^^^^^^^^^^^^^^^^^^
File "/home/pbordron/.local/miniconda3/lib/python3.11/site-packages/conda_build/render.py", line 152, in get_env_dependencies
precs = environ.get_package_records(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pbordron/.local/miniconda3/lib/python3.11/site-packages/conda_build/environ.py", line 937, in get_install_actions
index, index_ts, _ = get_build_index(
^^^^^^^^^^^^^^^^
File "/home/pbordron/.local/miniconda3/lib/python3.11/site-packages/conda_build/index.py", line 125, in get_build_index
_delegated_update_index(output_folder, verbose=debug)
File "/home/pbordron/.local/miniconda3/lib/python3.11/site-packages/conda_build/index.py", line 239, in _delegated_update_index
return _update_index(
^^^^^^^^^^^^^^
File "/home/pbordron/.local/miniconda3/lib/python3.11/site-packages/conda_index/index/__init__.py", line 164, in update_index
channel_index.index(
File "/home/pbordron/.local/miniconda3/lib/python3.11/site-packages/conda_index/index/__init__.py", line 590, in index
result = future.result()
^^^^^^^^^^^^^^^
File "/home/pbordron/.local/miniconda3/lib/python3.11/site-packages/conda_index/index/__init__.py", line 67, in result
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/pbordron/.local/miniconda3/lib/python3.11/site-packages/conda_index/index/__init__.py", line 636, in index_prepared_subdir
current_repodata = _build_current_repodata(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pbordron/.local/miniconda3/lib/python3.11/site-packages/conda_index/index/__init__.py", line 445, in _build_current_repodata
r = _get_resolve_object(subdir, repodata=repodata)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pbordron/.local/miniconda3/lib/python3.11/site-packages/conda_index/index/__init__.py", line 355, in _get_resolve_object
index = {prec: prec for prec in precs or sd._package_records}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pbordron/.local/miniconda3/lib/python3.11/site-packages/conda_index/index/__init__.py", line 355, in <dictcomp>
index = {prec: prec for prec in precs or sd._package_records}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen _collections_abc>", line 993, in __iter__
File "/home/pbordron/.local/miniconda3/lib/python3.11/site-packages/conda/core/subdir_data.py", line 100, in __getitem__
record = PackageRecord(**record)
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pbordron/.local/miniconda3/lib/python3.11/site-packages/conda/auxlib/entity.py", line 743, in __call__
instance = super().__call__(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pbordron/.local/miniconda3/lib/python3.11/site-packages/conda/models/records.py", line 418, in __init__
super().__init__(*args, **kwargs)
File "/home/pbordron/.local/miniconda3/lib/python3.11/site-packages/conda/auxlib/entity.py", line 759, in __init__
setattr(self, key, kwargs[key])
File "/home/pbordron/.local/miniconda3/lib/python3.11/site-packages/conda/auxlib/entity.py", line 426, in __set__
instance.__dict__[self.name] = self.validate(
^^^^^^^^^^^^^^
File "/home/pbordron/.local/miniconda3/lib/python3.11/site-packages/conda/auxlib/entity.py", line 471, in validate
raise ValidationError(getattr(self, 'name', 'undefined name'), val)
conda.auxlib.exceptions.ValidationError: Invalid value ['Artistic-1.0-Perl', 'GPL-1.0-or-later'] for license
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Type
Projects
Status
🆕 New