py2app错误

时间:2017-06-24 09:33:33

标签: py2app

我在一个简单的test.py应用程序上测试py2app,没什么特别的。

python == 3.6
py2app == 0.14

当我提供此命令时,它构建正常,没有错误:

python3.6 setup.py py2app -A

但是当我启动它时,结果就是这样:

./dist/test.app/Contents/MacOS/test 

Traceback (most recent call last):
  File "/Users/fabio/projvenv/dist/test.app/Contents/Resources/__boot__.py", line 132, in <module>
    _run()
  File "/Users/fabio/projvenv/dist/test.app/Contents/Resources/__boot__.py", line 126, in _run
    exec(compile(source, script, 'exec'), globals(), globals())
  File "/Users/fabio/projvenv/test.py", line 3, in <module>
    import tkinter
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tkinter/__init__.py", line 36, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ValueError: character U+6573552f is not in range [U+0000; U+10ffff]
2017-06-24 11:32:26.266 test[65341:8804502] test Error

1 个答案:

答案 0 :(得分:2)

降级到0.12为我解决了这个问题。更多的解决方法虽然可以修复,但此时对我来说还不错