DEBUG: Executing python function sstate_task_prefunc
DEBUG: Python function sstate_task_prefunc finished
DEBUG: Executing python function do_create_runtime_spdx
DEBUG: Executing python function read_subpackage_metadata
DEBUG: Python function read_subpackage_metadata finished
ERROR: Error executing a python function in exec_func_python() autogenerated:
The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:do_create_runtime_spdx(d)
0003:
File: '/home/pokybuild/yocto-worker/no-x11/build/meta/classes/create-spdx-2.2.bbclass', lineno: 792, function: do_create_runtime_spdx
0788: continue
0789:
0790: pkg_spdx_path = oe.sbom.doc_path(deploy_dir_spdx, pkg_name, pkg_arch, "packages")
0791:
*** 0792: package_doc, package_doc_sha1 = oe.sbom.read_doc(pkg_spdx_path)
0793:
0794: for p in package_doc.packages:
0795: if p.name == pkg_name:
0796: spdx_package = p
File: '/home/pokybuild/yocto-worker/no-x11/build/meta/lib/oe/sbom.py', lineno: 109, function: read_doc
0105: else:
0106: with fn.open("rb") as f:
0107: yield f
0108:
*** 0109: with get_file() as f:
0110: sha1 = hashlib.sha1()
0111: while True:
0112: chunk = f.read(4096)
0113: if not chunk:
File: 'TOPDIRtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.12/contextlib.py', lineno: 137, function: __enter__
0133: # do not keep args and kwds alive unnecessarily
0134: # they are only needed for recreation, which is not possible anymore
0135: del self.args, self.kwds, self.func
0136: try:
*** 0137: return next(self.gen)
0138: except StopIteration:
0139: raise RuntimeError("generator didn't yield") from None
0140:
0141: def __exit__(self, typ, value, traceback):
File: '/home/pokybuild/yocto-worker/no-x11/build/meta/lib/oe/sbom.py', lineno: 106, function: get_file
0102: def get_file():
0103: if isinstance(fn, io.IOBase):
0104: yield fn
0105: else:
*** 0106: with fn.open("rb") as f:
0107: yield f
0108:
0109: with get_file() as f:
0110: sha1 = hashlib.sha1()
File: 'TOPDIRtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.12/pathlib.py', lineno: 1013, function: open
1009: the built-in open() function does.
1010: """
1011: if "b" not in mode:
1012: encoding = io.text_encoding(encoding)
*** 1013: return io.open(self, mode, buffering, encoding, errors, newline)
1014:
1015: def read_bytes(self):
1016: """
1017: Open the file in bytes mode, read it, and close the file.
Exception: FileNotFoundError: [Errno 2] No such file or directory: 'TOPDIR/tmp/deploy/spdx/core2-64/packages/guards-doc.spdx.json'
DEBUG: Python function do_create_runtime_spdx finished