[PySide] Creating deployable GUI app
Mark
list at qtrac.plus.com
Wed Feb 27 11:56:40 CET 2019
Hi Cristián,
I looked at the issue you mentioned but the problem I have doesn't get
anywhere near that far!
When I use PyInstaller and run the .exe I get:
'Fatal error detected' 'Failed to execute script
pyi_rth_multiprocessing'
And when I use cx-freeze and run the .exe I get:
'application failed to start because no qt platform plugin could be
initialized'
This is despite having a plugins folder with plugins/platforms etc.
So I still can't create a deployable package.
On 2019-02-27 09:19, Cristián Maureira-Fredes wrote:
> 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:
>
> https://github.com/pyinstaller/pyinstaller/issues/2137
>
> 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.
>
> Cheers
>
> ________________________________________
> 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
> https://lists.qt-project.org/listinfo/pyside
More information about the PySide
mailing list