ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

rqt ImportError: No module named my_module (different from previous post)

asked 2015-07-17 03:22:33 -0500

Panos gravatar image

Hello, In my attempt to create an rqt gui in ROS indigo, following the tutorials and , with the use of a .ui file, I began with just a simple version (two QPushButtons and a QLabel), just to check if it works. Unfortunately, it doesn't, while it gives me this error:

RosPluginProvider.load(rqt_mypkg/MyPlugin) exception raised in __builtin__.__import__(rqt_mypkg.my_module, [MyPlugin]):
Traceback (most recent call last):
  File "/opt/ros/indigo/lib/python2.7/dist-packages/rqt_gui/", line 77, in load
    module = __builtin__.__import__(attributes['module_name'], fromlist=[attributes['class_from_class_type']], level=0)
ImportError: No module named my_module

I have checked for other similar questions, like and (I also had the same mistakes, which I corrected), but still, the same error occurs. I have put my code (and the related files) here: .

My environment variables are:


and I work on Ubuntu 14.04.2 LTS. Does anybody have any idea what could have gone wrong?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-07-18 12:19:34 -0500

130s gravatar image

You have It has to be , double-underscore, not single. See

edit flag offensive delete link more


Thank you very very much! (It now gives me some other errors but I will fix them and post when it is ready)

Panos gravatar image Panos  ( 2015-07-19 02:57:30 -0500 )edit

Just to close it, the "other errors" had to do with the loadUi function, but it is irrelevant with this question (I did it without using ui)

Panos gravatar image Panos  ( 2015-08-13 17:11:52 -0500 )edit

Question Tools

1 follower


Asked: 2015-07-17 03:22:33 -0500

Seen: 929 times

Last updated: Jul 19 '15