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

Error: Bloom requires a version 4 or greater rosdistro index to support package format 3.

asked 2022-12-08 07:43:52 -0600

Roberto Z. gravatar image

Hello community,

I want to release a repository using bloom (first time) and I am following ROS2's official documentation: https://docs.ros.org/en/humble/How-To...

When I execute:

bloom-release --edit --rosdistro humble --track humble wall_follower_ros2

And then I get prompt to enter the release repository URL, repository name, VSC type, among others.

My problem is that later down the process I get this error:

Running 'rosdep update'...
Bloom requires a version 4 or greater rosdistro index to support package format 3.
<== Error running command '['/usr/bin/git-bloom-generate', '-y', 'rosdebian', '--prefix', 'release/humble', 'humble', '-i', '1', '--os-name', 'ubuntu']'
Release failed, exiting.

If that matters my ROSDISTRO_INDEX_URL environment variable is as follows:

ROSDISTRO_INDEX_URL=https://raw.githubusercontent.com/ros/rosdistro/master/index.yaml

I haven't been able to find any similar questions with this error message.

What can I do to solve this?

Roberto


Here are few lines of output of 'bloom-release` before it fails:

==> Testing for push permission on release repository
==> git remote -v
origin  https://github.com/ros2-gbp/wall_follower_ros2-release.git (fetch)
origin  https://github.com/ros2-gbp/wall_follower_ros2-release.git (push)
==> git push --dry-run
Username for 'https://github.com': rfzeg
Password for 'https://rfzeg@github.com':
To https://github.com/ros2-gbp/wall_follower_ros2-release.git
   ed37da2..4d42031  master -> master
==> Releasing 'wall_follower_ros2' using release track 'humble'
==> git-bloom-release humble

/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning:  is an invalid version and will not be supported in a future release
  warnings.warn(
ROS Distro index file associate with commit '40a55534cfde9f2b077613499239119344fe365d'
New ROS Distro index url: 'https://raw.githubusercontent.com/ros/rosdistro/40a55534cfde9f2b077613499239119344fe365d/index.yaml'
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning:  is an invalid version and will not be supported in a future release
  warnings.warn(
Processing release track settings for 'humble'
Checking upstream devel branch 'main' for package.xml(s)
Cloning into '/tmp/tmppur93ypx/upstream'...
remote: Enumerating objects: 60, done.
remote: Counting objects: 100% (60/60), done.
remote: Compressing objects: 100% (41/41), done.
remote: Total 60 (delta 25), reused 52 (delta 17), pack-reused 0
Receiving objects: 100% (60/60), 12.90 KiB | 3.23 MiB/s, done.
Resolving deltas: 100% (25/25), done.
Looking for packages in 'main' branch... found 'wall_follower_ros2'.
Detected version '0.0.1' from package(s): ['wall_follower_ros2']

Executing release track 'humble'
==> bloom-export-upstream /tmp/tmppur93ypx/upstream git --tag 0.0.1 --display-uri https://github.com/rfzeg/wall_follower_ros2 --name wall_follower_ros2 --output-dir /tmp/tmp99ahd55z
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning:  is an invalid version and will not be supported in a future release
  warnings.warn(

Checking out repository at 'https://github.com/rfzeg/wall_follower_ros2' to reference '0.0.1'.
Exporting to archive: '/tmp/tmp99ahd55z/wall_follower_ros2-0.0.1.tar.gz'
md5: bbf0d600567933179fbed82248a44743

==> git-bloom-import-upstream /tmp/tmp99ahd55z/wall_follower_ros2-0.0.1.tar.gz  --release-version 0.0.1 --replace
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning:  is an invalid version and will not be supported in a future release
  warnings.warn(
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-12-15 16:07:53 -0600

nuclearsandwich gravatar image

If that matters my ROSDISTRO_INDEX_URL environment variable is as follows:

ROSDISTRO_INDEX_URL=https://raw.githubusercontent.com/ros/rosdistro/master/index.yaml

This does matter. The default index url was updated in rosdistro version 0.7.0 (Nov 2018). If you're not explicitly targeting an alternative rosdistro index, then using the default url, which points to the v4 formatted index file is recommended for _all_ bloom releases but it is required for bloom to correctly handle package.xml conditions for manifest v3 packages, which is one reason why current releases of bloom require rosdistro >= 0.8.0.

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

2 followers

Stats

Asked: 2022-12-08 07:43:52 -0600

Seen: 15 times

Last updated: Dec 15 '22