py2app 不产生可执行文件。分段错误:11

py2app producing no executable. Segmentation fault: 11

我正在尝试使用 py2app 创建 mac 可执行文件,但出现 Segmentation fault: 11 错误。

我有一个名为 basic_app.py 的非常简单的应用程序,它打印出 'Hi there!'。我已经使用命令 py2applet --make-setup basic_app.py.

创建了 setup.py

当我尝试使用命令 python setup.py py2app 创建 builddist 文件夹时,我得到了以下堆栈跟踪,而我的 dist 文件夹是空的。这是 github 存储库:https://github.com/jonathanmetz/max-exe-example

lilcrawford:max-exe-example Jonnymetz$ python setup.py py2app running py2app creating /Users/Jonnymetz/github/max-exe-example/build creating /Users/Jonnymetz/github/max-exe-example/build/bdist.macosx-10.7-x86_64 creating /Users/Jonnymetz/github/max-exe-example/build/bdist.macosx-10.7-x86_64/python3.6-standalone creating /Users/Jonnymetz/github/max-exe-example/build/bdist.macosx-10.7-x86_64/python3.6-standalone/app creating /Users/Jonnymetz/github/max-exe-example/build/bdist.macosx-10.7-x86_64/python3.6-standalone/app/collect creating /Users/Jonnymetz/github/max-exe-example/build/bdist.macosx-10.7-x86_64/python3.6-standalone/app/temp creating /Users/Jonnymetz/github/max-exe-example/dist creating build/bdist.macosx-10.7-x86_64/python3.6-standalone/app/lib-dynload creating build/bdist.macosx-10.7-x86_64/python3.6-standalone/app/Frameworks --- Skipping recipe PIL --- *** using recipe: ctypes *** --- Skipping recipe PIL --- --- Skipping recipe docutils --- *** using recipe: ftplib *** --- Skipping recipe PIL --- --- Skipping recipe docutils --- *** using recipe: importlib *** --- Skipping recipe PIL --- --- Skipping recipe docutils --- --- Skipping recipe lxml --- --- Skipping recipe matplotlib --- *** using recipe: mimetypes *** --- Skipping recipe PIL --- --- Skipping recipe docutils --- --- Skipping recipe lxml --- --- Skipping recipe matplotlib --- --- Skipping recipe numpy --- *** using recipe: os_module *** --- Skipping recipe PIL --- --- Skipping recipe docutils --- --- Skipping recipe lxml --- --- Skipping recipe matplotlib --- --- Skipping recipe numpy --- *** using recipe: pydoc *** --- Skipping recipe PIL --- --- Skipping recipe docutils --- --- Skipping recipe lxml --- --- Skipping recipe matplotlib --- --- Skipping recipe numpy --- --- Skipping recipe pyenchant --- --- Skipping recipe pygame --- --- Skipping recipe pyopengl --- --- Skipping recipe pyside --- --- Skipping recipe pyzmq --- --- Skipping recipe qt5 --- *** using recipe: re *** --- Skipping recipe PIL --- --- Skipping recipe docutils --- --- Skipping recipe lxml --- --- Skipping recipe matplotlib --- --- Skipping recipe numpy --- --- Skipping recipe pyenchant --- --- Skipping recipe pygame --- --- Skipping recipe pyopengl --- --- Skipping recipe pyside --- --- Skipping recipe pyzmq --- --- Skipping recipe qt5 --- --- Skipping recipe scipy --- *** using recipe: setuptools *** --- Skipping recipe PIL --- --- Skipping recipe docutils --- --- Skipping recipe lxml --- --- Skipping recipe matplotlib --- --- Skipping recipe numpy --- --- Skipping recipe pyenchant --- --- Skipping recipe pygame --- --- Skipping recipe pyopengl --- --- Skipping recipe pyside --- --- Skipping recipe pyzmq --- --- Skipping recipe qt5 --- --- Skipping recipe scipy --- Segmentation fault: 11 lilcrawford:max-exe-example Jonnymetz$

py2app 似乎与 Python 3.6

不兼容