python - ROS Kinetic Installation Error on OSX Mojave
问题描述
During the process of installing ROS kinetic on my mac. I've been trying to resolve dependencies using the following commands:
$ cd ~/ros_catkin_ws
$ rosinstall_generator ros_comm --rosdistro kinetic --deps --wet-only --tar > kinetic-ros_comm-wet.rosinstall
$ wstool init -j8 src kinetic-ros_comm-wet.rosinstall
$ rosdep install --from-paths src --ignore-src --rosdistro kinetic -y # resolves dependancies
I get the following error:
Error: No available formula with the name "gtest"
ERROR: Rosdep experienced an internal error.
Please go to the rosdep page [1] and file a bug report with the message below.
[1] : http://www.ros.org/wiki/rosdep
rosdep version: 0.13.0
Bad installer [homebrew]: Error while parsing brew info for 'gtest'
* Output of `brew info gtest --json=v1`:
* Error while parsing:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/rosdep2/platforms/osx.py", line 203, in is_installed
pkg_info = json.loads(std_out)
File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
I've tried uninstalling and reinstalling several things, but I'm not sure what the actual issue is and how I can fix this.
解决方案
正如指南中所指定的,Google Mock与 OS X 不兼容,因此您应该跳过它添加--skip-keys google-mock
到rosdep install
推荐阅读
- wordpress - Yoast 和 Woocommerce (WordPress) 之间的冲突
- javascript - 反应导航 tabBarVisible:false 不适用于 TabNavigator 内的 StackNavigator
- spring-cloud-netflix - 在 Spring 5 WebClient 上设置请求特定读取超时的正确方法
- segmentation-fault - 如何使用 jpegoptim 多线程,跳过失败
- javascript - 在mapbox gl js中突出显示(更改颜色)道路、人行道或自行车道
- c# - 为什么设置 comboBox.SelectedIndex 无法更改 ComboBox 的可编辑部分中显示的内容?
- python - 如何让 shell 在 Excel 上的 VBA 上保持打开状态?
- excel - 刷新 Excel 中的所有 Access 数据连接取消保护和保护工作簿错误
- visual-studio - TFS:在两个分支之间合并 .csproj 文件,两个分支之间有项目引用
- asp.net-mvc - 如何在 AMP 和 .NET 中处理 IF 语句