cannot launch kobuki_dashboard on kinetic
Hi, I'm trying to setup a turtlebot on ubuntu 16, ROS kinetic.
Installation went well so far. My laptop and the turtlebot netbook can ping each other. I can roslaunch on the turtlebot fine.
I am following the tutorial at: http://wiki.ros.org/turtlebot_bringup...
When I try the command rqt -s kobuki_dashboard
, I get the following error:
RosPluginProvider.load(kobuki_dashboard/KobukiDashboard) exception raised in __builtin__.__import__(kobuki_dashboard.dashboard, [KobukiDashboard]):
Traceback (most recent call last):
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rqt_gui/ros_plugin_provider.py", line 77, in load
module = __builtin__.__import__(attributes['module_name'], fromlist=[attributes['class_from_class_type']], level=0)
File "/opt/ros/kinetic/lib/python2.7/dist-packages/kobuki_dashboard/dashboard.py", line 8, in <module>
from QtGui import QMessageBox, QAction
ImportError: cannot import name QMessageBox
PluginManager._load_plugin() could not load plugin "kobuki_dashboard/KobukiDashboard":
Traceback (most recent call last):
File "/opt/ros/kinetic/lib/python2.7/dist-packages/qt_gui/plugin_handler.py", line 99, in load
self._load()
File "/opt/ros/kinetic/lib/python2.7/dist-packages/qt_gui/plugin_handler_direct.py", line 54, in _load
self._plugin = self._plugin_provider.load(self._instance_id.plugin_id, self._context)
File "/opt/ros/kinetic/lib/python2.7/dist-packages/qt_gui/composite_plugin_provider.py", line 71, in load
instance = plugin_provider.load(plugin_id, plugin_context)
File "/opt/ros/kinetic/lib/python2.7/dist-packages/qt_gui/composite_plugin_provider.py", line 71, in load
instance = plugin_provider.load(plugin_id, plugin_context)
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rqt_gui_py/ros_py_plugin_provider.py", line 60, in load
return super(RosPyPluginProvider, self).load(plugin_id, plugin_context)
File "/opt/ros/kinetic/lib/python2.7/dist-packages/qt_gui/composite_plugin_provider.py", line 71, in load
instance = plugin_provider.load(plugin_id, plugin_context)
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rqt_gui/ros_plugin_provider.py", line 83, in load
raise e
ImportError: cannot import name QMessageBox
Same when I try to launch the dashboard via rosrun kobuki_dashboard kobuki_dashboard
.
It seems to be related to QT. Any ideas how to fix?
Cheers Isaac
Edit: If I "fix" the file in question, "dashboard.py", by changing line 8 to:
from PyQt4.QtGui import QMessageBox, QAction
Then python will segfault. Here's a backtrace from gdb:
#0 0x00007fff9645e5a4 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#1 0x00007ffff7de74ea in call_init (l=<optimized out>, argc=argc@entry=4,
argv=argv@entry=0x7fffffffd858, env=env@entry=0xeb2920) at dl-init.c:72
#2 0x00007ffff7de75fb in call_init (env=0xeb2920, argv=0x7fffffffd858,
argc=4, l=<optimized out>) at dl-init.c:30
#3 _dl_init (main_map=main_map@entry=0x2deef60, argc=4, argv=0x7fffffffd858,
env=0xeb2920) at dl-init.c:120
#4 0x00007ffff7dec712 in dl_open_worker (a=a@entry=0x7fffffffb310)
at dl-open.c:575
#5 0x00007ffff7de7394 in _dl_catch_error (
objname=objname@entry=0x7fffffffb300,
errstring=errstring@entry=0x7fffffffb308,
mallocedp=mallocedp@entry=0x7fffffffb2ff,
operate=operate@entry=0x7ffff7dec300 <dl_open_worker>,
args=args@entry=0x7fffffffb310) at dl-error.c:187
#6 0x00007ffff7debbd9 in _dl_open (
file=0x2b49180 "/usr/lib/python2.7/dist-packages/PyQt4/QtGui.so",
mode=-2147483646, caller_dlopen=0x5231c3 <_PyImport_GetDynLoadFunc+243>,
nsid=-2, argc=<optimized out>, argv=<optimized out>, env=0xeb2920)
at dl-open.c:660
#7 0x00007ffff75edf09 in dlopen_doit (a=a@entry=0x7fffffffb540) at dlopen.c:66
#8 0x00007ffff7de7394 in _dl_catch_error (objname ...
Addendum: Maybe this is related to my other problem over here?
If you installed the
kobuki
packages usingapt-get
(ie: used a released version), and it's failing like this, that would be something to report over at turtlebot/turtlebot/issues.I did indeed install everything using apt-get. Posted my questions there.
It's always nice to link back to your issue then: turtlebot/turtlebot#250.