使用this guide在BitBake中迈出第一步,直到运行bitbake world
时,安装程序才能正常运行-
WARNING: python should use 4 spaces indentation, but found tabs in base.bbclass, line 41
....
WARNING: python should use 4 spaces indentation, but found tabs in base.bbclass, line 64
Parsing recipes: 100% |###########################################################################################################################################################################| Time: 0:00:00
Parsing of 1 .bb files complete (0 cached, 1 parsed). 1 targets, 0 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
ERROR: An uncaught exception occurred in runqueue################################################### | ETA: 0:00:00
Traceback (most recent call last):
File "/home/ubuntu/bitbake/lib/bb/runqueue.py", line 1508, in RunQueue.execute_runqueue():
try:
> return self._execute_runqueue()
except bb.runqueue.TaskFailure:
File "/home/ubuntu/bitbake/lib/bb/runqueue.py", line 1428, in RunQueue._execute_runqueue():
[43, 967, 4, 3, 1, 5, 3, 7, 13, 1, 2, 1, 1, 246, 35, 1, 38, 1, 35, 2, 338, 204, 142, 3, 3, 37, 244])
> if self.rqdata.prepare() == 0:
self.state = runQueueComplete
File "/home/ubuntu/bitbake/lib/bb/runqueue.py", line 1164, in RunQueueData.prepare():
todeal.remove(tid)
> self.prepare_task_hash(tid)
File "/home/ubuntu/bitbake/lib/bb/runqueue.py", line 1177, in RunQueueData.prepare_task_hash(tid='/home/ubuntu/Poky/poky/meta-tutorial/recipes-tutorial/first/first_0.1.bb:do_build'):
self.runtaskentries[tid].hash = bb.parse.siggen.get_taskhash(taskfn, taskname, procdep, self.dataCaches[mc])
> self.runtaskentries[tid].unihash = bb.parse.siggen.get_unihash(taskfn + "." + taskname)
File "/home/ubuntu/bitbake/lib/bb/siggen.py", line 45, in SignatureGenerator.get_unihash(task='/home/ubuntu/Poky/poky/meta-tutorial/recipes-tutorial/first/first_0.1.bb.do_build'):
def get_unihash(self, task):
> return self.taskhash[task]
KeyError: '/home/ubuntu/Poky/poky/meta-tutorial/recipes-tutorial/first/first_0.1.bb.do_build'
Summary: There were 13 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
是的-我从github上获取了最新的BitBake:
bitbake --version
BitBake Build Tool Core version 1.40.0
我的python代码怎么了?
答案 0 :(得分:0)
教程代码已损坏。 bitbake.conf存储在
中ch04/meta-tutorial/conf/bitbake.conf
但属于
ch04/build/conf/bitbake.conf
将文件移动到该位置即可
我打开了一个问题:https://bitbucket.org/a4z/bitbakeguide/issues/17/bitbakeconf-stored-in-the-wrong-place
答案 1 :(得分:0)
我正面临着完全相同的问题,但由于bitbake版本终于找到了它。
如果您从https://github.com/openembedded/bitbake克隆bitbake,则可以签出到早期版本:
git checkout标签/1.26.0 -b 1.26.0
然后问题解决了。
答案 2 :(得分:0)
似乎使用BB_SIGNATURE_HANDLER noop(默认情况下)
我通过在meta-tutorial / conf / bitbake.conf中添加BB_SIGNATURE_HANDLER定义来修复此错误
BB_SIGNATURE_HANDLER ?= "basichash"