You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2024-11-23 08:35:04,493 WARNING conda_smithy.linter.lints || Error parsing recipe with conda-souschef: DuplicateKeyError('while constructing a mapping', in "<unicode string>", line 20, column 3:
number: 0
^ (line: 20), 'found duplicate key "string" with value "cpu_py<{ CONDA_PY }}h<{ PKG_HASH }}_<{ mpi_prefix }}_<{ PKG_BUILDNUM }}" (original value: "cuda<{ cuda_compiler_version | replace(\'.\', \'\') }}py<{ CONDA_PY }}h<{ PKG_HASH }}_<{ mpi_prefix }}_<{ PKG_BUILDNUM }}")', in "<unicode string>", line 27, column 3:
string: cpu_py<{ CONDA_PY }}h<{ ...
^ (line: 27), '\n To suppress this check see:\n http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys\n ', ' Duplicate keys will become an error in future releases, and are errors\n by default when using the new API.\n ')
Traceback (most recent call last):
File "/opt/conda/envs/cf-feedstock-ops/lib/python3.11/site-packages/conda_smithy/linter/lints.py", line 1033, in lint_recipe_is_parsable
Recipe(load_file=recipe_file)
File "/opt/conda/envs/cf-feedstock-ops/lib/python3.11/site-packages/souschef/recipe.py", line 35, in __init__
self._yaml = self.__load_recipe(Path(load_file))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/cf-feedstock-ops/lib/python3.11/site-packages/souschef/recipe.py", line [85](https://github.com/conda-forge/conda-forge-webservices/actions/runs/11985697027/job/33417910319#step:5:87), in __load_recipe
return yaml.load(yaml_file)
^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/cf-feedstock-ops/lib/python3.11/site-packages/ruamel/yaml/main.py", line 451, in load
return constructor.get_single_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/cf-feedstock-ops/lib/python3.11/site-packages/ruamel/yaml/constructor.py", line 116, in get_single_data
return self.construct_document(node)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/cf-feedstock-ops/lib/python3.11/site-packages/ruamel/yaml/constructor.py", line 125, in construct_document
for _dummy in generator:
File "/opt/conda/envs/cf-feedstock-ops/lib/python3.11/site-packages/ruamel/yaml/constructor.py", line 1476, in construct_yaml_map
self.construct_mapping(node, data, deep=True)
File "/opt/conda/envs/cf-feedstock-ops/lib/python3.11/site-packages/ruamel/yaml/constructor.py", line 1365, in construct_mapping
value = self.construct_object(value_node, deep=deep)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/cf-feedstock-ops/lib/python3.11/site-packages/ruamel/yaml/constructor.py", line 147, in construct_object
data = self.construct_non_recursive_object(node)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/cf-feedstock-ops/lib/python3.11/site-packages/ruamel/yaml/constructor.py", line 1[88](https://github.com/conda-forge/conda-forge-webservices/actions/runs/11985697027/job/33417910319#step:5:90), in construct_non_recursive_object
for _dummy in generator:
File "/opt/conda/envs/cf-feedstock-ops/lib/python3.11/site-packages/ruamel/yaml/constructor.py", line 1476, in construct_yaml_map
self.construct_mapping(node, data, deep=True)
File "/opt/conda/envs/cf-feedstock-ops/lib/python3.11/site-packages/ruamel/yaml/constructor.py", line 1366, in construct_mapping
if self.check_mapping_key(node, key_node, maptyp, key, value):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/cf-feedstock-ops/lib/python3.11/site-packages/ruamel/yaml/constructor.py", line 278, in check_mapping_key
raise DuplicateKeyError(*args)
ruamel.yaml.constructor.DuplicateKeyError: while constructing a mapping
in "<unicode string>", line 20, column 3:
number: 0
^ (line: 20)
found duplicate key "string" with value "cpu_py<{ CONDA_PY }}h<{ PKG_HASH }}_<{ mpi_prefix }}_<{ PKG_BUILDNUM }}" (original value: "cuda<{ cuda_compiler_version | replace('.', '') }}py<{ CONDA_PY }}h<{ PKG_HASH }}_<{ mpi_prefix }}_<{ PKG_BUILDNUM }}")
in "<unicode string>", line 27, column 3:
string: cpu_py<{ CONDA_PY }}h<{ ...
^ (line: 27)
Solution to issue cannot be found in the documentation.
Issue
See https://github.com/conda-forge/conda-forge-webservices/actions/runs/11985697027/job/33417910319
Installed packages
Environment info
The text was updated successfully, but these errors were encountered: