Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot import roslib.message

See original GitHub issue
Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15) 
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from rospy_message_converter import message_converter
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/pablo/src/freedomrobotics/freedom_python/env/local/lib/python2.7/site-packages/rospy_message_converter/", line 34, in <module>
    import roslib.message
ImportError: No module named roslib.message

I just created a simple virtualenv and installed the library with pip.

Is there anyother package that should be installed for running this? It would be nice to add it to the README.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

cjdscommented, Jan 15, 2019

@pablodo I’d recommend closing this issue as it’s an issue with my package not the library. You have to install to use this via that pip package. I’ll add it as a required dependency and do a pip release. Thanks for letting me know

cjdscommented, Apr 7, 2020

@annesteenbeek Sorry again for the extremely late reply (not been as on top of notifications as I should have). I am currently working on a re-release of this library that will not have the above traceback.

It’s caused due to a change in requirements from catkin_pkg and the fact that I last released this 2 years ago. When I do the update I will let you know

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot import roslib.message · Issue #25 - GitHub
I just created a simple virtualenv and installed the library with pip . Is there anyother package that should be installed for running...
Read more >
ImportError: No module named roslib - ROS Answers
I am having a problem running python files. Here are the 1st-3rd lines of the py file: #!/usr/bin/env python import roslib; ...
Read more >
ros - python when there is no input for the subscriber it starts ...
#!/usr/bin/env python from roslib import message import rospy import sensor_msgs.point_cloud2 as pc2 from sensor_msgs.msg import PointCloud2 ...
Read more >
You need to import rospy if you are writing a ROS Node. The std_msgs.msg import is so that we can reuse the std_msgs/String...
Read more >
ROS Tutorial: How to solve the error "ImportError : No module ...
msg import gnss`, right? Remember that you have to compile your message. I couldn't find the instructions to compile them on your CMakeLists.txt....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found