2006年04月12日 星期三 21:44
我想学习用py2exe发布软件。 我的py2exe的脚本如下: from distutils.core import setup import py2exe setup(windows=["main.py"], name='palaver', description="palaver is a p2p software", version='0.05', ) 编译过程很顺利,但运行main.exe时出现如下问题: Traceback (most recent call last): File "main.py", line 20, in ? File "gtkFE\__init__.pyc", line 18, in ? File "gtkFE\gtkDialogs.pyc", line 17, in ? File "gtk\__init__.pyc", line 45, in ? File "gtk\_gtk.pyc", line 12, in ? File "gtk\_gtk.pyc", line 10, in __load ImportError: No module named cairo. cairo模块,我已装,并且那个python文件(main.py)可以良好运行。 请问一下,我该怎么办? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060412/64bb6b5c/attachment.html
2006年04月17日 星期一 21:38
看看这个,也许有点帮助 http://starship.python.net/crew/theller/moin.cgi/Py2exeAndPyGTK 在 06-4-12,boyeestudio<boyee118 at gmail.com> 写道: > > > 我想学习用py2exe发布软件。 > 我的py2exe的脚本如下: > > > from distutils.core import setup > import py2exe > > setup(windows=["main.py"], > name='palaver', > description="palaver is a p2p software", > version='0.05', > ) > > 编译过程很顺利,但运行main.exe时出现如下问题: > > Traceback (most recent call last): > File "main.py", line 20, in ? > File "gtkFE\__init__.pyc", line 18, in ? > File "gtkFE\gtkDialogs.pyc", line 17, in ? > File "gtk\__init__.pyc", line 45, in ? > File "gtk\_gtk.pyc", line 12, in ? > File "gtk\_gtk.pyc", line 10, in __load > ImportError: No module named cairo. > > cairo模块,我已装,并且那个python文件(main.py)可以良好运行。 > > 请问一下,我该怎么办? > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to > python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to > python-chinese-request at lists.python.cn > Detail Info: > http://python.cn/mailman/listinfo/python-chinese > >
Zeuux © 2025
京ICP备05028076号