Ошибка отсутствия модулей cx_Freeze

Я новичок в Python и cx_Freeze. Пожалуйста, помогите мне заставить его работать.

И выполните команду:

python setup.py build

Это выдает следующую ошибку.

Отсутствующие модули:

? Система импортирована из serial.serialcli

? TERMIOS импортированы из serial.serialposix

? clr импортирован из serial.serialcli

? wx, импортированный из wxversion

Я использую следующий файл setup.py.

# Let's start with some default (for me) imports...

from cx_Freeze import setup, Executable

# Process the includes, excludes and packages first

includes = []
excludes = ['_gtkagg', '_tkagg', 'bsddb', 'curses', 'email', 'pywin.debugger',
        'pywin.debugger.dbgcon', 'pywin.dialogs', 'tcl',
        'Tkconstants', 'Tkinter']
packages = []
path = []

GUI2Exe_Target_1 = Executable(
    # what to build
    script = "..\esp\main.py",
    initScript = None,
    base = 'Win32GUI',
    targetDir = r"dist",
    targetName = "acup_new.exe",
    compress = True,
    copyDependentFiles = True,
    appendScriptToExe = False,
    appendScriptToLibrary = False,
    icon = None
    )

setup(

    version = "0.1",
    description = "No Description",
    author = "No Author",
    name = "cx_Freeze Sample File",

    options = {"build_exe": {"includes": includes,
                 "excludes": excludes,
                 "packages": packages,
                 "path": path
                 }
           },

    executables = [GUI2Exe_Target_1]
    )
11
задан user977601 9 November 2011 в 04:19
поделиться