[PySide] Creating deployable GUI app

Mark list at qtrac.plus.com
Wed Feb 27 15:25:30 CET 2019


I found a solution for the problem with cx-freeze.

In my main.pyw file I add these lines (and of course, I copy the plugins 
dir into the build dir):

if getattr(sys, 'frozen', False):
     plugins = os.path.join(os.path.dirname(sys.executable), 'plugins'))
else:
     if sys.maxsize > 2 ** 32: # 64-bit
         plugins = r'C:\bin\py36\Lib\site-packages\PySide2\plugins'
     else:
         plugins = r'C:\bin\py36x32\Lib\site-packages\PySide2\plugins'
os.environ['QT_PLUGIN_PATH'] = plugins
del plugins

Now at least I get past the original error.

However, now I hit:
https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-932?filter=allopenissues


More information about the PySide mailing list