DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are ['/srv/pokybuild/yocto-worker/buildtools/build/meta/recipes-devtools/quilt/quilt-native_0.69.bb:do_populate_sysroot', 'virtual:native:/srv/pokybuild/yocto-worker/buildtools/build/meta/recipes-devtools/patchelf/patchelf_0.18.0.bb:do_populate_sysroot', 'virtual:native:/srv/pokybuild/yocto-worker/buildtools/build/meta/recipes-devtools/python/python3_3.13.7.bb:do_populate_sysroot', 'virtual:native:/srv/pokybuild/yocto-worker/buildtools/build/meta/recipes-devtools/rust/rust-llvm_1.90.0.bb:do_populate_sysroot', 'virtual:native:/srv/pokybuild/yocto-worker/buildtools/build/meta/recipes-extended/xz/xz_5.8.1.bb:do_populate_sysroot']
NOTE: Installed into sysroot: []
NOTE: Skipping as already exists in sysroot: ['gettext-minimal-native', 'cmake-native', 'libtool-native', 'quilt-native', 'texinfo-dummy-native', 'openssl-native', 'expat-native', 'ncurses-native', 'util-linux-libuuid-native', 'zlib-native', 'libedit-native', 'make-native', 'patchelf-native', 'perl-native', 'python3-native', 'rust-llvm-native', 'bzip2-native', 'xz-native', 'zstd-native', 'gdbm-native', 'libffi-native', 'sqlite3-native']
DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Executing python function do_configure
DEBUG: Executing shell function setup_cargo_environment
DEBUG: Shell function setup_cargo_environment finished
DEBUG: Python function do_configure finished
DEBUG: Executing python function do_qa_configure
DEBUG: Python function do_qa_configure finished
DEBUG: Executing python function cargo_common_do_patch_paths
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:cargo_common_do_patch_paths(d)
     0003:
File: '/srv/pokybuild/yocto-worker/buildtools/build/meta/classes-recipe/cargo_common.bbclass', lineno: 182, function: cargo_common_do_patch_paths
     0178:    lockfile = d.getVar("CARGO_LOCK_PATH")
     0179:    if not os.path.exists(lockfile):
     0180:        bb.fatal(f"{lockfile} file doesn't exist")
     0181:
 *** 0182:    lockfile = load_toml_file(lockfile)
     0183:
     0184:    # key is the repo url, value is a boolean, which is used later
     0185:    # to indicate if there is a matching repository in SRC_URI also
     0186:    lockfile_git_repos = {}
File: '/srv/pokybuild/yocto-worker/buildtools/build/meta/classes-recipe/cargo_common.bbclass', lineno: 137, function: load_toml_file
     0133:        cargo_toml_path = os.path.join(path, 'Cargo.toml')
     0134:        return os.path.exists(cargo_toml_path)
     0135:
     0136:    def load_toml_file(toml_path):
 *** 0137:        import tomllib
     0138:        with open(toml_path, 'rb') as f:
     0139:            toml = tomllib.load(f)
     0140:        return toml
     0141:
Exception: ModuleNotFoundError: No module named 'tomllib'

DEBUG: Python function cargo_common_do_patch_paths finished

Error details

Submitted on:
05/10/25 07:34
Error type:
Recipe
Task:
do_configure
Recipe:
rust-native
Recipe version:
1.90.0-r0
Machine:
qemux86-64
Distro:
poky
Build system:
x86_64-linux
Target system:
x86_64-poky-linux
Host distro:
debian-11/debian-11
Branch:
mathieu/master-next
Commit:
2d72a88f8bbe950921ed892db00413e8003b4785
Build:
#218017
Submitter:
yp-ab-debian11-vk-3
Link back:
https://autobuilder.yoctoproject.org/valkyrie/#/builders/43/builds/2554
Similar errors:
3
Open a bug