【petalinux 2024.01】petalinux-build时module ‘plnx_vars‘ has no attribute ‘CopyDir‘错误

简介: 【petalinux 2024.01】petalinux-build时module ‘plnx_vars‘ has no attribute ‘CopyDir‘错误

petalinux 2024.01使用过程中问题记录

一、问题描述

在编译的末尾提示错误,具体过程如下。


(pyenv) test@u220402:~/xilinx-qemu-first-run-loc$ petalinux-build


[INFO] Building project


[INFO] Getting Platform info from HW file


[INFO] Silentconfig project


[INFO] Silentconfig rootfs


[INFO] Generating configuration files


[INFO] Generating workspace directory


NOTE: Starting bitbake server…


NOTE: Started PRServer with DBfile: /home/test/work/test/petaLinux/xilinx-qemu-first-run-loc/build/cache/prserv.sqlite3, Address: 127.0.0.1:41915, PID: 96 2206


INFO: Specified workspace already set up, leaving as-is


[INFO] bitbake petalinux-image-minimal


NOTE: Started PRServer with DBfile: /home/test/work/test/petaLinux/xilinx-qemu-first-run-loc/build/cache/prserv.sqlite3, Address: 127.0.0.1:40241, PID: 96 2412


Loading cache: 100% | | ETA: --:–:–


Loaded 0 entries from dependency cache.


Parsing recipes: 87% |##################################################################################################### Parsing recipes: 88% |###################################################################################################### Parsing recipes: 89% |###################################################################################################### Parsing recipes: 90% |###################################################################################################### Parsing recipes: 100% |#######################################################################################| Time: 0:01:50


Parsing of 4468 .bb files complete (0 cached, 4468 parsed). 6417 targets, 379 skipped, 2 masked, 0 errors.


NOTE: Resolving any missing task queue dependencies


NOTE: Fetching uninative binary shim file:///home/test/work/test/petaLinux/xilinx-qemu-first-run-loc/components/yocto/downloa ds/uninative/1c35f09a75c4096749bbe1e009df4e3968cde151424062cf4aa3ed89db22b030/x86_64-nativesdk-libc-4.3.tar.xz;sha256sum=1c35 f09a75c4096749bbe1e009df4e3968cde151424062cf4aa3ed89db22b030 (will check PREMIRRORS first)


WARNING: XSCT has been deprecated. It will still be available for several releases. In the future, it’s recommended to start new projects with SDT workflow.


Initialising tasks: 100% |####################################################################################| Time: 0:00:11


Checking sstate mirror object availability: 100% |############################################################| Time: 0:42:36


Sstate summary: Wanted 1678 Local 0 Mirrors 1509 Missed 169 Current 0 (89% match, 0% complete)


NOTE: Executing Tasks


NOTE: Tasks Summary: Attempted 4563 tasks of which 3848 didn’t need to be rerun and all succeeded.



Summary: There was 1 WARNING message.


[ERROR] module ‘plnx_vars’ has no attribute ‘CopyDir’

二、问题分析

通过分析发现改错误出现在系统编译后,这说明编译本身没有问题。从log看,在编译后,petalinux-build将镜像复制到tftp目录,可以推测错误出现在这个过程。


随后关闭复制弄个,再次编译。

可以正常编译。

相关文章
|
4月前
|
JavaScript Unix Linux
⨯ cannot execute cause=fork/exec...pnpm\bin\pnpm.cjs: %1 is not a valid Win32 application.
⨯ cannot execute cause=fork/exec...pnpm\bin\pnpm.cjs: %1 is not a valid Win32 application.
471 0
|
4月前
|
Linux iOS开发 MacOS
pnpm全局安装报错:Run “pnpm setup“ to create it automatically, or set the global-bin-dir setting, or the PN
pnpm全局安装报错:Run “pnpm setup“ to create it automatically, or set the global-bin-dir setting, or the PN
1558 0
CMake Error: The source “xxx“ does not match the source “yyy“ used to generate cache. Re-run cmake
CMake Error: The source “xxx“ does not match the source “yyy“ used to generate cache. Re-run cmake
725 0
|
Ubuntu Python
pip3 执行错误 No module named 'distutils.cmd'
pip3 执行错误 No module named 'distutils.cmd'
1676 0
|
网络协议 机器人 Python
关于运行robot framework 报错解决方法,ModuleNotFoundError: No module named 'robot'
关于运行robot framework 报错解决方法,ModuleNotFoundError: No module named 'robot'
关于运行robot framework 报错解决方法,ModuleNotFoundError: No module named 'robot'
|
4月前
|
JavaScript 前端开发 编译器
Cmake 中 compiler_depend.ts 文件:解析和使用 C/C++ 预编译头文件
Cmake 中 compiler_depend.ts 文件:解析和使用 C/C++ 预编译头文件
130 1
ou must install signalwire-client-c to build mod_signalwire
ou must install signalwire-client-c to build mod_signalwire
125 0
关于 CMake编译出出现错误“Could not find compiler set in environment variable RC:” 的解决方法
关于 CMake编译出出现错误“Could not find compiler set in environment variable RC:” 的解决方法
关于 CMake编译出出现错误“Could not find compiler set in environment variable RC:” 的解决方法
|
C++ iOS开发
报错解决:Could not build wheels for soxr, which is required to install pyproject.toml-based projects(可用)
链接如下:【金山文档】 1-Microsoft Visual C++ Build Tools。找了好久,才找到正确的解决方案,网上一大堆升级setuptools的方法只对少数人管用。注意,虽然我的这个报错内容有点长,但是我感觉和其它的。如果网页提示登录,可以不用登录,直接下载即可。然后打开镜像ios文件(双击即可)错误是一样的解决方案。文件,打开后安装即可。
2558 1
报错解决:Could not build wheels for soxr, which is required to install pyproject.toml-based projects(可用)
|
自然语言处理
openEuler 打开图形菜单报错:make [1]:‘ [ scripts/i Makefile. host:9: scripts/ kconfig/ lexer. lex.c]错误 127
openEuler 打开图形菜单报错:make [1]:‘ [ scripts/i Makefile. host:9: scripts/ kconfig/ lexer. lex.c]错误 127
324 0