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
_______________________________________________
PySide mailing list
[email protected]
https://lists.qt-project.org/listinfo/pyside

Reply via email to