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

rqt_plot has a Qt4 and Qt5 conflict

asked 2017-02-24 12:24:50 -0600

Curt gravatar image

The latest update seems to have a problem with qt4 vs qt5 but it could be something else that updated along with all the kinetc updates.

When I try to launch rqt_plot I get the following, the RuntimeError at the end shows up for other projects as well:

Traceback (most recent call last):
  File "/opt/ros/kinetic/bin/rqt_plot", line 6, in <module>
    from rqt_plot.plot import Plot
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rqt_plot/", line 43, in <module>
    from .data_plot import DataPlot
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rqt_plot/data_plot/", line 44, in <module>
    from .pyqtgraph_data_plot import PyQtGraphDataPlot
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rqt_plot/data_plot/", line 46, in <module>
    from pyqtgraph import __version__ as pyqtgraph_version
  File "/usr/lib/python2.7/dist-packages/pyqtgraph/", line 13, in <module>
    from .Qt import QtGui
  File "/usr/lib/python2.7/dist-packages/pyqtgraph/", line 104, in <module>
    from PyQt4 import QtGui, QtCore, uic
RuntimeError: the PyQt4.QtCore and PyQt5.QtCore modules both wrap the QObject class
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-03-21 11:16:57 -0600

It is a problem with pyqtgraph. You can use rqt_plot without pyqtgraph. It will use MatPlot then. Uninstall pyqtgraph with:

sudo apt remove python-pyqtgraph

If you want to use pyqtgraph anyways, consider to install the newest version from github as mentioned in this post:

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-02-24 12:24:50 -0600

Seen: 827 times

Last updated: Feb 24 '17