linux - 在 exec_python_func() 中执行 python 函数时出错
问题描述
通过构建 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
解决方案
推荐阅读
- rust - 尝试访问内部值时,Arc Mutex 不满足调试特征
- python - 有没有办法在不牺牲列名和列顺序的情况下将所有 nan 值移动到我的 pandas 数据框的底部?
- flutter - 以数组形式发布数据请求
- javascript - 为什么`this`不与function.apply一起传递?
- kotlin - 如何使用 kotlin 协程优化这个用 Anko 编写的异步代码
- python - 如何在主对象上使用 __dict__ 获取子对象的字典?
- python - Facebook Marketing API - 如何处理通过广告系列 ID 检索*所有*广告集的速率限制?
- ruby-on-rails - 如何根据 URL 在 Rails 中更改 SameSite cookie 而不会被注销
- python - 是否可以从多个 pdf 文档中提取一章?
- powerbi - 在几分钟内找到“今天的持续时间”的公式