ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Bloom-release issue: could not resolve rosdep key 'rospkg'

asked 2014-09-24 11:10:49 -0600

Damien gravatar image


I have an anoying issue that I can't get solved...

To test debian building and releasing, I created two repos on github. One for source and the other for the release debians. I commited two of our nodes for testing purpose before trying to use our internal git and build in local instead of on the ros buildfarm... So I try to take it small steps after small steps to try to control all the aspects...

So, I'm compiling perfectly well the packages with catkin_make and catkin_make install in 'devel' overlay. The install folder can be relocated anywhere and executes the nodes smoothly when I update the bashrc to source the correct folder as overlay etc...

So all seems pretty clean to me.

I do run catkin_generate_changelog and catkin_prepare_release still in the 'devel' overlay.

BUT. When running bloom-release --rosdistro hydro --track hydro --edit in the 'devel' overlay, I have the following error:

==> git-bloom-generate -y rosdebian --prefix release/hydro hydro -i 0
Generating source debs for the packages: ['deburring_riveting_demo', 'hironx_grippers']
Debian Incremental Version: 0
Debian Distributions: ['precise', 'quantal', 'raring']
Releasing for rosdistro: hydro
Placing debian template files into 'debian/hydro/deburring_riveting_demo' branch.
==> Placing templates files in the 'debian' folder.
Running 'rosdep update'...

#### Generating 'precise' debian for package 'deburring_riveting_demo' at version '0.0.2-0'
Generating debian for precise...
No homepage set, defaulting to ''
Could not resolve rosdep key 'rospkg'
Try to resolve the problem with rosdep and then continue.

So Yes, my python package 'deburring_riveting_demo' imports rospkg. And in package.xml I added <run_depend>python-rospkg</run_depend> Also tried to add it also in <build_depend>, but didn't change anything...

So as discussed on some other questions, I did clean my rosdep files and updated them. And I also run rosdep resolve python-rospkg correctly since it answers


I have to mention that at the beginning I did try in package.xml to < -depend> on rospkg instead of python-rospkg. That might be one of the origins of bloom trying to rosdep rospkg??

So I have no clue about how to solve this issue...

I'm guessing that there might have a cache somewhere still pointing to <run_depend>rospkg</run_depend>

But I deleted my /devel, /build and /install; I deleted all temporary files in /src, I double checked the correctness of the upstream git repo...

Is there anywhere else I have to look for this??

Any idea of what is going wrong?

Thanks Damien

edit retag flag offensive close merge delete


I had the same issue before. Double/Triple-check like this might help: $ grep -r ">rospkg" $YOUR_CATKIN_WS$

130s gravatar image 130s  ( 2014-09-24 11:54:17 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-09-24 11:55:18 -0600

William gravatar image

bloom operates on the released packages, so my guess is that you have not released since addressing this:

I have to mention that at the beginning I did try in package.xml to < -depend> on rospkg instead of python-rospkg. That might be one of the origins of bloom trying to rosdep rospkg??

Make sure the released version (tag in git repository which matches the version you are releasing) has the correct dependency name in the package.xml.

edit flag offensive delete link more



The tagged version does not have the updated dependency:

tfoote gravatar image tfoote  ( 2014-09-24 14:22:00 -0600 )edit

That was it!! Too many steps and stuff to learn and control at the same time... I didn't regenrate catkin_prepare_release Now it works smoothly. Thanks a lot. I'm closing the question.

Damien gravatar image Damien  ( 2014-09-25 09:14:48 -0600 )edit

@Damien Thanks for confirming the answer and following up. For future reference, marking the answer as accepted is enough. If you close it others's can't comment or add additional suggestions or alternative solutions.

tfoote gravatar image tfoote  ( 2014-09-25 12:49:23 -0600 )edit

Question Tools

1 follower


Asked: 2014-09-24 11:10:49 -0600

Seen: 1,058 times

Last updated: Sep 24 '14