Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > py2exe, PyXML, and utf-16-be Error

Reply
Thread Tools

py2exe, PyXML, and utf-16-be Error

 
 
David Brownell
Guest
Posts: n/a
 
      08-23-2004
I am using the XMLValidateParser in the PyXML library
(xml.sax.sax2exts.XMLValParserFactory.make_parser) . When I run my
script, everything works as expected.

When I "compile" my script using py2exe, I get the following error
when running the exe:

Traceback (most recent call last):
<my modules removed for brevity>
File "xml\sax\sax2exts.pyc", line 13, in make_parser
File "xml\sax\saxexts.pyc", line 64, in make_parser
File "xml\sax\saxexts.pyc", line 42, in _create_parser
File "xml\sax\drivers2\drv_xmlproc.pyc", line 9, in ?
File "xml\parsers\xmlproc\xmlproc.pyc", line 14, in ?
File "xml\parsers\xmlproc\dtdparser.pyc", line 12, in ?
File "xml\parsers\xmlproc\xmlutils.pyc", line 43, in ?
LookupError: unknown encoding: utf-16-be

While using py2exe, I specify "--packages xml". Is there something
else I need to specify to enable utf-16-be encoding?

Thanks in advance for your help!
David Brownell
 
Reply With Quote
 
 
 
 
Thomas Heller
Guest
Posts: n/a
 
      08-23-2004
http://www.velocityreviews.com/forums/(E-Mail Removed) (David Brownell) writes:

> I am using the XMLValidateParser in the PyXML library
> (xml.sax.sax2exts.XMLValParserFactory.make_parser) . When I run my
> script, everything works as expected.
>
> When I "compile" my script using py2exe, I get the following error
> when running the exe:
>
> Traceback (most recent call last):
> <my modules removed for brevity>
> File "xml\sax\sax2exts.pyc", line 13, in make_parser
> File "xml\sax\saxexts.pyc", line 64, in make_parser
> File "xml\sax\saxexts.pyc", line 42, in _create_parser
> File "xml\sax\drivers2\drv_xmlproc.pyc", line 9, in ?
> File "xml\parsers\xmlproc\xmlproc.pyc", line 14, in ?
> File "xml\parsers\xmlproc\dtdparser.pyc", line 12, in ?
> File "xml\parsers\xmlproc\xmlutils.pyc", line 43, in ?
> LookupError: unknown encoding: utf-16-be
>
> While using py2exe, I specify "--packages xml". Is there something
> else I need to specify to enable utf-16-be encoding?


I would guess "--packages xml,encodings" should do the trick.

Thomas
 
Reply With Quote
 
 
 
 
David Brownell
Guest
Posts: n/a
 
      08-24-2004
Thanks, Thomas, that did the trick.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Emacs VHDL-mode Next-Error, Previous-Error, and First-Error are not working...? BlackHelicopter VHDL 2 02-12-2013 01:12 AM
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0xffc Thread 0x228 DBC 0x437b94 Jet'. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr bazzer ASP .Net 0 03-30-2006 03:16 PM
Error connecting to SQLExpress 2005 locally (error: 26 - Error Locating Server/Instance Specified) hfk0 ASP .Net 2 03-27-2006 08:43 PM
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x8fc Thread 0x934 DBC 0x437b94 Jet'. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr bazzer ASP .Net 1 03-24-2006 04:20 PM
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x8fc Thread 0x934 DBC 0x437b94 Jet'. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr bazzer ASP .Net 0 03-24-2006 02:22 PM



Advertisments