py2exe问题 [英] py2exe problems

查看:81
本文介绍了py2exe问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在尝试使用py2exe将.py脚本编译成win .exe文件。

在该脚本中我使用的是xml .dom.minidom解析一个xml文件(使用iso8859-1编码)


我已经在安装命令行中包含了--packages编码

但是一旦我启动exe文件,我在控制台窗口中收到此错误:


Traceback(最近一次调用最后一次):

文件"< ;字符串>",第51行,在通知中

文件"< string>",第105行,在__init__

文件WindowsSnippets.pyc中,第27行,在__init__

文件WindowsSnippets.pyc,第135行,在loadXML中

文件xml\dom\minidom.pyc,第1915行,解析

文件" xml\dom\expatbuilder.pyc",第924行,解析

文件" xml\dom\expatbuilder.pyc" ;,第207行,在parseFile中

LookupError:没有编解码器搜索功能regi stered:找不到编码


如何解决这个问题?

Mayn谢谢


- -


Alessandro Crugnola

Hi,
i''m trying to compile a .py script using py2exe into a win .exe file.
In that script i''m using xml.dom.minidom to parse an xml file (with the iso8859-1 encoding)

i''ve included in the setup command line the --packages encodings
but once i launch the exe file i receive this error in the console window:

Traceback (most recent call last):
File "<string>", line 51, in Notify
File "<string>", line 105, in __init__
File "WindowsSnippets.pyc", line 27, in __init__
File "WindowsSnippets.pyc", line 135, in loadXML
File "xml\dom\minidom.pyc", line 1915, in parse
File "xml\dom\expatbuilder.pyc", line 924, in parse
File "xml\dom\expatbuilder.pyc", line 207, in parseFile
LookupError: no codec search functions registered: can''t find encoding

how can i solve the issue?
Mayn thanks

--

Alessandro Crugnola

推荐答案

" Alessandro Crugnola * sephiroth *" <人******** @ sephiroth.it>写道:
"Alessandro Crugnola *sephiroth*" <al********@sephiroth.it> writes:

我正在尝试使用py2exe将.py脚本编译成win .exe文件。
在那个脚本中我''使用xml.dom.minidom解析xml文件(使用iso8859-1编码)

我已经在安装命令行中包含了--packages编码
但是有一次我启动exe文件我在控制台窗口中收到此错误:

Traceback(最近一次调用最后一次):
文件"< string>",第51行,Notify
文件"< string>",第105行,在__init__
文件" WindowsSnippets.pyc"第27行,在__init__
文件WindowsSnippets.pyc,第135行,in loadXML
文件xml\dom\minidom.pyc,第1915行,解析
文件xml\dom\expatbuilder.pyc,第924行,解析
文件" xml\dom\expatbuilder.pyc",第207行,在parseFile中
LookupError:没有注册编解码器搜索功能:c找不到编码

如何解决这个问题?
Hi,
i''m trying to compile a .py script using py2exe into a win .exe file.
In that script i''m using xml.dom.minidom to parse an xml file (with the iso8859-1 encoding)

i''ve included in the setup command line the --packages encodings
but once i launch the exe file i receive this error in the console window:

Traceback (most recent call last):
File "<string>", line 51, in Notify
File "<string>", line 105, in __init__
File "WindowsSnippets.pyc", line 27, in __init__
File "WindowsSnippets.pyc", line 135, in loadXML
File "xml\dom\minidom.pyc", line 1915, in parse
File "xml\dom\expatbuilder.pyc", line 924, in parse
File "xml\dom\expatbuilder.pyc", line 207, in parseFile
LookupError: no codec search functions registered: can''t find encoding

how can i solve the issue?




您使用的是哪个Python版本? 2.3还没有正常工作,但是

2.2应该没问题。


Thomas



Which Python version are you using? 2.3 doesn''t yet work correctly, but
2.2 should be ok.

Thomas


>您使用的是哪个Python版本? 2.3还没有正常工作,但
> Which Python version are you using? 2.3 doesn''t yet work correctly, but
2.2应该没问题。




感谢快速回复..

我现在正在使用python 2.3 ..

我会尝试回到2.2并让你知道


-


Alessandro Crugnola [sephiroth]

Flash | PHP开发人员
http://www.sephiroth.it


对不起,但它也给了我同样的警告也使用python 2.2.3


-

Alessandro Crugnola [sephiroth]

Flash | PHP开发人员
http://www.sephiroth.it


团队Macromedia Flash志愿者
http:// www.macromedia.com/go/team

Flash-php邮件列表
http://www.flash-php.it/index.php?ml...tion=subscribe


" Alessandro Crugnola * sephiroth *" <人******** @ sephiroth.it> ha scritto nel messaggio新闻:xG ******************** @ news1.tin.it ...
i''m sorry, but it gives me the same warning also using python 2.2.3

--

Alessandro Crugnola [sephiroth]
Flash | PHP Developer
http://www.sephiroth.it

Team Macromedia Volunteer for Flash
http://www.macromedia.com/go/team

Flash-php mailing list
http://www.flash-php.it/index.php?ml...tion=subscribe

"Alessandro Crugnola *sephiroth*" <al********@sephiroth.it> ha scritto nel messaggio news:xG********************@news1.tin.it...
您使用的是哪个Python版本? 2.3还没有正常工作,但是
2.2应该没问题。
Which Python version are you using? 2.3 doesn''t yet work correctly, but
2.2 should be ok.



感谢快速回复..
我现在正在使用python 2.3事实上......
我会尽量回到2.2,让你知道

-

Alessandro Crugnola [sephiroth]
Flash | PHP开发人员
http://www.sephiroth.it



这篇关于py2exe问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆