<div dir="ltr">hi all,<br><br>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.<br>
<br><span class="HcCDpe"><span class="JDpiNd"><img class="Jx04sb QrVm3d" id="upi" name="upi" src="images/cleardot.gif" height="16" width="16"></span>Running tests at level 1<br>/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.<br>
import zlib, struct<br>Running unit tests:<br> Running:<br> 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<br>
raise 'unauthorized', 'x'<br>/home/zope/ztrunk25/lib/python/Zope2/App/startup.py:182: DeprecationWarning: raising a string exception is deprecated<br> raise<br> 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<br>
raise 'redirect', 'x'<br> 41/43 (95.3%) test_behavior (...artup.tests.test_warnfilter.TestWarnFilter)<br><br>Error in test test_behavior (Zope2.Startup.tests.test_warnfilter.TestWarnFilter)<br>Traceback (most recent call last):<br>
File "/home/zope/usr/lib/python2.5/unittest.py", line 260, in run<br> testMethod()<br> File "/home/zope/ztrunk25/lib/python/Zope2/Startup/tests/test_warnfilter.py", line 90, in test_behavior<br> """)<br>
File "/home/zope/ztrunk25/lib/python/Zope2/Startup/tests/test_warnfilter.py", line 69, in load_config_text<br> conf, handler = ZConfig.loadConfigFile(schema, sio)<br> File "/home/zope/ztrunk25/lib/python/ZConfig/loader.py", line 41, in loadConfigFile<br>
return _get_config_loader(schema, overrides).loadFile(file, url)<br> File "/home/zope/ztrunk25/lib/python/ZConfig/loader.py", line 75, in loadFile<br> return self.loadResource(r)<br> File "/home/zope/ztrunk25/lib/python/ZConfig/loader.py", line 229, in loadResource<br>
self._parse_resource(sm, resource)<br> File "/home/zope/ztrunk25/lib/python/ZConfig/loader.py", line 280, in _parse_resource<br> parser.parse(matcher)<br> File "/home/zope/ztrunk25/lib/python/ZConfig/cfgparser.py", line 57, in parse<br>
section = self.end_section(section, line[2:-1])<br> File "/home/zope/ztrunk25/lib/python/ZConfig/cfgparser.py", line 112, in end_section<br> self.error(e[0])<br> File "/home/zope/ztrunk25/lib/python/ZConfig/cfgparser.py", line 177, in error<br>
raise ZConfig.ConfigurationSyntaxError(message, self.url, self.lineno)<br>ConfigurationSyntaxError: invalid warning category: 'Zope2.Startup.tests.test_warnfilter.TestSchemaWarning' (line 8)<br><br><br> Ran 43 tests with 0 failures and 1 errors in 15.046 seconds.<br>
<br>Tests with errors:<br> test_behavior (Zope2.Startup.tests.test_warnfilter.TestWarnFilter)<br><br><br>regards<br><br>Bristow<br></span></div>