rqt ValueError: PyCapsule_GetPointer called with incorrect name

asked 2022-03-30 07:13:43 -0500

apo gravatar image

I have an Ubuntu 20.04.4 with ros noetic installed.

When I try to run rqt I have this error:

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 <module>
    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 <module>
    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 <module>
    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 <module>
    from . import libqt_gui_cpp_sip
ValueError: PyCapsule_GetPointer called with incorrect name

I tried to uninstall and install again ros/qt but it did not work.

I have PyQt5 5.14.1 and PyQt5-sip 12.9.1 installed with pip and pyqt5-dev 5.14.1 installed with apt. If I uninstall the python Qt packages, rqt relies on PySide2 (version 5.15.2.1 installed), but I have a segfault:

QtBindingHelper using pyside
PluginManager._discover() force discovery of plugins
RospkgPluginProvider._find_plugins() crawling for plugins of type 'qt_gui'
[1]    148476 segmentation fault (core dumped)  rqt
edit retag flag offensive close merge delete

Comments

Hi, did you find a solution for this error? I'm also encountering this when I follow this repository's guide. (https://github.com/uzh-rpg/flightmare...) I'm also running Ubuntu 20.04.04 with ros-noetic.

BLU gravatar image BLU  ( 2022-12-11 22:43:24 -0500 )edit

No, I have not. I still have the issue

apo gravatar image apo  ( 2022-12-13 01:51:31 -0500 )edit

Hi, I also encounter the same problem, have you fixed this?

ros-yoho gravatar image ros-yoho  ( 2023-02-18 07:11:57 -0500 )edit