通过搜索这就是我现在的 setup.py 。当我使用 -A 模式(别名)构建我的应用程序然后尝试运行它时,我收到此错误:
在控制台中,我发现此错误:
8/21/13 10:09:46.203 PM com.apple.launchd.peruser.501[249]: ([0x0-0x150d50c].org.pythonmac.unspecified.notebook_tracker[24469]) 退出代码:255
我的 setup.py 代码:
"""
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
"""
from setuptools import setup
APP = ['notebook_tracker.app']
DATA_FILES = ['notebook_tracker.pyw']
OPTIONS = {'argv_emulation': True,
'packages': ['openpyxl','Tkinter']}
setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
py_modules=['DialogTemplate','reports','customer','schedule','admin','log_data','payment']
)