Py2Exe “Fehlende Module”

Ich versuche mein Python-Projekt mit Py2Exe in eine Exe zu konvertieren. Es ist bemerkenswert, dass sich cx_freeze über dieselben drei "fehlenden Module" beschwert, zusammen mit mehreren Dutzend anderen. Das Problem ist, niemand sagt irgendwo, wie man das löst.

Ich baue auf MS Windows XP 32-Bit (VirtualBox).

C:\Documents and Settings\Jason\Desktop\redstring2>python setup.py py2exe
running py2exe
running build_py
creating build
creating build\lib
copying redstring.py -> build\lib

  3 missing Modules
  ------------------
? readline                            imported from cmd, code, pdb
? win32api                            imported from platform
? win32con                            imported from platform
Building shared code archive 'dist\library.zip'.
Copy c:\windows\system32\python34.dll to dist
Copy C:\Python34\DLLs\select.pyd to dist\select.pyd
Copy C:\Python34\DLLs\_ssl.pyd to dist\_ssl.pyd
Copy C:\Python34\DLLs\_ctypes.pyd to dist\_ctypes.pyd
Copy C:\Python34\DLLs\_lzma.pyd to dist\_lzma.pyd
Copy C:\Python34\DLLs\_hashlib.pyd to dist\_hashlib.pyd
Copy C:\Python34\DLLs\pyexpat.pyd to dist\pyexpat.pyd
Copy C:\Python34\DLLs\_socket.pyd to dist\_socket.pyd
Copy C:\Python34\DLLs\_bz2.pyd to dist\_bz2.pyd
Copy C:\Python34\DLLs\unicodedata.pyd to dist\unicodedata.pyd

Mysetup.py ist wie folgt

#!/usr/bin/python python

from setuptools import setup
import py2exe

setup(name="Redstring",
    version="2.0",
    description="REDundant STRING generator",
    author="MousePaw Labs",
    url="http://www.mousepawgames.com/",
    author_email="[email protected]",
    data_files=[("", ["redstring.png", "redstring_interface.glade"])],
    py_modules=["redstring"],
    )

Dies ist ein Python 3.4-Projekt mit GTK + 3 (in Glade erstellt). Es läuft unter Ubuntu und von python redstring.py aus nur peachy, aber ich kann das Ding nicht dazu bringen, es in eine .exe zu kompilieren.

So weit ich versucht habeimport platform, from platform import win32api und dergleichen in beidenredstring.py undsetup.py, zusammen mit dem Importieren der Plattform über die py2exe-Optionen in der Setup-Datei.

Antworten auf die Frage(2)

Ihre Antwort auf die Frage