在y中添加metajava时发生python错误

2024-09-28 23:38:24 发布

您现在位置:Python中文网/ 问答频道 /正文

当我在yocto2.1上编译metajava时,出现了以下错误。在

在自动生成的exec_python_func()中执行python函数时出错:

导致此异常/失败的python调用的堆栈跟踪是:

File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:install_relative_symlinks(d)
     0003:
File: '/home/kishore/balaji/project/chemito/toaster/poky/_toaster_clones/_git___git.yoctoproject.org_meta-java_krogoth/classes/relative_symlinks.bbclass', lineno: 4, function: install_relative_symlinks
     0001:do_install[postfuncs] += "install_relative_symlinks"
     0002:
     0003:python install_relative_symlinks () {
 *** 0004:    oe.path.replace_absolute_symlinks(d.getVar('D'), d)
     0005:}
Exception: AttributeError: 'module' object has no attribute 'replace_absolute_symlinks'

Tags: installgit错误functionreplacefileexecmodule
1条回答
网友
1楼 · 发布于 2024-09-28 23:38:24

如果您使用的是yocto2.1(krooth),那么您需要使用metajava的krooth分支。metajava的master分支可以并且确实使用了只在oe核心master中的函数(例如oe.path.replace“绝对”符号链接). 在

相关问题 更多 >