I got an error stating that "python3-pytest contains reference to the build host HOME directory" when attempting the Yocto Project Quick Build. What do I do?
Hi. I am a new user of Yocto Project, and have limited experience with embedded linux in general. I tried to start off by building the Yocto Project Quick Build ( https://docs.yoctoproject.org/brief-yoctoprojectqs/index.html ) , following the same commands as the tutorial, but when I try to do so I get the following errors:
Quoted 18 lines
ERROR: python3-pytest-9.1.0-r0
do_package_qa: QA Issue: File/usr/lib/python3.14/site-packages/_pytest/main.pyin package
python3-pytest contains reference to the build host HOME directory
[buildpaths]
ERROR: python3-pytest-9.1.0-r0do_package_qa: QA Issue: File/usr/lib/python3.14/site-packages/_pytest/assertion/rewrite.pyin package
python3-pytest contains reference to the build host HOME directory
[buildpaths]
ERROR: python3-pytest-9.1.0-r0do_package_qa: QA Issue: File/usr/lib/python3.14/site-packages/_pytest/__pycache__/main.cpython-314.pyc
in package python3-pytest contains reference to the build host HOME
directory [buildpaths]
ERROR: python3-pytest-9.1.0-r0do_package_qa: Fatal QA errors were found,
failing task.
ERROR: Logfile of failure stored in:/home/user/asteroid/bitbake-builds/poky-master/build/tmp/work/x86-64-v3-poky-linux/python3-pytest/9.1.0/temp/log.do_package_qa.1216269
Quoted 4 lines
ERROR: Task (/home/user/asteroid/bitbake-builds/poky-master/layers/openembedded-core/meta/recipes-devtools/python/python3-pytest_9.1.0.bb:do_package_qa) failed with exit code '1'
What should I do to fix this?
I am Using Debian 13.5.
Quoted 9 lines · On Sat, 27 Jun 2026 at 02:44, 99thornroad via lists.yoctoproject.org…
ERROR: python3-pytest-9.1.0-r0
do_package_qa: QA Issue: File/usr/lib/python3.14/site-packages/_pytest/main.pyin package python3-pytest contains reference to the build host HOME directory [buildpaths]
ERROR: python3-pytest-9.1.0-r0do_package_qa: QA Issue: File/usr/lib/python3.14/site-packages/_pytest/assertion/rewrite.pyin package python3-pytest contains reference to the build host HOME directory [buildpaths]
ERROR: python3-pytest-9.1.0-r0do_package_qa: QA Issue: File/usr/lib/python3.14/site-packages/_pytest/__pycache__/main.cpython-314.pycin package python3-pytest contains reference to the build host HOME directory [buildpaths]
ERROR: python3-pytest-9.1.0-r0do_package_qa: Fatal QA errors were found, failing task.
ERROR: Logfile of failure stored in:/home/user/asteroid/bitbake-builds/poky-master/build/tmp/work/x86-64-v3-poky-linux/python3-pytest/9.1.0/temp/log.do_package_qa.1216269
ERROR: Task (/home/user/asteroid/bitbake-builds/poky-master/layers/openembedded-core/meta/recipes-devtools/python/python3-pytest_9.1.0.bb:do_package_qa) failed with exit code '1'What should I do to fix this?
I am Using Debian 13.5.
This is unfortunately a false positive in the QA, as pytest upstream hardcodes '/home/user' into the installed files.
You can work around it by adding to conf/local.conf:
INSANE_SKIP:pn-python3-pytest = "buildpaths"
but we need to add ability to specify exceptions in the QA test.
Alex