[XML-SIG] PyXML 0.8.2+Python 2.3 CVS gives encoding error
Walter Dörwald
walter@livinglogic.de
Wed, 21 May 2003 22:45:38 +0200
This is a multi-part message in MIME format.
--------------010101020703000004010606
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit
PyXML 0.8.2 seems to be broken when used with the current CVS version
of Python.
Doing "import xml.dom" results in:
LookupError: unknown encoding: CHARSET
(see attachment for the complete stack trace)
The relevant file seems to be:
/usr/local/lib/python2.3/site-packages/_xmlplus/dom/en_US/LC_MESSAGES/4Suite.mo
I would have reported this on the SF bug tracker, but it's
not clear to me whether this should go to the Python, PyXML
or 4Suite trackers.
Bye,
Walter Dörwald
--------------010101020703000004010606
Content-Type: text/plain;
name="gettext-stacktrace.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="gettext-stacktrace.txt"
Python 2.3b1+ (#1, May 21 2003, 22:00:21)
[GCC 2.96 20000731 (Red Hat Linux 7.3 2.96-113)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import xml.dom
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/local/lib/python2.3/site-packages/_xmlplus/dom/__init__.py", line 237, in ?
import MessageSource
File "/usr/local/lib/python2.3/site-packages/_xmlplus/dom/MessageSource.py", line 22, in ?
gettext.install('4Suite', locale_dir)
File "/usr/local/lib/python2.3/gettext.py", line 428, in install
translation(domain, localedir, fallback=True).install(unicode)
File "/usr/local/lib/python2.3/gettext.py", line 416, in translation
t = _translations.setdefault(key, class_(open(mofile, 'rb')))
File "/usr/local/lib/python2.3/gettext.py", line 176, in __init__
self._parse(fp)
File "/usr/local/lib/python2.3/gettext.py", line 304, in _parse
tmsg = unicode(tmsg, self._charset)
LookupError: unknown encoding: CHARSET
--------------010101020703000004010606--