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.

Fix for newest PyQt5 and standalone mode

See original GitHub issue

I tried to compile simple project with Qt5

nuitka --standalone --plugin-enable=qt-plugins --windows-icon="c:\convertor\icon.ico" "c:\convertor\convertor.py"

And after compilling it return to cmd: Traceback (most recent call last):

  File "c:\convertor\convertor.dist\convertor.py", line 2, in <module>
  File "c:\convertor\convertor.dist\PyQt5\__init__.py", line 41, in <module PyQt5>
  File "c:\convertor\convertor.dist\PyQt5\__init__.py", line 33, in find_qt
ImportError: unable to find Qt5Core.dll on PATH

qt5core.dll is in one folder with compilled .exe. If i add qt5core.dll to some of folder in path (for example in windows or python folder, but not for windpows/system32 although it in path too) - it works fine. Why it happend, and how to make it standalone?

programm text: https://pastebin.com/GsyHvTMk

1233333

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:32 (22 by maintainers)

github_iconTop GitHub Comments

5reactions
wfuller-invncommented, Oct 3, 2020

I was using nuitka 6.9.1, python 3.8.2-32 and PyQt 5.15.0 and encountered a similar issue ‘find_qt.py’. However it raised the following type error: ‘TypeError: expected str, bytes or os.PathLike object, not NoneType’

nuitka, and PyQt5 installed with PIP. running in a virtual environment Compiling through nuitka-utilities and fully hinted compilation

I was able to work around this by backdating pyqt5 to 5.12.3, the version debugged above.

Please let me know if this should be opened as a seperate issue

1reaction
kayhayencommented, Jul 3, 2019

@JorjMcKie yet again the issue template was not filled out, how sure are we this is recent Nuitka, because there used to be problems with unicode paths.

I really would tend to want to close these levels of issues without further investigation. But I am also blaming the issue template, maybe we need to make it more clear, that we do not support otherwise, I know you have been more lenient than I am. Ideally the issue template would be impossible to submit without filling out. 😕

Read more comments on GitHub >

github_iconTop Results From Across the Web

Packaging PyQt5 applications for Windows, with PyInstaller ...
You can fix this in one of two ways. Firstly, you can edit the previously created .spec file setting console=False under the EXE...
Read more >
CLI mode - call maya standalone from a pyqt5 UI tool
When creating a pyqt UI interface that will accept multiple maya scene files from user, what is the best way to call maya...
Read more >
Python and PyQt: Creating Menus, Toolbars, and Status Bars
In this step-by-step tutorial, you'll learn how to create, customize, and use Python menus, toolbars, and status bars for creating GUI applications using ......
Read more >
How to fix "Application failed to start because no Qt platform ...
How to fix "Application failed to start because no Qt platform plugin could be initialized" error in Windows? · Method 1. Copy relevant...
Read more >
Qt for Python Development Notes - Qt Wiki
Deploy and Project tool getting new fixes and features (qmlimportscanner) ... by default the new Enum implementation, in addition a compatibility mode is ......
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