Python论坛  - 讨论区

标题:[python-chinese] 请教用py2exe打包后,重装系统后不能运行。

2007年06月23日 星期六 17:02

jason python.nbfan python.nbfan在gmail.com
星期六 六月 23 17:02:55 HKT 2007

错误提示:
Traceback (most recent call last):
  File "qnyxinfo.py", line 4, in 
  File "zipextimporter.pyo", line 82, in load_module
  File "wx\__init__.pyo", line 45, in 
  File "zipextimporter.pyo", line 82, in load_module
  File "wx\_core.pyo", line 4, in 
  File "zipextimporter.pyo", line 98, in load_module
ImportError: MemoryLoadLibrary failed loading wx\_core_.pyd


setup.py文件

CODE:
[Copy to clipboard]<http://bbs.chinaunix.net/viewthread.php?tid=953000&page;=1&extra;=page%3D1###>
#-*-coding=cp936-*-
from distutils.core import setup
import py2exe

includes = ["encodings", "encodings.*"]
options = {"py2exe":
            {   "compressed": 1,
                "optimize": 2,
                "includes": includes,
                "bundle_files": 1
            }
          }
setup(

    version = "0.1.0",
    description = ""
    name =""
    options = options,
    zipfile=None,
    windows=[{"script": "qnyxinfo.py",}],
)
请帮忙看下,谢谢。
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://python.cn/pipermail/python-chinese/attachments/20070623/c04e9791/attachment.html 

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

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

    你的回复:

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

    Zeuux © 2025

    京ICP备05028076号