psr_21-22 icon indicating copy to clipboard operation
psr_21-22 copied to clipboard

Problem with launching rqt and visualizing tf tree

Open PedroCarvalho98 opened this issue 3 years ago • 6 comments

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 from .cpp_binding_helper import qt_gui_cpp File "/opt/ros/noetic/lib/python3/dist-packages/qt_gui_cpp/cpp_binding_helper.py", line 43, in from . import libqt_gui_cpp_sip ValueError: PyCapsule_GetPointer called with incorrect name

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 from .cpp_binding_helper import qt_gui_cpp File "/opt/ros/noetic/lib/python3/dist-packages/qt_gui_cpp/cpp_binding_helper.py", line 43, in from . import libqt_gui_cpp_sip ValueError: PyCapsule_GetPointer called with incorrect name

The rqt window opens but when i select the tf tree plugin it doesn't show anything, while having gazebo running.

Thanks

PedroCarvalho98 avatar Jan 20 '22 13:01 PedroCarvalho98

Hi @PedroCarvalho98 ,

did you try this?

https://answers.ros.org/question/371691/valueerror-pycapsule_getpointer-called-with-incorrect-name/

miguelriemoliveira avatar Jan 21 '22 11:01 miguelriemoliveira

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.

PedroCarvalho98 avatar Jan 21 '22 12:01 PedroCarvalho98

Hi @PedroCarvalho98

Can you describe exactly what you did, i.e. , the terminal commands.

miguelriemoliveira avatar Jan 22 '22 10:01 miguelriemoliveira

Yes,

I only did the command : "sudo apt remove python3-pyqt5" and then it uninstalled ros, so I reinstalled it.

PedroCarvalho98 avatar Jan 22 '22 11:01 PedroCarvalho98

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.

miguelriemoliveira avatar Jan 22 '22 11:01 miguelriemoliveira

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

PedroCarvalho98 avatar Jan 22 '22 11:01 PedroCarvalho98