Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyQt5 Designer is not working: This application failed to start because no Qt platform plugin could be initialized

i have a problem with PyQt5 Designer. I install PyQt with -pip install PyQt5 and then -pip install PyQt5-tools everything OK. But when i try to run Designer it open messagebox with error: This application failed to start because no Qt platform plugin could be initialized! how to deal with it?

like image 696
Dodo Avatar asked Apr 20 '20 14:04

Dodo


People also ask

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

Sometimes corrupted system files can trigger various errors and issues when running your apps such as the “no Qt platform plugin could be initialized” error. So, we recommend you run an SFC scan or DISM to check system files.

How do I install Qt plugins?

Note: You can install only plugins that are supported by your Qt Creator version. To install plugins: Select Help > About Plugins > Install Plugins. In the Source dialog, enter the path to the archive or library that contains the plugin.

Can't find or load the Qt platform plugin windows python?

If the Pycharm console or debugger are showing “Could not find or load the Qt platform plugin windows”, the Python EXE file may be located at a different location for the PyCharm interpreter. You might manually select it in File -> Settings -> Interpreter.


3 Answers

  1. Go to => Python38>lib>site-packages>PyQt5>Qt>plugins
  2. In plugins copy platform folder
  3. After that go to Python38>lib>site-packages>PyQt5_tools>Qt>bin
  4. paste folder here . Do copy and replace.

This will surely work.. Now you can use designer tool go and do some fun with python...

like image 123
user204242 Avatar answered Sep 19 '22 19:09

user204242


I found a way of solving this:

Go to you python instalation folder Python38\Lib\site-packages\PyQt5\Qt\bin

Then copy all of that files to your clipboard and paste them at Python38\Lib\site-packages\pyqt5_tools\Qt\bin

Then open the designer.exe and it should work.

like image 37
Jaime02 Avatar answered Sep 18 '22 19:09

Jaime02


Try running it using command: pyqt5designer

It should set all the paths for libraries.

Works on Python 3.8, pyqt5-tool 5.15

like image 26
M. Stefański Avatar answered Sep 20 '22 19:09

M. Stefański