rosdep not properly installed

asked 2017-07-18 12:57:56 -0500

pitosalas gravatar image

This is probably my own newness with Python. Please help me get unstuck?

From the Mac OS X install instructions (I know they are not supported) I enter:

sudo -H python -m pip install -U wstool setuptools rosdep rosinstall rosinstall_generator rospkg catkin-pkg Distribute sphinx

I get a long list of "requirement already up to date" messages, for example:

Requirement already up-to-date: rosdep in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages

Now I do:

sudo -H rosdep init

Which returns "command not found". This is not surprising because rosdep (or any of the others) are not on the path, but they are installed properly, I think. I am confused because I don't know what step I missed which was supposed to put that script (and all the others) on the path.

edit retag flag offensive close merge delete

Comments

Did you try this?

$ export PYTHONPATH="/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages:${PYTHONPATH}"
$ sudo -H rosdep init
allenh1 gravatar imageallenh1 ( 2017-07-18 13:04:05 -0500 )edit

I hadn't tried that, but anyway, that doesn't add anything to the PATH which is what is examined when I try to launch rosdep from bash. My question is what would normally be adding to the PATH?

pitosalas gravatar imagepitosalas ( 2017-07-18 13:25:15 -0500 )edit

Did you source ~/ros_catkin_ws/install_isolated/setup.bash? If so, could you show us the contents of your PATH before and after your source that file?

allenh1 gravatar imageallenh1 ( 2017-07-18 17:10:32 -0500 )edit

This succeeds:

$ sudo -H python -m pip install -U wstool setuptools rosdep rosinstall rosinstall_generator rospkg catkin-pkg Distribute sphinx

But this fails:

$ wstool init -j8 src kinetic-desktop-wet.rosinstall bash: wstool: command not found

Full trace: https://pastebin.com/raw/TREJETa3

pitosalas gravatar imagepitosalas ( 2017-07-18 18:50:58 -0500 )edit

Could you post the contents of your PYTHONPATH?

allenh1 gravatar imageallenh1 ( 2017-07-18 19:08:46 -0500 )edit

Its not assigned to anything! But would that give me a "command not found" from bash?

pitosalas gravatar imagepitosalas ( 2017-07-18 19:10:56 -0500 )edit

Depends -- I don't know how OS X handles python, but on Gentoo the source of frustration is frequently the python executor not knowing where to find the modules.

That said, the closer I look at your output, the more confused I become. What does which rosinstall say?

allenh1 gravatar imageallenh1 ( 2017-07-18 19:19:36 -0500 )edit