我没有开始实际构建文件时中断(Ctrl + C)catkin build
执行。现在,我无法再次运行它,因为某些文件似乎已损坏。我在工作区执行catkin build
时出现此错误:
$ catkin build
Traceback (most recent call last):
File "/usr/local/bin/catkin", line 9, in <module>
load_entry_point('catkin-tools', 'console_scripts', 'catkin')()
File "/usr/local/lib/python2.7/dist-packages/catkin_tools/commands/catkin.py", line 258, in main
catkin_main(sysargs)
File "/usr/local/lib/python2.7/dist-packages/catkin_tools/commands/catkin.py", line 253, in catkin_main
sys.exit(args.main(args) or 0)
File "/usr/local/lib/python2.7/dist-packages/catkin_tools/verbs/catkin_build/cli.py", line 418, in main
summarize_build=opts.summarize # Can be True, False, or None
File "/usr/local/lib/python2.7/dist-packages/catkin_tools/verbs/catkin_build/build.py", line 245, in build_isolated_workspace
for (k, v) in existing_buildspace_marker_data.items():
AttributeError: 'NoneType' object has no attribute 'items'
我该如何解决这个问题?
答案 0 :(得分:2)
我通过删除文件<workspace>/build/.catkin_tools.yaml
解决了这个问题。