Error using RQT - Could not import "pyqt" bindings of qt_gui_cpp library
Every time I try to use anything RQT (rqt_console, rqt_graph, etc.) I get this error (see below). Not sure how to fix this. When I do Python --version I get Python 3.7, however I ensured my environment variable $ROS_PYTHON_VERSION=2. Im on Ubuntu 18.04 using Melodic
~~~
Could not import "pyqt" bindings of qt_gui_cpp library - so C++ plugins will not be available:
Traceback (most recent call last):
File "/opt/ros/melodic/lib/python2.7/dist-packages/qt_gui_cpp/cpp_binding_helper.py", line 43, in <module>
from . import libqt_gui_cpp_sip
ImportError: dynamic module does not define module export function (PyInit_libqt_gui_cpp_sip)
~~~
Note this output when I run "$ env | grep PYTHON":
CONDA_PYTHON_EXE=/home/parallels/anaconda3/bin/python
ROS_PYTHON_VERSION=2
PYTHONPATH=/home/parallels/catkinws_melodic/devel/lib/python2.7/dist-packages:/opt/ros/melodic
How do I stop getting this error when I try to use RQT?
Hi,
I have the same issue as you have so unfortunately I don't know the answer yet. Did you meanwhile solve this error? If yes, could you please help me out? If no, I will continue to search for an answer and maybe I will be able to help you out! I couldn't find a lot of other topics related to this error.
Best,
alme96
The first step would be to make sure
/usr/bin/python
is a symbolic link to `python2.7'.