Jiter 0.4.1 pypi package failed to build in yocto

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


The build issues you’re encountering with the Jiter 0.4.1 package in Yocto are primarily due to the unresolved pyo3 dependency. Here are some steps you can take to address these issues:

  1. Specify pyo3 Correctly: In your Cargo.toml files, ensure that the pyo3 dependency is specified with a valid version or path. It seems you have already specified a version for pyo3 in the Cargo.toml files, but you should double-check that the version is correct and available in the registry.

  2. Check Registry Availability: Verify that the pyo3 package version you are using is available in the crates.io registry. You can do this by visiting the crates.io website and searching for pyo3 to ensure the version 0.21.0 is available.

  3. Review Build Logs: The build logs indicate warnings about the pyo3 dependency being specified without a local path, Git repository, or version. Make sure that all instances of pyo3 in your Cargo.toml files are correctly specified with a version.

  4. Update Recipe: Ensure that your Yocto recipe is correctly set up to handle Rust dependencies. You might need to adjust the recipe to ensure it can fetch and build Rust dependencies properly.

  5. Optional Features: Since pyo3 is marked as optional in your Cargo.toml, ensure that the features that require pyo3 are enabled if they are necessary for your build.

By addressing these points, you should be able to resolve the build issues related to the pyo3 dependency. If the problem persists, consider reaching out to the maintainers of the Jiter package or the Yocto community for further assistance.

Please, also check if these links can help you solve your problem:

How to Bitbake Jitter Package with Yocto Image Using Rust and Cargo.