incorrect import of python_qt_binding

asked 2017-01-10 17:24:20 -0500

Pieter gravatar image

On ubuntu 16.04 starting rqt_console fails because python_qt_binding is used from


instead of


I do not want to remove the python python_qt_binding package, because many other packages depend on this. I tried changing the PYTHONPATH variable (before or after source /opt/ros/kinetic/setup.bash, but that did not help). I can start rqt_console by manually changing the code of /opt/ros/kinetic/bin/rqt_console, but that doesn't seem like a proper solution.

How can I let ROS use the correct python packages?

Btw: rqt_console fails with the following error message

  File "/opt/ros/kinetic/lib/python2.7/dist-packages/qt_gui/", line 338, in main
    from python_qt_binding.QtCore import qDebug, qInstallMessageHandler, QSettings, Qt, QtCriticalMsg, QtDebugMsg, QtFatalMsg, QTimer, QtWarningMsg
ImportError: cannot import name qInstallMessageHandler
edit retag flag offensive close merge delete