Wednesday, 7 August 2019

pyqt - Can't run my pyinstaller made .exe app with PyQt5 on Windows 10?

On Win10 64bit I installed PyQt5_5.4.1 for Python3.4.3. I need 3.4.3 for supporting XP clients and this is the last version that can be installed on XP. PyQt5 installed itself in python3.4.3 folder C:\Python34 and I can see it in PATH C:\Python34\Lib\site-packages\PyQt5


When I run my script with python myscript.py everything is fine, the gui window shows. However, when I try to run an .exe file from that script created with pyinstaller like this pyinstaller myscript.py --onefile I get an error:


Qt: Untested Windows version 10.0 detected!
This application failed to start because it
could not find or load the Qt platform plugin "windows".

Reinstalling the application may fix this problem.

This code I have in myscript.py:


from PyQt5 import QtWidgets, QtCore, QtGui

Is there a fix for this problem? I tried reinstaling PyQt5 but no luck.

No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...