-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ros2 doctor fails to call some class functions #806
Comments
I cannot reproduce on jammy, so it may be something |
i've encoutered this issue as well using humble on ubuntu 22.04. |
I cannot reproduce this issue with ubuntu 22.04 and Humble. root@tomoyafujita:~# ros2 doctor
All 5 checks passed
root@tomoyafujita:~# ros2 doctor --report
...<snip>
PLATFORM INFORMATION
system : Linux
platform info : Linux-5.15.0-76-generic-x86_64-with-glibc2.35
release : 5.15.0-76-generic
processor : x86_64
QOS COMPATIBILITY LIST
compatibility status : No publisher/subscriber pairs found
RMW MIDDLEWARE
middleware name : rmw_fastrtps_cpp
ROS 2 INFORMATION
distribution name : humble
distribution type : ros2
distribution status : active
release platforms : {'debian': ['bullseye'], 'rhel': ['8'], 'ubuntu': ['jammy']}
TOPIC LIST
topic : none
publisher count : 0
subscriber count : 0
...<snip> |
❯ ros2 doctor --report NETWORK CONFIGURATION PLATFORM INFORMATION QOS COMPATIBILITY LIST RMW MIDDLEWARE TOPIC LIST |
For the outputs of "ros2 doctor", it just because your proxy network may not good. I solve it by use a more quick proxy. |
And after my test, the outputs of "ros2 doctor --report" is the same. |
i've encoutered this issue as well using humble on ubuntu 22.04.
|
My environment is just the same as yours. Do you have tried to use a quick proxy connected to US? The proxy connected to HK doesn't work when I have tested. So maybe a quick proxy to western country will work well. And when I say quick, it means a delay less than 500ms. I even got this warning when I with my proxy on, just because of the poor quality of networr connection.
My environment is just the same as yours. Do you have tried to use a quick proxy connected to US? The proxy connected to HK doesn't work when I have tested. So maybe a quick proxy to western country will work well. And when I say quick, it means a delay less than 500ms. I even got this warning when I with my proxy on, just because of the poor quality of networr connection. |
The package check fails, when it can't find a version of a local of req package (see compare_versions). The empty string will result in an InvalidVersion exception. Which should be catched, because the missing pkgs are collected to be logged later on. |
Hm, that doesn't seem to be the case here:
What version of (I'm not against updating the code to handle this, but I want to understand the situation a bit better first) |
I am running packaging 23.1, which does raise this issue: >>> import packaging
>>> packaging.__version__
'23.1'
>>> from packaging import version
>>> version.parse('')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.10/dist-packages/packaging/version.py", line 52, in parse
return Version(version)
File "/usr/local/lib/python3.10/dist-packages/packaging/version.py", line 198, in __init__
raise InvalidVersion(f"Invalid version: '{version}'")
packaging.version.InvalidVersion: Invalid version: '' |
pypa/packaging#530 removes the deprecated |
Bug report
Required Info:
Steps to reproduce issue
Expected behavior
Actual behavior
and
Additional information
The following packages are installed:
See also https://answers.ros.org/question/406296/optroshumblelibpython310site-packagesros2doctorapi__init__py-118-userwarning-fail-to-call-packagecheck-class-functions/
The text was updated successfully, but these errors were encountered: