ros2doctor: UserWarning: Fail to call PackageReport/RosdistroReport class functions.

Open
#1,356 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@sujanchalla0510 is already working on this.

Since Nov 14, 2026.

  • #1357 by @sujanchalla0510 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
20/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
cli

Research direction

The warnings come from ros2doctor/api/init.py around lines 218 and 258, where the PackageCheck, PlatformCheck, PackageReport and RosdistroReport class functions are called. Check the open pull request #1357 first, since it already targets this issue. Done means ros2 doctor and ros2 doctor -r run without the UserWarning lines.

Written by the indexing model from the issue text.

Description

bug
Generated by Generative AI

No response

Operating System:

Linux tomoyafujita-ZBOX-EU275070C-EU27507TC 7.0.0-42-generic #42~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 19 14:43:01 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

ROS version or commit hash:

rolling source build

RMW implementation (if applicable):

No response

RMW Configuration (if applicable):

No response

Client library (if applicable):

rclpy

'ros2 doctor --report' output
ros2 doctor --report
<COPY OUTPUT HERE>
Steps to reproduce issue
[ros2_colcon]# ros2 doctor
/root/docker_ws/ros2_colcon/build/ros2doctor/ros2doctor/api/__init__.py: 218: UserWarning: Fail to call PackageCheck class functions.
/root/docker_ws/ros2_colcon/build/ros2doctor/ros2doctor/api/__init__.py: 218: UserWarning: Fail to call PlatformCheck class functions.
/root/docker_ws/ros2_colcon/build/ros2doctor/ros2doctor/api/topic.py: 42: UserWarning: Publisher without subscriber detected on /chatter.

All 3 checks passed

---

[ros2_colcon]# ros2 doctor -r
/root/docker_ws/ros2_colcon/build/ros2doctor/ros2doctor/api/__init__.py: 258: UserWarning: Fail to call PackageReport class functions.
/root/docker_ws/ros2_colcon/build/ros2doctor/ros2doctor/api/__init__.py: 258: UserWarning: Fail to call RosdistroReport class functions.

   ACTION LIST
action                 : none
action server count    : 0
action client count    : 0

   ROS ENVIRONMENT
... <snip>
Expected behavior

No warning generated

Actual behavior

Waning printed

Additional information

No response

Dominant language
Python
Stars
274
Forks
246
Avg merge
1d 14h
Merged PRs (30d)
12

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ros2/ros2cli

All issues in ros2/ros2cli

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.