Khang Le Truong

fsl-image-validation-imx-1.0-r0 do_rootfs: Could not invoke dnf

Discussion created by Khang Le Truong on Apr 6, 2020
Latest reply on Apr 13, 2020 by karan gajjar

Hello experts,

 

I'm building the fsl-image-validation-imx image using fsl-yocto-L4.9.123_2.3.0_mx8mm under Ubuntu-16.04 :

 

$ repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-rocko -m imx-4.9.123-2.3.0-8mm_ga.xml
$ repo sync

$ bitbake fsl-image-validation-imx

...

And I got following error :

ERROR: fsl-image-validation-imx-1.0-r0 do_rootfs: Could not invoke dnf. Command '/home/nxp/Workspace/Ref/Platforms/iMX/Common/imx-yocto-bsp/build-wayland/tmp/work/imx8mmevk-poky-linux/fsl-image-validation-imx/1.0-r0/recipe-sysroot-native/usr/bin/dnf -y -c /home/nxp/Workspace/Ref/Platforms/iMX/Common/imx-yocto-bsp/build-wayland/tmp/work/imx8mmevk-poky-linux/fsl-image-validation-imx/1.0-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/home/nxp/Workspace/Ref/Platforms/iMX/Common/imx-yocto-bsp/build-wayland/tmp/work/imx8mmevk-poky-linux/fsl-image-validation-imx/1.0-r0/rootfs/etc/yum.repos.d --repofrompath=oe-repo,/home/nxp/Workspace/Ref/Platforms/iMX/Common/imx-yocto-bsp/build-wayland/tmp/work/imx8mmevk-poky-linux/fsl-image-validation-imx/1.0-r0/oe-rootfs-repo --installroot=/home/nxp/Workspace/Ref/Platforms/iMX/Common/imx-yocto-bsp/build-wayland/tmp/work/imx8mmevk-poky-linux/fsl-image-validation-imx/1.0-r0/rootfs --setopt=logdir=/home/nxp/Workspace/Ref/Platforms/iMX/Common/imx-yocto-bsp/build-wayland/tmp/work/imx8mmevk-poky-linux/fsl-image-validation-imx/1.0-r0/temp makecache --refresh' returned 1:
/home/nxp/.local/lib/python3.5/site-packages/dnf.py:15: UserWarning: The DNF Python API is not currently available via PyPI.

Please install it with your distro package manager (typically called
'python2-dnf' or 'python3-dnf'), and ensure that any virtual environments
needing the API are configured to be able to see the system site packages
directory.

  warnings.warn(warning_msg)
Traceback (most recent call last):
  File "/home/nxp/Workspace/Ref/Platforms/iMX/Common/imx-yocto-bsp/build-wayland/tmp/work/imx8mmevk-poky-linux/fsl-image-validation-imx/1.0-r0/recipe-sysroot-native/usr/bin/dnf.real", line 57, in <module>
    from dnf.cli import main
ImportError: No module named 'dnf.cli'; 'dnf' is not a package

ERROR: fsl-image-validation-imx-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /home/nxp/Workspace/Ref/Platforms/iMX/Common/imx-yocto-bsp/build-wayland/tmp/work/imx8mmevk-poky-linux/fsl-image-validation-imx/1.0-r0/temp/log.do_rootfs.22789
ERROR: Task (/home/nxp/Workspace/Ref/Platforms/iMX/Common/imx-yocto-bsp/sources/meta-fsl-bsp-release/imx/meta-sdk/recipes-fsl/images/fsl-image-validation-imx.bb:do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 6339 tasks of which 6338 didn't need to be rerun and 1 failed.

 

Do you have any suggestion, please ?

 

Thanks and best regards,

Khang

Outcomes