Python论坛  - 讨论区

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

2004年04月26日 星期一 20:22

CHEN Guang (Oliver) oliver_guang_chen at yahoo.com.cn
Mon Apr 26 20:22:44 HKT 2004

C:\>python setup.py py2exe
其余的参数都放在 setup.py 内部了。
我没试过 win2000 

 --- Anew <Anewboy at citiz.net> 的正文:> CHEN Guang
\(Oliver\),您好!
> 
> 
>
我所用的系统是win2000,因该是和XP一样也支持unicode的,但是就是不行......
> 	你用py2exe打包的时候用什么参数吗?
> 
> ======= 2004-04-26 14:56:00 您在来信中写道:=======
> 
> >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
> >_______________________________________________
> >python-chinese list
> >python-chinese at lists.python.cn
> >http://python.cn/mailman/listinfo/python-chinese
> >
> 
> = = = = = = = = = = = = = = = = = = = =
> 			
> 
>         致
> 礼!
>  
> 				 
>         Anew
>         Anewboy at citiz.net
>           2004-04-26
> 
> > _______________________________________________
> 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]

2004年04月26日 星期一 22:57

Zoom.Quiet zoomq at infopro.cn
Mon Apr 26 22:57:27 HKT 2004

Hollo CHEN:

  win2k 可以的,
在下以前就是在win2k 打包的win2k3 还没有试过……


/******** [2004-4-26]22:56:48 ; you wrote:

C:\>>python setup.py py2exe
CHEN Guang (Oliver)> 其余的参数都放在 setup.py 内部了。
CHEN Guang (Oliver)> 我没试过 win2000 

CHEN Guang (Oliver)>  --- Anew
CHEN Guang (Oliver)> <Anewboy at citiz.net> 的正文:> CHEN Guang
CHEN Guang (Oliver)> \(Oliver\),您好!
>> 
>> 
>>
CHEN Guang (Oliver)> 我所用的系统是win2000,因该是和XP一样也支持unicode的,但是就是不行......
>> 	你用py2exe打包的时候用什么参数吗?
>> 
>> ======= 2004-04-26 14:56:00 您在来信中写道:=======
>> 
>> >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
>> >_______________________________________________
>> >python-chinese list
>> >python-chinese at lists.python.cn
>> >http://python.cn/mailman/listinfo/python-chinese
>> >
>> 
>> = = = = = = = = = = = = = = = = = = = =
>> 			
>> 
>>         致
>> 礼!
>>  
>> 				 
>>         Anew
>>         Anewboy at citiz.net
>>           2004-04-26
>> 
>> > _______________________________________________
>> python-chinese list
>> python-chinese at lists.python.cn
>> http://python.cn/mailman/listinfo/python-chinese
>>  

CHEN Guang (Oliver)> _________________________________________________________
CHEN Guang (Oliver)> Do You Yahoo!? 
CHEN Guang (Oliver)> 惠普TT游戏剧,玩游戏,中大奖!
CHEN Guang (Oliver)> 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
CHEN Guang (Oliver)> _______________________________________________
CHEN Guang (Oliver)> python-chinese list
CHEN Guang (Oliver)> python-chinese at lists.python.cn
CHEN Guang (Oliver)> http://python.cn/mailman/listinfo/python-chinese


********************************************/

-- 
Free as in Freedom

 Zoom.Quiet                           

#=========================================#
]Time is unimportant, only life important![
#=========================================#

sender is the Bat!2.02 CE



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

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

    你的回复:

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

    Zeuux © 2024

    京ICP备05028076号