[XML-SIG] [ pyxml-Bugs-780081 ] Installing 0.8.2 breaks xml.dom
package (Python 2.3, OSX)
SourceForge.net
noreply at sourceforge.net
Wed Jul 30 02:35:44 EDT 2003
Bugs item #780081, was opened at 2003-07-30 18:35
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=106473&aid=780081&group_id=6473
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Stuart Bishop (zenzen)
Assigned to: Nobody/Anonymous (nobody)
Summary: Installing 0.8.2 breaks xml.dom package (Python 2.3, OSX)
Initial Comment:
0.8.2 builds and installs happily. However, 'import xml.dom'
no longer works:
Python 2.3c2+ (#12, Jul 25 2003, 12:58:00)
[GCC 3.1 20020420 (prerelease)] on darwin
Type "help", "copyright", "credits" or "license" for more
information.
>>> import xml.dom
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/Library/Frameworks/Python.framework/Versions/2.3/
lib/python2.3/site-packages/_xmlplus/dom/__init__.py", line
237, in ?
import MessageSource
File "/Library/Frameworks/Python.framework/Versions/2.3/
lib/python2.3/site-packages/_xmlplus/dom/
MessageSource.py", line 22, in ?
gettext.install('4Suite', locale_dir)
File "/Library/Frameworks/Python.framework/Versions/2.3/
lib/python2.3/gettext.py", line 428, in install
translation(domain, localedir,
fallback=True).install(unicode)
File "/Library/Frameworks/Python.framework/Versions/2.3/
lib/python2.3/gettext.py", line 416, in translation
t = _translations.setdefault(key, class_(open(mofile,
'rb')))
File "/Library/Frameworks/Python.framework/Versions/2.3/
lib/python2.3/gettext.py", line 176, in __init__
self._parse(fp)
File "/Library/Frameworks/Python.framework/Versions/2.3/
lib/python2.3/gettext.py", line 304, in _parse
tmsg = unicode(tmsg, self._charset)
LookupError: unknown encoding: CHARSET
>>> import xml.dom
>>>
Note that it works the second time you do 'import xml.dom'
in that session
Adding LookupError to the list of exceptions caught on line
22 of xml/dom/MessageSource.py seems to work around the
problem (no idea if this breaks other stuff though).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=106473&aid=780081&group_id=6473
More information about the XML-SIG
mailing list