[Zope-dev] configuration error

Bristow Thankachan bristow.thankachan at gmail.com
Sat Aug 23 06:23:51 EDT 2008


hi all,

We are stuck with a configuration error in porting zope2 to python2.5. Can
anybody help us in fixing configuration error in the module Zope2.  The full
log of error message is given below.

Running tests at level 1
/home/zope/ztrunk25/lib/python/ZPublisher/HTTPResponse.py:19:
RuntimeWarning: Python C API version mismatch for module zlib: This Python
has API version 1013, module zlib has version 1012.
  import zlib, struct
Running unit tests:
  Running:
    6/43 (14.0%) testStringException1
(....testExceptionHook.ExceptionHookTest)/home/zope/ztrunk25/lib/python/Zope2/App/tests/testExceptionHook.py:120:
DeprecationWarning: raising a string exception is deprecated
  raise 'unauthorized', 'x'
/home/zope/ztrunk25/lib/python/Zope2/App/startup.py:182: DeprecationWarning:
raising a string exception is deprecated
  raise
    7/43 (16.3%) testStringException2
(....testExceptionHook.ExceptionHookTest)/home/zope/ztrunk25/lib/python/Zope2/App/tests/testExceptionHook.py:125:
DeprecationWarning: raising a string exception is deprecated
  raise 'redirect', 'x'
    41/43 (95.3%) test_behavior
(...artup.tests.test_warnfilter.TestWarnFilter)

Error in test test_behavior
(Zope2.Startup.tests.test_warnfilter.TestWarnFilter)
Traceback (most recent call last):
  File "/home/zope/usr/lib/python2.5/unittest.py", line 260, in run
    testMethod()
  File
"/home/zope/ztrunk25/lib/python/Zope2/Startup/tests/test_warnfilter.py",
line 90, in test_behavior
    """)
  File
"/home/zope/ztrunk25/lib/python/Zope2/Startup/tests/test_warnfilter.py",
line 69, in load_config_text
    conf, handler = ZConfig.loadConfigFile(schema, sio)
  File "/home/zope/ztrunk25/lib/python/ZConfig/loader.py", line 41, in
loadConfigFile
    return _get_config_loader(schema, overrides).loadFile(file, url)
  File "/home/zope/ztrunk25/lib/python/ZConfig/loader.py", line 75, in
loadFile
    return self.loadResource(r)
  File "/home/zope/ztrunk25/lib/python/ZConfig/loader.py", line 229, in
loadResource
    self._parse_resource(sm, resource)
  File "/home/zope/ztrunk25/lib/python/ZConfig/loader.py", line 280, in
_parse_resource
    parser.parse(matcher)
  File "/home/zope/ztrunk25/lib/python/ZConfig/cfgparser.py", line 57, in
parse
    section = self.end_section(section, line[2:-1])
  File "/home/zope/ztrunk25/lib/python/ZConfig/cfgparser.py", line 112, in
end_section
    self.error(e[0])
  File "/home/zope/ztrunk25/lib/python/ZConfig/cfgparser.py", line 177, in
error
    raise ZConfig.ConfigurationSyntaxError(message, self.url, self.lineno)
ConfigurationSyntaxError: invalid warning category:
'Zope2.Startup.tests.test_warnfilter.TestSchemaWarning' (line 8)


  Ran 43 tests with 0 failures and 1 errors in 15.046 seconds.

Tests with errors:
   test_behavior (Zope2.Startup.tests.test_warnfilter.TestWarnFilter)


regards

Bristow
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope-dev/attachments/20080823/d313b9b2/attachment.html 


More information about the Zope-Dev mailing list