[PEAK] failing test
Phillip J. Eby
pje at telecommunity.com
Thu Jun 10 13:15:32 EDT 2004
At 09:57 AM 6/10/04 -0500, darryl wrote:
>FYI I've been getting this for a while when i run the unit tests.
>
>ERROR: checkSchemaLookup (peak.config.tests.ZConfigTests)
>----------------------------------------------------------------------
[snip]
> File "/usr/lib/python2.3/site-packages/_xmlplus/sax/__init__.py", line
> 31, in parse
> parser.parse(filename_or_stream)
> File "/usr/lib/python2.3/site-packages/_xmlplus/sax/expatreader.py",
> line 109, in parse
> xmlreader.IncrementalParser.parse(self, source)
> File "/usr/lib/python2.3/site-packages/_xmlplus/sax/xmlreader.py", line
> 123, i n parse
> self.feed(buffer)
> File "/usr/lib/python2.3/site-packages/_xmlplus/sax/expatreader.py",
> line 216, in feed
> self._parser.Parse(data, isFinal)
> File "/usr/lib/python2.3/site-packages/_xmlplus/sax/expatreader.py",
> line 395, in external_entity_ref
> self._source.getSystemId() or
> File "/usr/lib/python2.3/site-packages/_xmlplus/sax/saxutils.py", line
> 515, in prepare_input_source
> f = urllib2.urlopen(source.getSystemId())
> File "/usr/lib/python2.3/urllib2.py", line 129, in urlopen
> return _opener.open(url, data)
> File "/usr/lib/python2.3/urllib2.py", line 324, in open
> type_ = req.get_type()
> File "/usr/lib/python2.3/urllib2.py", line 226, in get_type
> raise ValueError, "unknown url type: %s" % self.__original
>ValueError: unknown url type:
>/usr/lib/python2.3/site-packages/ZConfig/doc/schem a.dtd
>
>----------------------------------------------------------------------
>Ran 668 tests in 10.886s
>
>FAILED (errors=1)
It looks to me like you have the xml-sig package (_xmlplus) installed, and
it's choking on the DTD filename. Why, I don't know. Perhaps you should
contact the XML SIG? AFAIK, it's perfectly normal to use a local
filesystem path as a "system ID" in an XML file's doctype declaration, so I
don't see what the problem is.
Interestingly, under plain Python 2.3 without the xml-sig package
installed, I get a different error, saying that the file is not
found. That is, there's no problem with it being a pathname, it just
apparently computes the *wrong* pathname!
In both cases, this seems like a bug in Python 2.3's XML handling to me,
since Python 2.2 works just fine, and when I use XML editing tools on files
with such "system ID"s they work just fine.
More information about the PEAK
mailing list