From: Sebastian B. <seb...@go...> - 2010-11-29 20:59:47
|
Hi, im trying to make a setup.py and .exe for my python program. I got it compiled so far, but if I execute the resulting .exe skript it writes a .log file which says ImportError: No module named turbofan turbofan.py is the first module from the package to be included in the main script. Im new to writing the setup.py, too, so maybe there could be an error, too. The package structure: ================== gtdev -> src/ ----> __init__.py (this contains the __all__ variable, which contains the names of all modules) ----> gtdev.py (the main script) ----> turbofan.py (some module) ----> ... several other modules ... ----> gui/ ---------> some pyqt4 modules.... The setup.py: ========== # -*- coding: utf-8 -*- from distutils.core import setup import py2exe setup(name="Gas Turbine Developer", version="0.93", author="Sebastian Barthmes et al.", author_email="seb...@go...", url="www.sourceforge.com/projects/gtdev", license="GNU General Public License (GPL)", packages=['gtdev'], package_dir={'gtdev':'src'}, package_data={'gtdev':['gui/*.*']}, windows=[{"script":"src/gtdev.py"}], options={"py2exe": {"skip_archive": True, "includes": ["sip"]}} ) Do you have any guesses where I made an error? Thanks a lot for your time! Sebastian |