栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

devtool: unset

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

devtool: unset

问题

在 Ubuntu 20.04.1 LTS 上进行编译Yocto时报错,出现如下错误:

bb.data_smart.ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; unset _PYTHON_SYSCONFIGDATA_NAME; export PATH="/home/test/embeded/rockpis/yocto/poky/scripts:/home/test/embeded/rockpis/yocto/poky/build/tmp/work/aarch64-poky-linux/create-ap/git-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/home/test/embeded/rockpis/yocto/poky/build/tmp/work/aarch64-poky-linux/create-ap/git-r0/recipe-sysroot/usr/bin/crossscripts:/home/test/embeded/rockpis/yocto/poky/build/tmp/work/aarch64-poky-linux/create-ap/git-r0/recipe-sysroot-native/usr/sbin:/home/test/embeded/rockpis/yocto/poky/build/tmp/work/aarch64-poky-linux/create-ap/git-r0/recipe-sysroot-native/usr/bin:/home/test/embeded/rockpis/yocto/poky/build/tmp/work/aarch64-poky-linux/create-ap/git-r0/recipe-sysroot-native/sbin:/home/test/embeded/rockpis/yocto/poky/build/tmp/work/aarch64-poky-linux/create-ap/git-r0/recipe-sysroot-native/bin:/home/test/embeded/rockpis/yocto/poky/bitbake/bin:/home/test/embeded/rockpis/yocto/poky/build/tmp/hosttools"; export HOME="/home/test"; git -c core.fsyncobjectfiles=0 ls-remote https://github.com/oblique/create_ap.git  failed with exit code 128, output:
fatal: unable to access 'https://github.com/oblique/create_ap.git/': GnuTLS recv error (-110): The TLS connection was non-properly terminated.



Summary: There were 3 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
解决方法

修改meta/classes/devtool-source.bbclass文件,如下:

 DEVTOOL_TEMPDIR ?= ""
 DEVTOOL_PATCH_SRCDIR = "${DEVTOOL_TEMPDIR}/patchworkdir"
 
# host Python fails to import correct _sysconfigdata if this variable is set
_PYTHON_SYSCONFIGDATA_NAME[unexport] = "1"
 
 python() {
     tempdir = d.getVar('DEVTOOL_TEMPDIR')
参考

Openembeded解决方法

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/725736.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号