Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyQt5 - Failed to load platform plugin "windows". Available platforms are: windows, minimal

Tags:

python

pyqt

pyqt5

When I try to run any PyQt5 program from Eclipse, I got this error.

Failed to load platform plugin "windows". Available platforms are: windows, minimal

I've never encountered this problem with PyQt4 but with the new version.

I'm not able to run a program. From other questions here I know it happens with Qt C++ development and the solution is to copy some Qt dll files to executable program directory.

Do I need to do the same in Python development (PyQt5) too? Add those files to the directory, where my *.py files reside? Shouldn't this be managed by PyQt5 installation?

Thank you

like image 536
Ondrej Vencovsky Avatar asked Jul 17 '13 08:07

Ondrej Vencovsky


People also ask

How to fix this application failed to start because no Qt platform plugin could be initialized reinstalling the application may fix this problem?

In order to fix the “Application failed to start because no Qt platform plugin could be initialized” error, you should uninstall all recently installed applications and see if that solves your problem in normal mode.

Where is Qt plugin path?

The Plugin Directory In Qt, when an application starts, the application's executable directory is the base directory where Qt searches for plugins. For example, on Windows, if the application is in C:\Program Files\MyApp and it has a style plugin, Qt looks in C:\Program Files\MyApp\styles .

What is Qt platform plugin windows?

Qt is a cross-platform software that was designed to create graphical user interfaces and cross-platform applications on Windows, Linux, macOS, and Android.


1 Answers

i had a similar problem when compiling my code with cx_freeze.

Copying the folder platforms from python installation directory into my built folder solved the problem. the "platforms" folder contains qminimal.dll

like image 167
Fakh.P Avatar answered Oct 18 '22 08:10

Fakh.P