linux - 在 exec_python_func() 中执行 python 函数时出错

标签 linux yocto

通过构建 Yocto 图像,我在填充 Yocto SDK 期间遇到了这个问题。有人知道在哪里以及如何修复它吗?

ERROR: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:extend_recipe_sysroot(d)
     0003:
File: '/yocto/warrior/sources/poky/meta/classes/staging.bbclass', lineno: 557, function: extend_recipe_sysroot
     0553:                    dest = newmanifest[l]
     0554:                    if l.endswith("/"):
     0555:                        staging_copydir(l, targetdir, dest, seendirs)
     0556:                        continue
 *** 0557:                    staging_copyfile(l, targetdir, dest, postinsts, seendirs)
     0558:
     0559:    bb.note("Installed into sysroot: %s" % str(msg_adding))
     0560:    bb.note("Skipping as already exists in sysroot: %s" % str(msg_exists))
     0561:
File: '/yocto/warrior/sources/poky/meta/classes/staging.bbclass', lineno: 151, function: staging_copyfile
     0147:        os.symlink(linkto, dest)
     0148:        #bb.warn(c)
     0149:    else:
     0150:        try:
 *** 0151:            os.link(c, dest)
     0152:        except OSError as err:
     0153:            if err.errno == errno.EXDEV:
     0154:                bb.utils.copyfile(c, dest)
     0155:            else:
Exception: FileExistsError: [Errno 17] File exists: '/yocto/warrior/build-xwayland/tmp/sysroots-components/aarch64/tensorflow/usr/include/tensorflow/contrib/lite/string_util.h' -> '/yocto/warrior/build-xwayland/tmp/work/imx8qmmek-poky-linux/fsl-image-qt5/1.0-r0/recipe-sysroot/usr/include/tensorflow/contrib/lite/string_util.h'

ERROR: [Errno 17] File exists: '/yocto/warrior/build-xwayland/tmp/sysroots-components/aarch64/tensorflow/usr/include/tensorflow/contrib/lite/string_util.h' -> '/media/nxa18908/work/yocto/warrior/build-xwayland/tmp/work/imx8qmmek-poky-linux/fsl-image-qt5/1.0-r0/recipe-sysroot/usr/include/tensorflow/contrib/lite/string_util.h'
DEBUG: Python function extend_recipe_sysroot finished
ERROR: Function failed: extend_recipe_sysroot

它不喜欢重复的文件

ERROR: fsl-image-qt5-1.0-r0 do_sdk_depends: The file /usr/include/tensorflow/contrib/lite/string_util.h is installed by both tensorflow and tensorflow-lite, aborting

最佳答案

在bitbake_build中移除/删除tmp-glibc,然后用bitbake构建成功

关于linux - 在 exec_python_func() 中执行 python 函数时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56975106/

相关文章:

linux - Linux 中的性能比较

linux - 使用 let 命令的多个间接变量 (GNU/Linux Bash)

c++ - 无法使用 Yocto 为 Windows 生成 SDK

linux - 如何检查区域设置是否为 UTF-8?

xml - Bash 脚本查找包含特定数字范围的文件名

python - Raspbian 在桌面加载 Python 脚本后从终端窗口运行 4 个命令?

python - crontab 和脚本

yocto - 使用 yocto 的 softfp 工具链配置

.net-core - 如何将正确的 libssl 版本包含到 yocto-build 中以运行 .net-core 应用程序?

ubuntu - 如何清理我的网络服务器(Ubuntu 16.04)?