ros-visualization / rqt_graph

http://wiki.ros.org/rqt_graph
26 stars 27 forks source link

ValueError: PyCapsule_GetPointer called with incorrect name #51

Closed chinaheyu closed 3 years ago

chinaheyu commented 4 years ago

$ rqt_console Traceback (most recent call last): File "/opt/ros/noetic/bin/rqt_console", line 8, in sys.exit(main.main(sys.argv, standalone='rqt_console.console.Console')) File "/opt/ros/noetic/lib/python3/dist-packages/rqt_gui/main.py", line 61, in main return super( File "/opt/ros/noetic/lib/python3/dist-packages/qt_gui/main.py", line 407, in main from python_qt_binding import QT_BINDING File "/opt/ros/noetic/lib/python3/dist-packages/python_qt_binding/init.py", line 55, in from .binding_helper import loadUi, QT_BINDING, QT_BINDING_MODULES, QT_BINDING_VERSION # @UnusedImport File "/opt/ros/noetic/lib/python3/dist-packages/python_qt_binding/binding_helper.py", line 274, in _select_qt_binding( File "/opt/ros/noetic/lib/python3/dist-packages/python_qt_binding/binding_helper.py", line 108, in _select_qt_binding QT_BINDING_VERSION = binding_loader(required_modules, optional_modules) File "/opt/ros/noetic/lib/python3/dist-packages/python_qt_binding/binding_helper.py", line 155, in _load_pyqt _named_optional_import('PyQt5.%s' % module_name) File "/opt/ros/noetic/lib/python3/dist-packages/python_qt_binding/binding_helper.py", line 142, in _named_optional_import _named_import(name) File "/opt/ros/noetic/lib/python3/dist-packages/python_qt_binding/binding_helper.py", line 133, in _named_import module = builtins.import(name) ValueError: PyCapsule_GetPointer called with incorrect name

dirk-thomas commented 3 years ago

Please provide reproducible steps including information about the platform and how you installed / build ROS.

8krisv commented 3 years ago

I have the same issue, did you solve it?

tylernewnoise commented 3 years ago

I run into the same iusse and could break it down to two installed PyQt5 packages - one was installed via apt and one via pip3. They probably had different versions, this gave me the wink in the right direction. By uninstalling PyQt5 and PyQt5-sip with pip3 the problem didn't occur anymore. Maybe this helps.

Edith: system is ubuntu 20.04 running in a docker container.

8krisv commented 3 years ago

¡thanks, that solved my problem!