incorrect import of python_qt_binding
On ubuntu 16.04 starting rqt_console fails because python_qt_binding is used from
'/usr/lib/python2.7/dist-packages/python_qt_binding
instead of
/opt/ros/kinetic/lib/python2.7/dist-packages/python_qt_binding
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/main.py", line 338, in main from python_qt_binding.QtCore import qDebug, qInstallMessageHandler, QSettings, Qt, QtCriticalMsg, QtDebugMsg, QtFatalMsg, QTimer, QtWarningMsg ImportError: cannot import name qInstallMessageHandler