ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A answers.ros.org
Ask Your Question
1

rosdep does not want to install pip packages

asked 2015-04-15 06:08:21 -0600

Stephan gravatar image

updated 2015-04-15 08:00:45 -0600

When I have a package with a <run_depend> on a python pip package, e.g. python-fysom - which is defined here - rosdep does not want to install it:

$ rosdep install --from-paths . -v
...
resolve_all: resource [my_package] requires rosdep keys [rospy, message_generation, std_msgs, catkin, python-fysom, rospy, std_msgs, message_runtime]
loading view [*default*] with rospkg loader
resolution: pip [fysom]
uninstalled: []
All system dependencies have been satisified

fysom is not installed:

$ pip uninstall fysom
Cannot uninstall requirement fysom, not installed

Am I doing it wrong or is that a bug in rosdep?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2015-04-15 06:32:39 -0600

gvdhoorn gravatar image

updated 2015-04-16 07:58:19 -0600

rosdep install --from-paths . --simulate -v

Is the --simulate just there for testing, or are you actually trying to install things using that line? From the rosdep install help:

 -s, --simulate        Simulate install

So it won't actually install anything, but only print out what it would do without --simulate.

Remove that option and try again.


Edit:

Sorry for the confusion, the error is the same without --simulate, I removed it from the question.

I cannot reproduce this on a Precise/Hydro installation with a skeleton pkg that contained just a manifest with a <run_depend>python-fysom</run_depend> in it. Running rosdep install .. on the workspace resulted in pip being invoked, and python-fysom being installed.

Can you try to reinitialise the rosdep cache using rosdep update and then try again?

In all cases: please update your question with information on your Linux and ROS distribution (name, version), as well as perhaps the pkg that you are running rosdep against. The OS name identifiers and supported package managers section of the rosdep YAML format page seems to suggest pip is only available on Ubuntu (and probably derivatives).

edit flag offensive delete link more

Comments

Sorry for the confusion, the error is the same without --simulate, I removed it from the question.

Stephan gravatar imageStephan ( 2015-04-16 07:17:47 -0600 )edit
0

answered 2015-09-03 16:25:45 -0600

peterpolidoro gravatar image

I have the same problem on a Trusty/Jade installation. rosdep claims all system dependencies have been satisfied, but the pip packages are not actually being installed. When I run rosdep install with the --reinstall option, however, the pip packages install properly.

edit flag offensive delete link more

Comments

I would suspect that this means that pip things the package is already installed via debian and does not need to install it. pip will not install over the debian unless forced using the --reinstall

tfoote gravatar imagetfoote ( 2015-09-03 18:40:40 -0600 )edit

That's interesting. The pip package I am installing has no debian package, though, and there are no debian or pip packages on my system with a similar name so I wonder why pip thinks it does not need to install it. It is not ideal, but not a big deal for me to use the --reinstall option every time.

peterpolidoro gravatar imagepeterpolidoro ( 2015-09-04 08:37:50 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-04-15 06:08:21 -0600

Seen: 985 times

Last updated: Apr 16 '15