我正在尝试使用py2app
创建一个mac可执行文件,但我收到Segmentation fault: 11
错误。
我有一个名为basic_app.py
的非常简单的应用程序,打印出“你好!”。我已经使用命令setup.py
创建了py2applet --make-setup basic_app.py
。
当我尝试使用命令build
创建dist
和python setup.py py2app
文件夹时,我得到以下堆栈跟踪,而我的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$
答案 0 :(得分:0)
let rec test = function
...
似乎与Python 3.6不兼容