I'm trying to convert my python project into an exe using Py2Exe. It is worth noting that cx_freeze complains about the same three "missing modules", along with several dozen others. The problem is, no one anywhere tells how to resolve this.
I'm building on 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
My setup.py
is as follows.
#!/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="info@mousepawgames.com", data_files=[("", ["redstring.png", "redstring_interface.glade"])], py_modules=["redstring"], )
This is a Python 3.4 project using GTK+ 3 (built in Glade). It runs just peachy on Ubuntu, and from python redstring.py, but I can't get the thing to compile down to an .exe.
So far I tried import platform
, from platform import win32api
, and all the like in both redstring.py
and setup.py
, along with importing platform via py2exe options in the setup file.