python3.4 setup.py py2app -A
但是当我尝试使用以下方法构建它时:
python3.4 setup.py py2app
我按照这篇文章的标题得到了错误信息.根据我所做的研究,我认为这是Pillow的一个问题;但是我需要Pillow这个应用程序. (除非我可以使用另一个模块导入图像??).我也试过cx_freeze而没有成功.
任何帮助或方向非常感谢.
完整回溯如下:
Traceback (most recent call last):file "setup.py",line 19,in <module>setup_requires=['py2app'],file "/library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/core.py",line 148,in setup dist.run_commands()file "/library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/dist.py",line 955,in run_commands self.run_command(cmd)file"/library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/dist.py",line 974,in run_command cmd_obj.run()file "/library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site- packages/py2app/build_app.py",line 659,in run self._run()file "/library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site- packages/py2app/build_app.py",line 865,in _run self.run_normal()file "/library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site- packages/py2app/build_app.py",line 959,in run_normal self.create_binarIEs(py_files,pkgdirs,extensions,loader_files)file "/library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site- packages/py2app/build_app.py",line 1214,in create_binarIEsplatfiles = mm.run()file "/library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/macholib/MachOStandalone.py",line 105,in runmm.run_file(fn)file "/library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/macholib/MachOGraph.py",line 84,in run_fileself.scan_node(m)file "/library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/macholib/MachOGraph.py",line 110,in scan_node m = self.load_file(filename,caller=node)file "/library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/macholib/MachOGraph.py",line 93,in load_filenewname = self.locate(name,loader=caller)file "/library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/macholib/MachOStandalone.py",line 23,in locatenewname = super(FilteredMachOGraph,self).locate(filename,loader)file "/library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/macholib/MachOGraph.py",line 49,in locateloader=loader.filename)TypeError: dyld_find() got an unexpected keyword argument 'loader'解决方法 这是一个临时解决方案,它可能会打破其他事情.我建议这样做是一个虚拟环境,所以你不要搞乱你的常规包.这对我有用(virtenv是我的虚拟环境的名称)
打开文件/virtenv/lib/python3.4/site-packages/macholib/dyld.py并用loader替换loader_path的每个实例.现在保存并重试.
总结以上是内存溢出为你收集整理的python-3.x – py2app TypeError:dyld_find()得到一个意外的关键字参数’loader’全部内容,希望文章能够帮你解决python-3.x – py2app TypeError:dyld_find()得到一个意外的关键字参数’loader’所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)