qt.qpa.plugin: Could not find the Qt platform plugin "windows" in ""
ROS 2 tutorial, Introducing turtlesim and rqt, instructs us to execute the following commands in two cmd windows (I am exercising on Windows 10 platform), ros2 run turtlesim turtlesim_node
and ros2 run turtlesim turtle_teleop_key
. Both commands fails with the error message:
qt.qpa.plugin: Could not find the Qt platform plugin "windows" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Does this mean that I need to install Qt? If yes, why isn't Qt included in Foxy release, or, as part of install instruction? Could you provide the pointer where I can download free version of Qt? Once I install Qt, what else do I need to do so that the turtlesim will work successfully? Thanks a lot for the help.
My foxy installation was successful. At the end of the installation, both ros2 run demo_nodes_cpp talker
and ros2 run demo_nodes_py listener
worked. I am just started with the ros2 tutorial. The command set | findstr ROS
produced the following:
ROS_DISTRO=foxy
ROS_LOCALHOST_ONLY=0
ROS_PYTHON_VERSION=3
ROS_VERSION=2
I have the same issue I would like help getting this going. I also cant run rqt without getting plugin.xml non found errors
I have the exact same issue.
Found a fix: In Windows 10 set environment variable QT_QPA_PLATFORM_PLUGIN_PATH and point it to where PyQT5 DLL's were installed to, in my case C:\Python38\Lib\site-packages\PyQt5\Qt\plugins\platforms
I will try this tomorrow and see if it works for me too, thank you so much for sharing your fix!!
I mentioned your fix to the Microsoft team and it fixed the same issue on eloquent as well! thank you Izsyvj
It works for me too. Many thanks!
Same here! Thank you so much!!
This hasn't helped me, Can someone please help? Also I noticed that is says turtlesim is only available for Dashing onward? I'm using Foxy, is this going to hinder my ability to use turtlesim?