snips.sh

 1ERROR: os-release-1.0-r0 do_create_runtime_spdx: Error executing a python function in exec_func_python() autogenerated:
 2
 3The stack trace of python calls that resulted in this exception/failure was:
 4File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
 5     0001:
 6 *** 0002:do_create_runtime_spdx(d)
 7     0003:
 8File: '/mnt/b/yoe/master/sources/poky/meta/classes/create-spdx-2.2.bbclass', lineno: 836, function: do_create_runtime_spdx
 9     0832:                    (dep_spdx_package, dep_package_ref) = dep_package_cache[dep]
10     0833:                else:
11     0834:                    dep_path = oe.sbom.doc_path_by_hashfn(deploy_dir_spdx, package_archs, dep_pkg, dep_hashfn)
12     0835:
13 *** 0836:                    spdx_dep_doc, spdx_dep_sha1 = oe.sbom.read_doc(dep_path)
14     0837:
15     0838:                    for pkg in spdx_dep_doc.packages:
16     0839:                        if pkg.name == dep_pkg:
17     0840:                            dep_spdx_package = pkg
18File: '/mnt/b/yoe/master/sources/poky/meta/lib/oe/sbom.py', lineno: 97, function: read_doc
19     0093:        else:
20     0094:            with fn.open("rb") as f:
21     0095:                yield f
22     0096:
23 *** 0097:    with get_file() as f:
24     0098:        sha1 = hashlib.sha1()
25     0099:        while True:
26     0100:            chunk = f.read(4096)
27     0101:            if not chunk:
28File: '/usr/lib/python3.11/contextlib.py', lineno: 137, function: __enter__
29     0133:        # do not keep args and kwds alive unnecessarily
30     0134:        # they are only needed for recreation, which is not possible anymore
31     0135:        del self.args, self.kwds, self.func
32     0136:        try:
33 *** 0137:            return next(self.gen)
34     0138:        except StopIteration:
35     0139:            raise RuntimeError("generator didn't yield") from None
36     0140:
37     0141:    def __exit__(self, typ, value, traceback):
38File: '/mnt/b/yoe/master/sources/poky/meta/lib/oe/sbom.py', lineno: 94, function: get_file
39     0090:    def get_file():
40     0091:        if isinstance(fn, io.IOBase):
41     0092:            yield fn
42     0093:        else:
43 *** 0094:            with fn.open("rb") as f:
44     0095:                yield f
45     0096:
46     0097:    with get_file() as f:
47     0098:        sha1 = hashlib.sha1()
48File: '/usr/lib/python3.11/pathlib.py', lineno: 1045, function: open
49     1041:        the built-in open() function does.
50     1042:        """
51     1043:        if "b" not in mode:
52     1044:            encoding = io.text_encoding(encoding)
53 *** 1045:        return io.open(self, mode, buffering, encoding, errors, newline)
54     1046:
55     1047:    def read_bytes(self):
56     1048:        """
57     1049:        Open the file in bytes mode, read it, and close the file.
58Exception: FileNotFoundError: [Errno 2] No such file or directory: '/mnt/b/yoe/master/build/tmp/deploy/spdx/by-hash/all/sstate:os-release:all-yoe-linux:1.0:r0:allarch:11:/os-release.spdx.json'
59
60ERROR: Logfile of failure stored in: /mnt/b/yoe/master/build/tmp/work/all-yoe-linux/os-release/1.0/temp/log.do_create_runtime_spdx.96455
61ERROR: Task (/mnt/b/yoe/master/sources/poky/meta/recipes-core/os-release/os-release.bb:do_create_runtime_spdx) failed with exit code '1'