ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

rqt rqt_image_view plugin problem

asked 2022-06-03 09:03:14 -0500

KevinZehou gravatar image

updated 2022-06-03 09:15:45 -0500

Hello,

I am using ROS Noetic on Ubuntu 20.04LTS. I installed ROS and it's plugins using apt install. I am able to use all parts of ROS. The only problem is with rqt_image_view plugins. Other plugins of rqt are working well.

After i installed the full desktop version of ros noetic. I found this problem and i tried many ways to solve it. BUt is still can work. So I ran 'sudo apt-get install ros-noetic-rqt' to installed the rqt again , and i also ran 'sudo apt-get install ros-noetic-rqt-common-plugins' to installed the common plugins. To avoid omissions, i still ran 'sudo apt-get install ros-noetic-rqt-image-view'.

But when i ran "rqt_image_view ",

returns:

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/noetic/lib/python3/dist-packages/qt_gui_cpp/cpp_binding_helper.py", line 43, in <module>
    from . import libqt_gui_cpp_sip
ImportError: /home/zehou/.local/lib/python3.8/site-packages/PyQt5/Qt/lib/libQt5Core.so.5: version `Qt_5.12' not found (required by /opt/ros/noetic/lib/python3/dist-packages/qt_gui_cpp/libqt_gui_cpp_sip.so)

qt_gui_main() found no plugin matching "rqt_image_view/ImageView"
try passing the option "--force-discover"

It confused me for a long time !! Thank you for your answer !

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-06-03 18:02:47 -0500

Mike Scheutzow gravatar image

You appear to have not installed the libQt5 files using apt. The ros tools need those exact library versions.

You could delete the packages in $HOME/.local/lib/python3.8/ because they are probably interfering with your ros install. Doing this, of course, might break some other app, so you have to choose which is more important.

edit flag offensive delete link more

Comments

Thanks for your answer. I have few questions: You said i did not install the libQt5 using apt, is libQt5 a package? Because when i ran 'sudo apt install libQt5' in the terminal, it return E: Unable to locate package libQt5.

The other question is, which packages in $HOME/.local/lib/python3.8/ i need to delete? I do not know which package have the influence on my ros install. Thank you !

KevinZehou gravatar image KevinZehou  ( 2022-06-03 21:50:23 -0500 )edit

libqt5 is an extensive GUI-building library used by many apps. It is split into a large number of apt packages, so I have no idea which ones you need. You can run apt search libqt5 to see the list. If you install a ros package usingapt, apt should install the needed libqt5 packages automatically.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2022-06-04 08:49:28 -0500 )edit

The other question is, which packages in $HOME/.local/lib/python3.8/

You have installed incompatible libraries. If you want to solve this problem quickly, delete them all (or move that python3.8 directory to $HOME, which is effectively the same as deleting the files.)

Mike Scheutzow gravatar image Mike Scheutzow  ( 2022-06-04 10:35:59 -0500 )edit

Hi ! I copy the Pyhton3.8 directory into /HOME, but it return:

Could not find platform independent libraries <prefix> Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] Python path configuration: PYTHONHOME = (not set) PYTHONPATH = '/home/zehou/catkin_ws/devel/lib/python3/dist-packages:/opt/ros/noetic/lib/python3/dist-packages' program name = '/usr/bin/python3' isolated = 0 environment = 1 user site = 1 import site = 1 sys._base_executable = '/usr/bin/python3' sys.base_prefix = '/usr' sys.base_exec_prefix = '/usr' sys.executable = '/usr/bin/python3' sys.prefix = '/usr' sys.exec_prefix = '/usr' sys.path = [ '/home/zehou/catkin_ws/devel/lib/python3/dist-packages', '/opt/ros/noetic/lib/python3/dist-packages', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/lib-dynload', ]

KevinZehou gravatar image KevinZehou  ( 2022-06-05 05:16:26 -0500 )edit

So can i just installed the missing module again?

KevinZehou gravatar image KevinZehou  ( 2022-06-05 05:17:47 -0500 )edit

I do not know what your comment "it return" refers to. You wrote "copy" - this is wrong - I said "delete". After you delete that directory, you need to do a clean build in catkin_ws. Then yes, if something is still missing, install it, preferably using apt.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2022-06-05 06:55:43 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2022-06-03 09:03:14 -0500

Seen: 927 times

Last updated: Jun 03 '22