Re: [ZODB-Dev] ZODB fails on test
Thanks to everyone who answered. we installed pyhton 2.4.4 and things seem to be ok. -- Malka Cymbalista Webmaster, Weizmann Institute of Science [EMAIL PROTECTED] 08-934-3036 On 8/4/2008 at 11:36 AM, in message [EMAIL PROTECTED], Christian Theune [EMAIL PROTECTED] wrote: On Sun, 2008-08-03 at 08:52 -0400, Benji York wrote: On Sun, Aug 3, 2008 at 6:42 AM, Malka Cymbalista [EMAIL PROTECTED] wrote: We need ZODB3.4 because we are installing the Cern Document Server Indico package and this needs python 2.4 or later. We already had python 2.3.4 but we installed pythin 2.5 because of Indico. Do you think it would be possible to build ZODB3.4 with python 2.3.4 and build indico with python 2.5? Would this work or would it clash? We have no experience with python so we're not sure what to do. The above sounds to me like you have two different apps that require different versions of Python. If so, you can install two Pythons, and the correct Python for each app. I tried out Indico a while ago. Running with Python 2.4 will be fine. ___ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/ ZODB-Dev mailing list - ZODB-Dev@zope.org http://mail.zope.org/mailman/listinfo/zodb-dev ___ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/ ZODB-Dev mailing list - ZODB-Dev@zope.org http://mail.zope.org/mailman/listinfo/zodb-dev
[ZODB-Dev] ZODB fails on test
We are trying to install ZODB3-3.4.2 on a Linux machine running Red Hat Enterprise Linux AS release 4 and python 2.5.2. We ran python setup.py build which seemed to run ok except that we got very many warnings of the type In file included from Dependencies/BTrees-ZODB3-3.4.2/BTrees/BTreeModuleTemplate.c:335, from Dependencies/BTrees-ZODB3-3.4.2/BTrees/_IFBTree.c:34: Dependencies/BTrees-ZODB3-3.4.2/BTrees/BTreeItemsTemplate.c:389: warning: initialization from incompatible pointer type Dependencies/BTrees-ZODB3-3.4.2/BTrees/BTreeItemsTemplate.c:391: warning: `intargfunc' is deprecated (declared at /usr/local/include/python2.5/object.h:133) We then ran python test.py and got the results that are in the attached file. This does not look right. Can we continue with the installation? Any help will be appreciated. -- Malka Cymbalista Webmaster, Weizmann Institute of Science [EMAIL PROTECTED] 08-934-3036 Script started on Tue 29 Jul 2008 09:13:36 AM IDT [EMAIL PROTECTED] ZODB3-3.4.2]$ whoic[K[K[Kich pythgon[K[K[K[Khon /usr/local/bin/python [EMAIL PROTECTED] ZODB3-3.4.2]$ python test.py Running tests from build/lib.linux-x86_64-2.5 Traceback (most recent call last): File test.py, line 61, in module testrunner.run(defaults) File build/lib.linux-x86_64-2.5/zope/testing/testrunner.py, line 149, in run options = get_options(args, defaults) File build/lib.linux-x86_64-2.5/zope/testing/testrunner.py, line 1269, in get_options default_setup, _ = parser.parse_args(default_setup_args) File /usr/local/lib/python2.5/optparse.py, line 1385, in parse_args stop = self._process_args(largs, rargs, values) File /usr/local/lib/python2.5/optparse.py, line 1425, in _process_args self._process_long_opt(rargs, values) File /usr/local/lib/python2.5/optparse.py, line 1500, in _process_long_opt option.process(opt, value, values, self) File /usr/local/lib/python2.5/optparse.py, line 776, in process value = self.convert_value(opt, value) File /usr/local/lib/python2.5/optparse.py, line 768, in convert_value return self.check_value(opt, value) File /usr/local/lib/python2.5/optparse.py, line 763, in check_value return checker(self, opt, value) File /usr/local/lib/python2.5/optparse.py, line 420, in check_builtin return cvt(value) File /usr/local/lib/python2.5/optparse.py, line 407, in _parse_int return _parse_num(val, int) File /usr/local/lib/python2.5/optparse.py, line 394, in _parse_num if val[:2].lower() == 0x: # hexadecimal TypeError: 'int' object is unsubscriptable ___ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/ ZODB-Dev mailing list - ZODB-Dev@zope.org http://mail.zope.org/mailman/listinfo/zodb-dev
Re: [ZODB-Dev] ZODB fails on test
On Sun, 2008-08-03 at 11:36 +0300, Malka Cymbalista wrote: We are trying to install ZODB3-3.4.2 on a Linux machine running Red Hat Enterprise Linux AS release 4 and python 2.5.2. We ran python setup.py build which seemed to run ok except that we got very many warnings of the type In file included from Dependencies/BTrees-ZODB3-3.4.2/BTrees/BTreeModuleTemplate.c:335, from Dependencies/BTrees-ZODB3-3.4.2/BTrees/_IFBTree.c:34: Dependencies/BTrees-ZODB3-3.4.2/BTrees/BTreeItemsTemplate.c:389: warning: initialization from incompatible pointer type Dependencies/BTrees-ZODB3-3.4.2/BTrees/BTreeItemsTemplate.c:391: warning: `intargfunc' is deprecated (declared at /usr/local/include/python2.5/object.h:133) We then ran python test.py and got the results that are in the attached file. This does not look right. Can we continue with the installation? Any help will be appreciated. ZODB 3.4 is rather old and it doesn't surprise me the tests won't even really start up with Python 2.5. Try .. uh .. Python 2.4 or maybe even 2.3. Christian ___ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/ ZODB-Dev mailing list - ZODB-Dev@zope.org http://mail.zope.org/mailman/listinfo/zodb-dev
Re: [ZODB-Dev] ZODB fails on test
--On 3. August 2008 13:42:27 +0300 Malka Cymbalista [EMAIL PROTECTED] wrote: Thanks very much for your answer. We need ZODB3.4 because we are installing the Cern Document Server Indico package and this needs python 2.4 or later. We already had python 2.3.4 but we installed pythin 2.5 because of Indico. Do you think it would be possible to build ZODB3.4 with python 2.3.4 and build indico with python 2.5? Would this work or would it clash? Basically no one can tell you about using unsupported software combinations. So you basically have to investigate it yourself. -aj pgp6MKzX6UjDx.pgp Description: PGP signature ___ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/ ZODB-Dev mailing list - ZODB-Dev@zope.org http://mail.zope.org/mailman/listinfo/zodb-dev
Re: [ZODB-Dev] ZODB fails on test
On Sun, Aug 3, 2008 at 6:42 AM, Malka Cymbalista [EMAIL PROTECTED] wrote: We need ZODB3.4 because we are installing the Cern Document Server Indico package and this needs python 2.4 or later. We already had python 2.3.4 but we installed pythin 2.5 because of Indico. Do you think it would be possible to build ZODB3.4 with python 2.3.4 and build indico with python 2.5? Would this work or would it clash? We have no experience with python so we're not sure what to do. The above sounds to me like you have two different apps that require different versions of Python. If so, you can install two Pythons, and the correct Python for each app. -- Benji York Senior Software Engineer Zope Corporation ___ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/ ZODB-Dev mailing list - ZODB-Dev@zope.org http://mail.zope.org/mailman/listinfo/zodb-dev
Re: [ZODB-Dev] ZODB fails on test
On Sun, Aug 03, 2008 at 11:36:41AM +0300, Malka Cymbalista wrote: We are trying to install ZODB3-3.4.2 on a Linux machine running Red Hat Enterprise Linux AS release 4 and python 2.5.2. ... We then ran python test.py and got the results that are in the attached file. This does not look right. Can we continue with the installation? Any help will be appreciated. ... [EMAIL PROTECTED] ZODB3-3.4.2]$ python test.py Running tests from build/lib.linux-x86_64-2.5 Traceback (most recent call last): File test.py, line 61, in module testrunner.run(defaults) File build/lib.linux-x86_64-2.5/zope/testing/testrunner.py, line 149, in run options = get_options(args, defaults) File build/lib.linux-x86_64-2.5/zope/testing/testrunner.py, line 1269, in get_options default_setup, _ = parser.parse_args(default_setup_args) File /usr/local/lib/python2.5/optparse.py, line 1385, in parse_args stop = self._process_args(largs, rargs, values) File /usr/local/lib/python2.5/optparse.py, line 1425, in _process_args self._process_long_opt(rargs, values) File /usr/local/lib/python2.5/optparse.py, line 1500, in _process_long_opt option.process(opt, value, values, self) File /usr/local/lib/python2.5/optparse.py, line 776, in process value = self.convert_value(opt, value) File /usr/local/lib/python2.5/optparse.py, line 768, in convert_value return self.check_value(opt, value) File /usr/local/lib/python2.5/optparse.py, line 763, in check_value return checker(self, opt, value) File /usr/local/lib/python2.5/optparse.py, line 420, in check_builtin return cvt(value) File /usr/local/lib/python2.5/optparse.py, line 407, in _parse_int return _parse_num(val, int) File /usr/local/lib/python2.5/optparse.py, line 394, in _parse_num if val[:2].lower() == 0x: # hexadecimal TypeError: 'int' object is unsubscriptable This is a rather interesting failure. It is caused by zope.testing.testrunner used in ZODB 3.4.2 assuming optparse accepts command line arguments that aren't strings. See http://zope3.pov.lt/trac/browser/zope.testing/tags/ZODB3.4.2/src/zope/testing/testrunner.py#L1257 You could fix that in your source tree by changing '--at-level', 1, to '--at-level', '1', in src/zope/testing/testrunner.py in your ZODB source tree and then rerunning setup.py build. Or you could switch to Python 2.3 or 2.4. Trying to use 3-year-old software (ZODB 3.4.2) in an unsupported configuration (Python 2.5) may have downsides. Marius Gedminas -- Anything can be made to work if you fiddle with it long enough. signature.asc Description: Digital signature ___ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/ ZODB-Dev mailing list - ZODB-Dev@zope.org http://mail.zope.org/mailman/listinfo/zodb-dev