question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to run PyQt6 app because no Qt platform plugin

See original GitHub issue

I’ve tried compiling a PyQt6 app using Nuitka 0.6.10.5, but the resulting executable raises an exception due to being unable to find Qt platform plugin. PyQt5 doesn’t have such issue.

Platform: Windows Python: 3.8.7 (x64) Nuitka: 0.6.10.5

Compiler command: nuitka --mingw64 --windows-disable-console --standalone --show-progress --plugin-enable=qt-plugins --plugin-enable=multiprocessing --include-package=dns --output-dir=C:\Users\home\Desktop\1 C:\Users\home\PycharmProjects\QYashmak\venv\project\Yashmak.py

CMD output when executing the resulting executable (windows console enabled): C:\Users\home\Desktop\1\Yashmak.dist>C:\Users\home\Desktop\1\Yashmak.dist\Yashmak.exe 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.

2021-01-23 105038

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
kayhayencommented, Nov 14, 2021

The plugin has no detector, make sure to do use --enable-plugin=pyqt6 and check help output for its options.

1reaction
kayhayencommented, Dec 3, 2021

This is part of the 0.6.18 release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix "Application failed to start because no Qt platform ...
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Read more >
pyqt5: This application failed to start because no Qt platform ...
Go to => Python38>lib>site-packages>PyQt5>Qt>plugins; In plugins copy platforms folder; After that go to Python38>lib>site-packages>PyQt5_tools> ...
Read more >
Application No Qt Platform Plugin Could Be Initialized? [Fixed]
One of the possible reasons for the “this application failed to start Qt platform Windows” error is third-party software conflicts. If you are ......
Read more >
This application failed to start because no Qt platform plugin ...
This application failed to start because no Qt platform plugin could be initialised. Reinstalling the application may fix this problem.
Read more >
his application failed to start because no qt platform plugin ...
I wanted to use the PyQt 6 library to create a small application as a practice. Download QT designer, installed all the necessary...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found