[Zope-dev] configuration error
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 ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: import error in python2.6
Hi, Can anybody tell me how to run the module ImplPython in python2.6 to check for syntax errors. Or is there any other means by which I can correct the import error of the module ImplPython? The error message is as follows:- Running tests at level 1 /home/zope/ztrunk26/lib/python/zope/schema/_field.py:24: DeprecationWarning: the sets module is deprecated from sets import Set as SetType Traceback (most recent call last): File ./test.py, line 117, in module sys.exit(testrunner.run(defaults)) File /home/zope/ztrunk26/lib/python/zope/testing/testrunner.py, line 932, in run failed = not run_with_options(options) File /home/zope/ztrunk26/lib/python/zope/testing/testrunner.py, line 1040, in run_with_options tests_by_layer_name = find_tests(options, found_suites) File /home/zope/ztrunk26/lib/python/zope/testing/testrunner.py, line 1615, in find_tests for suite in found_suites: File /home/zope/ztrunk26/lib/python/zope/testing/testrunner.py, line 1654, in find_suites for fpath, package in find_test_files(options): File /home/zope/ztrunk26/lib/python/zope/testing/testrunner.py, line 1735, in find_test_files for f, package in find_test_files_(options): File /home/zope/ztrunk26/lib/python/zope/testing/testrunner.py, line 1763, in find_test_files_ for (p, package) in test_dirs(options, {}): File /home/zope/ztrunk26/lib/python/zope/testing/testrunner.py, line 1818, in test_dirs p = import_name(p) File /home/zope/ztrunk26/lib/python/zope/testing/testrunner.py, line 1834, in import_name __import__(name) File /home/zope/ztrunk26/lib/python/AccessControl/__init__.py, line 17, in module from Implementation import setImplementation File /home/zope/ztrunk26/lib/python/AccessControl/Implementation.py, line 98, in module setImplementation(C) File /home/zope/ztrunk26/lib/python/AccessControl/Implementation.py, line 51, in setImplementation from AccessControl import ImplC as impl File /home/zope/ztrunk26/lib/python/AccessControl/ImplC.py, line 29, in module from ImplPython import RestrictedDTML, SecurityManager, ZopeSecurityPolicy ImportError: No module named ImplPython regards Bristow. On Mon, Jul 28, 2008 at 8:44 PM, Baiju M [EMAIL PROTECTED] wrote: Hi Bristow, Bristow Thankachan wrote: Hi, During the porting to python2.6, I'm stuck with the import error. I need your help to correct the error. The error message is give below:- from AccessControl import ImplC as impl File /home/zope/ztrunk26/lib/python/AccessControl/ImplC.py, line 29, in module from ImplPython import RestrictedDTML, SecurityManager, ZopeSecurityPolicy ImportError: No module named ImplPython. I tried copying the file ImplPython, then I got the following error message. File /home/zope/ztrunk26/lib/python/html_quote.py, line 4, in module from ustr import ustr ImportError: No module named ustr. So please help me to rectify the import errors. How can I move forward on correcting these import errors? Few days back you got a reply from Lennart regarding this issue ? http://mail.zope.org/pipermail/zope-dev/2008-July/032692.html Did you checked that ? Can you please verify whether there is any syntax error or not ? Also can you please provide full traceback of this error ? Regards, Baiju M ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Syntax error in python2.6
Hi everybody, During the porting of Zope2 to Python2.6, I am stuck with a syntax error in the module AccessControl, which is given below. def reorder(s, with=None, without=()): ^ SyntaxError: invalid syntax in line 56 of /home/zope/ztrunk26/lib/python/RestrictedPython/Utilities.py. The same code when run in python2.4 and python2.5 didn't give any syntax errors. Can anybody suggest the reason for this syntax error in python2.6. ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Syntax error in python2.6
Thank you for the quick response. I made the change and got the syntax error corrected. with regards Bristow. On Mon, Jul 21, 2008 at 4:57 PM, Tino Wildenhain [EMAIL PROTECTED] wrote: Bristow Thankachan wrote: Hi everybody, During the porting of Zope2 to Python2.6, I am stuck with a syntax error in the module AccessControl, which is given below. def reorder(s, with=None, without=()): ^ SyntaxError: invalid syntax in line 56 of /home/zope/ztrunk26/lib/python/RestrictedPython/Utilities.py. The same code when run in python2.4 and python2.5 didn't give any syntax errors. Can anybody suggest the reason for this syntax error in python2.6. I'd say, with is now a keyword. http://docs.python.org/ref/keywords.html btw, shouldn't this already give a warning in 2.5? Cheers Tino ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: Syntax error in python2.6
hi all, I changed the attribute 'with' in /home/zope/ztrunk26/lib/python/RestrictedPython/Utilities.py to 'wit' and I ran the tests in python2.4 and I got the following result. Running tests at level 1 Running unit tests: Running: Ran 285 tests with 0 failures and 0 errors in 6.587 seconds. Running Testing.ZopeTestCase.layer.ZopeLite tests: Set up Testing.ZopeTestCase.layer.ZopeLite in 0.000 seconds. Running: Ran 1 tests with 0 failures and 0 errors in 0.064 seconds. Tearing down left over layers: Tear down Testing.ZopeTestCase.layer.ZopeLite in 0.000 seconds. Total: 286 tests, 0 failures, 0 errors in 1.044 seconds. Can anybody tell me whether this implies it is backward compatible in python2.4? with regards Bristow On Mon, Jul 21, 2008 at 4:43 PM, Bristow Thankachan [EMAIL PROTECTED] wrote: Hi everybody, During the porting of Zope2 to Python2.6, I am stuck with a syntax error in the module AccessControl, which is given below. def reorder(s, with=None, without=()): ^ SyntaxError: invalid syntax in line 56 of /home/zope/ztrunk26/lib/python/RestrictedPython/Utilities.py. The same code when run in python2.4 and python2.5 didn't give any syntax errors. Can anybody suggest the reason for this syntax error in python2.6. ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] import error in python2.6
Hi all, During the porting of Zope2, I am stuck with import errors in many modules. The same code works well in python2.5 and 2.4. Can anybody give the details of this import error in python2.6 and how to get the error corrected? with regards Bristow ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] import error in python2.6
Hi all, I asked about the import error in python2.6 while trying to port zope2. The error message is given below. File /home/zope/ztrunk26/lib/python/AccessControl/ImplC.py, line 30, in module from ImplPython import RestrictedDTML, SecurityManager, ZopeSecurityPolicy ImportError: No module named ImplPython It works well in python2.4 and 2.5. Please give your suggestions. with regards Bristow ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] (no subject)
[EMAIL PROTECTED] ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )