[PySide] Creating deployable GUI app

Cristián Maureira-Fredes Cristian.Maureira-Fredes at qt.io
Wed Feb 27 10:19:40 CET 2019

Hello Mark,

I personally recommend PyInstaller over cx_Freeze,
so I'm glad things worked out.
Regarding your issue there is a similar case here:


Are you using the latest PyInstaller and PySide2 versions?
There has been a couple of issues recently, like: https://bugreports.qt.io/browse/PYSIDE-942
but at the moment your error seems to be related to PyInstaller.

Maybe you can drop by our IRC channel on freenode #qt-pyside
and ask around when facing a new problem, since there are
many people currently using PyInstaller.


From: PySide <pyside-bounces at qt-project.org> on behalf of Mark <list at qtrac.plus.com>
Sent: 26 February 2019 19:50
To: pyside at qt-project.org
Subject: [PySide]  Creating deployable GUI app

I've now successfully used PyInstaller to create a 'dist' folder with
all the correct dependencies:

C:\> C:\bin\py36\Scripts\pyinstaller.exe ^
--noupx -y -D -w --clean --log-level WARN ^
-p "C:\Program Files (x86)\Windows Kits\10\Redist\ucrt\DLLs\x64" ^
-p "C:\bin\py36\\Lib\site-packages\shiboken2" ^
-n MyApp -i icon.ico myapp.py

This creates a dist subdir with a MyApp folder with all the correct
.pyd's and .dll's (as far as I can tell).

But when I run MyApp.exe I get a 'Fatal error detected' message saying
'Failed to execute script pyi_rth_pkgres'.

So now I'm stuck again!

Looking forward to the day the PySide2 project provides some nice
Qt-quality support for redeployment:-)
PySide mailing list
PySide at qt-project.org

More information about the PySide mailing list