Qt Platform plugin error

asked 2023-01-02 01:05:27 -0500

Hi, I have tried to install ROS noetic through Docker on my macOS Catalina. I followed all the steps mentioned, however when I try to run rospy tutorials or even turtlesim, it shows me Qt platform error along with some host. docker. internal error (regarding display). I have installed XQuartz (in place of Xlaunch as that's for windows), but it doesn't show me the display option.

root@e6eaf37c130f:/# rosrun turtlesim turtlesim_node 
Authorization required, but no authorization protocol specified
qt.qpa.xcb: could not connect to display host.docker.internal:0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
edit retag flag offensive close merge delete