psr_21-22
psr_21-22 copied to clipboard
Problem with launching rqt and visualizing tf tree
Hi @miguelriemoliveira , as discussed in P2 class of today, here is the error given in the terminal when I launch rqt:
RosPluginProvider.load(qt_gui_cpp/CppPluginProvider) exception raised in builtin.import(qt_gui_cpp.cpp_plugin_provider, [CppPluginProvider]):
Traceback (most recent call last):
File "/opt/ros/noetic/lib/python3/dist-packages/rqt_gui/ros_plugin_provider.py", line 79, in load
module = builtin.import(
File "/opt/ros/noetic/lib/python3/dist-packages/qt_gui_cpp/cpp_plugin_provider.py", line 33, in
RecursivePluginProvider.discover() loading plugin "qt_gui_cpp/CppPluginProvider" failed:
Traceback (most recent call last):
File "/opt/ros/noetic/lib/python3/dist-packages/qt_gui/recursive_plugin_provider.py", line 60, in discover
instance = self._plugin_provider.load(plugin_descriptor.plugin_id(), None)
File "/opt/ros/noetic/lib/python3/dist-packages/rqt_gui/ros_plugin_provider.py", line 90, in load
raise e
File "/opt/ros/noetic/lib/python3/dist-packages/rqt_gui/ros_plugin_provider.py", line 79, in load
module = builtin.import(
File "/opt/ros/noetic/lib/python3/dist-packages/qt_gui_cpp/cpp_plugin_provider.py", line 33, in
The rqt window opens but when i select the tf tree plugin it doesn't show anything, while having gazebo running.
Thanks
Hi @PedroCarvalho98 ,
did you try this?
https://answers.ros.org/question/371691/valueerror-pycapsule_getpointer-called-with-incorrect-name/
Hi again professor @miguelriemoliveira ,
Yes, I came across the same page and decided to give it a shot. It uninstalled my ros, and when I reinstalled it, everything remained the same.
Hi @PedroCarvalho98
Can you describe exactly what you did, i.e. , the terminal commands.
Yes,
I only did the command : "sudo apt remove python3-pyqt5" and then it uninstalled ros, so I reinstalled it.
Ok, try
sudo pip install pyqt5
and then
sudo pip install pyqt5-sip
If that does not work, try uninstalling ros, then installing the pip, then installing ros again.
The first command said it was aleready installed, but the second one wasn't so it installed but I tried rqt again and I got the same error. So as professor recommended, I will uninstall ros, then install the pip, then install ros again.
Thanks