Catkin build 中断后损坏

Posted

技术标签:

【中文标题】Catkin build 中断后损坏【英文标题】:Catkin build corruption after interruption 【发布时间】:2016-07-28 19:45:36 【问题描述】:

catkin build 尚未开始实际构建文件时,我中断了 (Ctrl+C) 的执行。现在,我无法再次运行它,因为某些文件似乎已损坏。在工作区执行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'

我该如何解决这个问题?

【问题讨论】:

【参考方案1】:

我通过删除文件&lt;workspace&gt;/build/.catkin_tools.yaml解决了这个问题。

【讨论】:

以上是关于Catkin build 中断后损坏的主要内容,如果未能解决你的问题,请参考以下文章

Catkin Build 的问题

CMake 错误:catkin_make :::Running 命令运行命令:“/ws/build”中的“make -j4 -l4”

Catkin工作空间 (重点)

ROS Melodic笔记:catkin_make报错Invoking "make cmake_check_build_system" failed

build一个ROS的Package

catkin_simple 的使用