Skip to content
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

ImportError: cannot import name 'Log' from 'rosgraph_msgs.msg' #36

Open
zkailinzhang opened this issue Feb 10, 2023 · 1 comment
Open

Comments

@zkailinzhang
Copy link

import bagpy

ImportError Traceback (most recent call last)
in
----> 1 import bagpy

---> 49 from .client import spin, myargv, init_node,
50 get_published_topics,
51 wait_for_message, \

~//lib/python3.7/site-packages/rospy/client.py in
52 import roslib
53
---> 54 import rospy.core
55 from rospy.core import logwarn, loginfo, logerr, logdebug
56 import rospy.exceptions

~//lib/python3.7/site-packages/rospy/core.py in
73 from rospy.impl.validators import ParameterInvalid
74
---> 75 from rosgraph_msgs.msg import Log
76 from functools import partial
77

ImportError: cannot import name 'Log' from 'rosgraph_msgs.msg' (/opt/ros/dashing/lib/python3.6/site-packages/rosgraph_msgs/msg/init.py)

@rahulbhadani
Copy link
Member

Please provide more details on what version of Ubuntu you have, and what version of ROS you are using. ROS 2 and beyond Ubuntu 20.04 is not supported. You seem to have ROS dashing which is ROS 2. bagpy is meant for ROS 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants