PySide6 v6.3+ qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though it was found.
-
wrote on 17 Nov 2022, 12:11 last edited by
When using a version of PySide6 greater than v6.2.4 I am getting this error message
"qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though
it was found.
This application failed to start because no Qt platform plugin could be initiali
zed. Reinstalling the application may fix this problem.
Available platform plugins are: direct2d, minimal, offscreen, windows."I am using Python 3.10 and PyInstaller v5.6.2.
My app runs ok on development machine (W10) and on local network in W11, but when copied to remote server it fails with the above message.As long as I use PySide6 v 6.2.4 everything works ok.
If I try using Python 3.11 PySide6 refuses to load anything less than PySide6 v 6.4.0.1 and once again I experience same error.
-
wrote on 13 Dec 2022, 18:49 last edited by
@friedemannkleint said in PySide6 v6.3+ qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though it was found.:
Windows 2012 Server R2 is based on Windows 8.1; this is not supported by Qt 6. We also recommend nuitka or the newly created pyside6-deploy for deployment (see https://www.qt.io/blog/qt-for-python-release-6.4-is-finally-here ) since PyInstaller does not really support PySide6.
Thank you, tha's helpful info
-
When using a version of PySide6 greater than v6.2.4 I am getting this error message
"qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though
it was found.
This application failed to start because no Qt platform plugin could be initiali
zed. Reinstalling the application may fix this problem.
Available platform plugins are: direct2d, minimal, offscreen, windows."I am using Python 3.10 and PyInstaller v5.6.2.
My app runs ok on development machine (W10) and on local network in W11, but when copied to remote server it fails with the above message.As long as I use PySide6 v 6.2.4 everything works ok.
If I try using Python 3.11 PySide6 refuses to load anything less than PySide6 v 6.4.0.1 and once again I experience same error.
wrote on 17 Nov 2022, 12:17 last edited by@martinbrader
Hello and welcome.There are many posts like this. You need to start with
set QT_DEBUG_PLUGINS=1
environment variable and then run your Python script. Look through the diagnostic output till you see what error it reports as the reason. -
@martinbrader
Hello and welcome.There are many posts like this. You need to start with
set QT_DEBUG_PLUGINS=1
environment variable and then run your Python script. Look through the diagnostic output till you see what error it reports as the reason.wrote on 17 Nov 2022, 15:56 last edited by@JonB thanks Jon, tried that, the output didn't help.
I've tried pretty much everything else suggested in various other posts. -
@JonB thanks Jon, tried that, the output didn't help.
I've tried pretty much everything else suggested in various other posts.wrote on 17 Nov 2022, 15:59 last edited by@martinbrader said in PySide6 v6.3+ qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though it was found.:
the output didn't help.
Well that's a shame, but only you know what it had to say.
-
wrote on 12 Dec 2022, 16:08 last edited by
Tried again after upgrading to PySide6-Essentials==6.4.1 and pyinstaller==5.7.0
Everything runs ok on Windows 10 Desktop.
But when I transfer to Windows 2012 Server R2
Now getting different error message:
"ImportError: DLL load failed while importing QtGui: The specified procedure could not be found." -
wrote on 13 Dec 2022, 11:17 last edited by friedemannkleint
Windows 2012 Server R2 is based on Windows 8.1; this is not supported by Qt 6. We also recommend nuitka or the newly created pyside6-deploy for deployment (see https://www.qt.io/blog/qt-for-python-release-6.4-is-finally-here ) since PyInstaller does not really support PySide6.
-
wrote on 13 Dec 2022, 18:49 last edited by
@friedemannkleint said in PySide6 v6.3+ qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though it was found.:
Windows 2012 Server R2 is based on Windows 8.1; this is not supported by Qt 6. We also recommend nuitka or the newly created pyside6-deploy for deployment (see https://www.qt.io/blog/qt-for-python-release-6.4-is-finally-here ) since PyInstaller does not really support PySide6.
Thank you, tha's helpful info