Python论坛  - 讨论区

标题:[python-chinese] 我用py2exe中遇到的问题!

2006年04月12日 星期三 21:44

boyeestudio boyee118 at gmail.com
Wed Apr 12 21:44:03 HKT 2006

 我想学习用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

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年04月17日 星期一 21:38

tocer tocer.deng at gmail.com
Mon Apr 17 21:38:58 HKT 2006

看看这个,也许有点帮助
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
>
>

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号