Closed softyanija closed 10 months ago
Same error occurs before noetic, but nice PR. Maybe you should change the commit message.
$ ipython
impPython 2.7.17 (default, Mar 8 2023, 18:40:28)
Type "copyright", "credits" or "license" for more information.
IPython 5.5.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: import roslib
In [2]: roslib.message.get_message_class('sensor_msgs/Image')
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-2-0658d0772c3c> in <module>()
----> 1 roslib.message.get_message_class('sensor_msgs/Image')
AttributeError: 'module' object has no attribute 'message'
What commit message is proper? "import roslib.message explicitly to suport noetic"?
Something like... "Fix import roslib.message explicitly"
It is because the problem solved by this PR is not only for noetic or python3.
I understood, and changed to "fixed to import roslib.message explicitly".
Thank you. Wait for merging fixing CI commit in #1787
When I run original code in noetic, error "AttributeError: module 'roslib' has no attribute 'message'" occured. I fixed it to avoid this error .