Python论坛  - 讨论区

标题:[python-chinese] unicodeÓÃpy2exe´ò°üµÄÎÊÌâ

2004年04月26日 星期一 14:56

CHEN Guang (Oliver) oliver_guang_chen at yahoo.com.cn
Mon Apr 26 14:56:34 HKT 2004

Anew 您好
我在 Win98 下运行也出现过类似的问题,后来改在 winXP
下运行就好了,XP 下做出来的 EXE 文件拿到 98
下也好用的。

 --- Anew <Anewboy at citiz.net> 的正文:>
python-chinese,您好!
> 
> 	我用py2exe打包的时候发生的一个问题。出现以下错误:
> 	
> 	LookupError: unknown encoding: gb2312
> 
> 
>
但如果不打成exe,直接运行的话没什么问题,但只要打成exe就是会出错!
>    
>
想得到的办法我都试了,可是就是不行,这是我的setup文件:
> 
> from distutils.core import setup
> import py2exe
> 
> setup(windows=["MainGuiApp.py"], 
>       options = {"py2exe": {"packages":
> ['encodings']}}, 
> ) 
> 
> 
> 	附: 引起错误的语句: unicode(html.getContent(),
> "gb2312")
> 
>         致
> 礼!
>  				
> 
>         Anew
>         Anewboy at citiz.net
>           2004-04-25
> > _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
>  

_________________________________________________________
Do You Yahoo!? 
惠普TT游戏剧,玩游戏,中大奖!
http://cn.rd.yahoo.com/mail_cn/tag/SIG=1402c0to2/**http%3A%2F%2Fhp.allyes.com%2Flaserjet%2Fgamestory%2Findex.html%3Fjumpid%3Dex_hphqapcn_MongooseLJ1010%2F201073CN407016%2FYahoo


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

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

    你的回复:

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

    Zeuux © 2025

    京ICP备05028076号