Cx_freeze + PyQt5 + python

I run in circles with a really strange thing. Basically I am trying to create a simple window with PyQt5 + python3.3 + cx_freeze4.3.2. The problem is the perfect python call:

python test.py

Now the second part of the basic setup.py for cx_freeze:

import sys
from cx_Freeze import setup, Executable

base = None
if sys.platform == 'win32':
    base = 'Win32GUI'

options = {
    'build_exe': {
        'includes': 'atexit'
    }
}

executables = [
    Executable('test.py', base=base)
]

setup(name='test',
      version='0.1',
      description='test',
      options=options,
      executables=executables
      )

build it:

python test.py build

The following folder has been created:

builds / exe.win32-3.3:

/platforms
/imageformats
test.exe
icudt49.dll
icuin49.dll
icuuc49.dll
libGLESv2.dll
library.zip
PyQt5.QtCore.pyd
PyQt5.QtGui.pyd
PyQt5.QtWidgets.pyd
python33.dll
Qt5Core.dll
Qt5Gui.dll
Qt5Widgets.dll
sip.pyd
unicodedata.pyd
_bz2.pyd

Now running test.exe works fine, as it should be.

The problem occurs when I copy the build folder to another computer. Error message appears when running test.exe

This application could not be started because it could not find or load the QT platform plug-in "windows".

Available platform plugin: minimal, offscreen, windows.

Reinstalling the application may fix this problem.

, dll plataforms/.exe, qwindow.dll . (win7)? (win7) . , qwindow.dll plataforms/, plataformFOO/ test.exe ​​ dev-, DLL , plataforms/ . , , , , - , .

google, , . - ;)

+4
2

, Anaconda 4.4.0 Python 2.7.13 PyQt5 cx_Freeze 5.0.1

anaconda/library/plugin/platform , .exe.

0

, cx_freeze ( python). , TTK (colorchooser ttk, ).

, , Python py2exe 64- .

-5

All Articles