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

RuntimeError: Multiple packages found with the same name "tf2", "tf2_msgs", "tf2_py", "tf2_ros"

asked 2016-04-12 10:00:51 -0600

spmaniato gravatar image

updated 2016-04-12 14:52:59 -0600

A few months ago, I had successfully installed ROS Indigo on Mac OS X using Mike Purvis' install script ( https://github.com/mikepurvis/ros-ins... )

Today, I decided to update my installation and also install the navigation stack. First, I did:

rosinstall_generator navigation --rosdistro indigo --deps --tar | wstool merge -t src -
wstool update -t src -j8

And that seemed to work just fine. But then, when I tried to get the dependencies with:

rosdep install --from-paths src --ignore-src --rosdistro indigo -y --as-root pip:no --skip-keys="procps" --skip-keys="gazebo"

I get the following error message:

ERROR: Rosdep experienced an error: Multiple packages found with the same name "tf2":
- geometry2/tf2
- geometry_experimental/tf2
Multiple packages found with the same name "tf2_msgs":
- geometry2/tf2_msgs
- geometry_experimental/tf2_msgs
Multiple packages found with the same name "tf2_py":
- geometry2/tf2_py
- geometry_experimental/tf2_py
Multiple packages found with the same name "tf2_ros":
- geometry2/tf2_ros
- geometry_experimental/tf2_ros
Please go to the rosdep page [1] and file a bug report with the stack trace below.
[1] : http://www.ros.org/wiki/rosdep

rosdep version: 0.11.4

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/rosdep2/main.py", line 136, in rosdep_main
    exit_code = _rosdep_main(args)
  File "/usr/local/lib/python2.7/site-packages/rosdep2/main.py", line 353, in _rosdep_main
    return _package_args_handler(command, parser, options, args)
  File "/usr/local/lib/python2.7/site-packages/rosdep2/main.py", line 406, in _package_args_handler
    pkgs = find_catkin_packages_in(path, options.verbose)
  File "/usr/local/lib/python2.7/site-packages/rosdep2/catkin_packages.py", line 33, in find_catkin_packages_in
    packages = find_packages(path)
  File "/usr/local/lib/python2.7/site-packages/catkin_pkg/packages.py", line 92, in find_packages
    raise RuntimeError('\n'.join(duplicates))
RuntimeError: Multiple packages found with the same name "tf2":
- geometry2/tf2
- geometry_experimental/tf2
Multiple packages found with the same name "tf2_msgs":
- geometry2/tf2_msgs
- geometry_experimental/tf2_msgs
Multiple packages found with the same name "tf2_py":
- geometry2/tf2_py
- geometry_experimental/tf2_py
Multiple packages found with the same name "tf2_ros":
- geometry2/tf2_ros
- geometry_experimental/tf2_ros

I ignored it and marched on with the installation. But invoking catkin build resulted in a similar error:

[build] Runtime: 0.5 seconds
Traceback (most recent call last):
  File "/usr/local/bin/catkin", line 9, in <module>
    load_entry_point('catkin-tools==0.3.1', 'console_scripts', 'catkin')()
  File "/usr/local/lib/python2.7/site-packages/catkin_tools/commands/catkin.py", line 229, in main
    sys.exit(args.main(args) or 0)
  File "/usr/local/lib/python2.7/site-packages/catkin_tools/verbs/catkin_build/cli.py", line 334, in main
    summarize_build=opts.summarize  # Can be True, False, or None
  File "/usr/local/lib/python2.7/site-packages/catkin_tools/verbs/catkin_build/build.py", line 583, in build_isolated_workspace
    packages_to_be_built, packages_to_be_built_deps, all_packages = determine_packages_to_be_built(packages, context)
  File "/usr/local/lib/python2.7/site-packages/catkin_tools/verbs/catkin_build/build.py", line 162, in determine_packages_to_be_built
    workspace_packages = find_packages(context.source_space_abs, exclude_subspaces=True, warnings=[])
  File "/usr/local/lib/python2.7/site-packages/catkin_pkg/packages.py", line 92, in find_packages
    raise RuntimeError('\n'.join(duplicates))
RuntimeError: Multiple packages found with the same name "tf2":
- geometry2/tf2
- geometry_experimental/tf2
Multiple packages found with the same name "tf2_msgs":
- geometry2/tf2_msgs
- geometry_experimental ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2016-04-12 14:05:47 -0600

tfoote gravatar image

The geometry_experimental repository was renamed to the geometry2 repository. When you reran the rosinstall_generator it create the new repo, but rosinstall does not remove unknown packages from your workspace. If you have no local changes you can just remove the geometry_experimental repository and make sure it's not in a .rosinstall file. If you have local changes you can remove the new geometry2 repo and rename the geometry_experimental to geometry2 and remove any references to geometry_experimental

edit flag offensive delete link more

Comments

Perfect, thanks Tully! I generated a fresh .rosinstall and successfully built everything, including the nav stack.

spmaniato gravatar image spmaniato  ( 2016-04-12 14:51:53 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-04-12 10:00:51 -0600

Seen: 13,659 times

Last updated: Apr 12 '16