Install ROS Kinetic on MacOS

asked 2018-02-23 23:59:13 -0500

jizhe gravatar image

I'm installing ROS Kinetic on MacOS Sierra 10.12.6 under a seperate environment under Python Anaconda distribution.

Here is my python version(my seperate python environment in Anaconda is called "ros-kinetic"):

(ros-kinetic)  jizhe@jizhedeMacBook-Pro  ~/ros_catkin_ws  python --version
Python 3.6.4 :: Anaconda, Inc.

I followed the guide: .

When I execute the rosdep install command, I got the following error:

(ros-kinetic)  jizhe@jizhedeMacBook-Pro ~/ros_catkin_ws  rosdep install --from-paths src --ignore-src --rosdistro kinetic -y
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
actionlib: No definition of [python-wxtools] for OS [osx]
catkin: No definition of [google-mock] for OS [osx]
roslisp: No definition of [google-mock] for OS [osx]

Obviously, there is something wrong with the package python-wxtools and google-mock.

I've already install the wxpython via brew install wxpython, and here is the wxpython info:

(ros-kinetic)  jizhe@jizhedeMacBook-Pro  ~/ros_catkin_ws  brew info wxpython
wxpython: stable (bottled)
Python bindings for wxWidgets
/usr/local/Cellar/wxpython/ (1,108 files, 37.9MB) *
  Poured from bottle on 2018-02-24 at 03:56:21
==> Dependencies
Required: wxmac ✔
==> Caveats
Python modules have been installed and Homebrew's site-packages is not
in your Python sys.path, so you will not be able to import the modules
this formula installed. If you plan to develop with these modules,
please run:
mkdir -p /Users/jizhe/Library/Python/2.7/lib/python/site-packages
  echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/jizhe/Library/Python/2.7/lib/python/site-packages/homebrew.pth

And I've already run the command:

$ mkdir -p ~/Library/Python/2.7/lib/python/site-packages
$ echo "$(brew --prefix)/lib/python2.7/site-packages" >> ~/Library/Python/2.7/lib/python/site-packages/homebrew.pth

So, what's wrong with the package google-mock and python-wxtools, how can I solve this problem?

edit retag flag offensive close merge delete


I also had the same problem with google-mock, you'll have more information here:

ejalaa12 gravatar image ejalaa12  ( 2018-02-24 19:52:51 -0500 )edit

@ejalaa12, I just add --skip-keys to skip google mock and python-wxtools. For python-wxtools, I'm very sure I've already installed it. For google mock, I found the package yaml-cpp will install gtest later. However, the process of installation is not finished yet. Thanks for your reply.

jizhe gravatar image jizhe  ( 2018-02-25 21:30:17 -0500 )edit