[PEAK] failing test

darryl developer at csrules.dyndns.org
Thu Jun 10 10:57:21 EDT 2004


FYI I've been getting this for a while when i run the unit tests.

ERROR: checkSchemaLookup (peak.config.tests.ZConfigTests)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.3/site-packages/peak/config/tests/__init__.py", line 
35 0, in checkSchemaLookup
     ob = testRoot().lookupComponent(
   File "/usr/lib/python2.3/site-packages/peak/binding/components.py", 
line 356, in lookupComponent
     result = adapt(name, IComponentKey).findComponent( component, default )
   File "/usr/lib/python2.3/site-packages/peak/naming/names.py", line 
198, in fin dComponent
     return lookup(
   File "/usr/lib/python2.3/site-packages/peak/naming/api.py", line 53, 
in lookup
     return InitialContext(parent, **options).lookup(name,default)
   File "/usr/lib/python2.3/site-packages/peak/naming/contexts.py", line 
398, in lookup
     return self[name]
   File "/usr/lib/python2.3/site-packages/peak/naming/contexts.py", line 
357, in __getitem__
     if ctx is not self: return ctx[name]
   File "/usr/lib/python2.3/site-packages/peak/naming/contexts.py", line 
359, in __getitem__
     obj = self._getOb(name)
   File "/usr/lib/python2.3/site-packages/peak/naming/contexts.py", line 
445, in _getOb
     return self._deref(state, name)
   File "/usr/lib/python2.3/site-packages/peak/naming/contexts.py", line 
293, in _deref
     return ob.restore(self, name)
   File 
"/usr/lib/python2.3/site-packages/peak/naming/factories/references.py", 
l ine 34, in restore
     return factory.getObjectInstance(context, self, name)
   File "/usr/lib/python2.3/site-packages/peak/config/load_zconfig.py", 
line 38, in getObjectInstance
     return self.loadFile(ob.open('t'), str(url))
   File "/usr/lib/python2.3/site-packages/ZConfig/loader.py", line 80, 
in loadFil e
     return self.loadResource(r)
   File "/usr/lib/python2.3/site-packages/peak/config/load_zconfig.py", 
line 49, in loadResource
     result = super(SchemaLoader,self).loadResource(resource)
   File "/usr/lib/python2.3/site-packages/ZConfig/loader.py", line 137, 
in loadRe source
     schema = ZConfig.schema.parseResource(resource, self)
   File "/usr/lib/python2.3/site-packages/ZConfig/schema.py", line 43, 
in parseRe source
     xml.sax.parse(resource.file, parser)
   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)

-- 
http://randomthoughts.vandorp.ca/WK/blog



More information about the PEAK mailing list