Import easybuild.easyblocks.python for merge script to succeed - #25
Merged
Conversation
boegel
reviewed
Aug 17, 2026
| import yaml | ||
| import hashlib | ||
| # EB 5.4.0 brought in a change that required the import below | ||
| import easybuild.easyblocks.python |
Member
Author
There was a problem hiding this comment.
Traceback (most recent call last):
File "/home/runner/work/api_data/api_data/docs/data/../../scripts/calculate_hashes.py", line 36, in <module>
data = yaml.load(f, Loader=yaml.FullLoader)
File "/cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/lib/python3.13/site-packages/yaml/__init__.py", line 81, in load
return loader.get_single_data()
~~~~~~~~~~~~~~~~~~~~~~^^
File "/cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/lib/python3.13/site-packages/yaml/constructor.py", line 51, in get_single_data
return self.construct_document(node)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "/cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/lib/python3.13/site-packages/yaml/constructor.py", line 60, in construct_document
for dummy in generator:
^^^^^^^^^
File "/cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/lib/python3.13/site-packages/yaml/constructor.py", line 413, in construct_yaml_map
value = self.construct_mapping(node)
File "/cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/lib/python3.13/site-packages/yaml/constructor.py", line 218, in construct_mapping
return super().construct_mapping(node, deep=deep)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/lib/python3.13/site-packages/yaml/constructor.py", line 143, in construct_mapping
value = self.construct_object(value_node, deep=deep)
File "/cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/lib/python3.13/site-packages/yaml/constructor.py", line 102, in construct_object
data = constructor(self, tag_suffix, node)
File "/cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/lib/python3.13/site-packages/yaml/constructor.py", line 570, in construct_python_name
return self.find_python_name(suffix, node.start_mark)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "/cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/lib/python3.13/site-packages/yaml/constructor.py", line 556, in find_python_name
raise ConstructorError("while constructing a Python object", mark,
"module %r is not imported" % module_name, mark)
yaml.constructor.ConstructorError: while constructing a Python object
module 'easybuild.easyblocks.python' is not imported
in "eessi_software_metadata-riscv.yaml", line 12123, column 23
It's because the yaml now has a line like
exts_formatter: !!python/name:easybuild.easyblocks.python.partial_normalize_pip ''
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.