Error: Bloom requires a version 4 or greater rosdistro index to support package format 3.
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-Guides/Releasing/Releasing-a-Package.html
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 ROSDISTROINDEXURL 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: 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(
Creating upstream branch.
Importing archive into upstream branch...
Creating tag: 'upstream/0.0.1'
I'm happy. You should be too.
==> git-bloom-generate -y rosrelease humble --source upstream -i 1
/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: 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'
Releasing package: ['wall_follower_ros2']
Releasing package 'wall_follower_ros2' for 'humble' to: 'release/humble/wall_follower_ros2'
==> git-bloom-generate -y rosdebian --prefix release/humble humble -i 1 --os-name ubuntu
/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(
Generating source debs for the packages: ['wall_follower_ros2']
Debian Incremental Version: 1
Debian Distributions: ['jammy']
Releasing for rosdistro: humble
Pre-verifying Debian dependency keys...
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.
Asked by Roberto Z. on 2022-12-08 08:43:52 UTC
Answers
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.
Asked by nuclearsandwich on 2022-12-15 17:07:53 UTC
Comments