[Soldved]: [Pythonmac-SIG] Using StandaloneZODB on MOSX

tmk lists@netelligent.biz
Sat, 20 Apr 2002 17:32:52 +0200


On Wednesday, April 17, 2002, at 12:19 PM, tmk wrote:

> Yo,
>
> Has anybody successfully used StandaloneZODB from 
> http://www.zope.org/Products/StandaloneZODB on Mac OS X?
>
> It seems to compile without a problem (I just followed the 
> instructions in the README) but when I try to run the test "python 
> test.py" I get a "Bus error"

The problem turned out to be very stupid...
Since some suggested that Zope "preferred" 2.1.3 I,I compiled and 
installed 2.1.3 and it seems to work with it. (I read somewhere on 
the Zope site that Zope is not and apparently will not be 
compatible w/ 2.2x

Here the sequence of steps I performed

--- cut

cd into the python 2.1.3 directory

./configure --with-suffix=.exe --with-dyld
make
sudo make install
cd /usr/local/bin
mv python.exe zython 		# This is zope python ;-)...
mv python2.1.exe zython2.1.3

Open a new shell window		# The shell doesn't immediately
							# findprograms newly installed
							# in its path

cd to the StandaloneZODB folder

zython setup.py build
zython test.py -v -v 		# Takes some time to finish
                             #(321.460s on my cube)
zython setup.py install

Test the installation

Open a new shell window 	# See above for the reason why
                             # There must be a more clever way
cd ~
zython
 >>> import ZODB
 >>> import ZODB.FileStorage
 >>> ZODB.FileStorage.__version__
'1.75.16.8'
 >>>

OMM 3 tests fail (see below) doesn't seem to be a major bug 
(floating point date arithmetics?) so I'll look into it later.

HTH

= tmk =

--- cut

[localhost:~/Documents/tmp/StandaloneZODB-1.0] tmk% python21 test.py
======================================================================
FAIL: checkFullTimeStamp (ZODB.tests.testTimeStamp.TimeStampTests)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "lib.darwin-5.4-Power 
Macintosh-2.1/ZODB/tests/testTimeStamp.py", line 35, in 
checkFullTimeStamp
     self.assertEquals(ts.timeTime() + time.timezone, time.mktime(t))
   File "/usr/local/lib/python2.1/unittest.py", line 273, in 
failUnlessEqual
     raise self.failureException, (msg or '%s != %s' % (first, second))
AssertionError: 1019306940.0 != 1019310540.0
======================================================================
FAIL: checkFullTimeStamp (ZODB.tests.testTimeStamp.TimeStampTests)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "lib.darwin-5.4-Power 
Macintosh-2.1/ZODB/tests/testTimeStamp.py", line 35, in 
checkFullTimeStamp
     self.assertEquals(ts.timeTime() + time.timezone, time.mktime(t))
   File "/usr/local/lib/python2.1/unittest.py", line 273, in 
failUnlessEqual
     raise self.failureException, (msg or '%s != %s' % (first, second))
AssertionError: 1019307055.0 != 1019310655.0
======================================================================
FAIL: checkFullTimeStamp (ZODB.tests.testTimeStamp.TimeStampTests)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "lib.darwin-5.4-Power 
Macintosh-2.1/ZODB/tests/testTimeStamp.py", line 35, in 
checkFullTimeStamp
     self.assertEquals(ts.timeTime() + time.timezone, time.mktime(t))
   File "/usr/local/lib/python2.1/unittest.py", line 273, in 
failUnlessEqual
     raise self.failureException, (msg or '%s != %s' % (first, second))
AssertionError: 1019307168.0 != 1019310768.0
----------------------------------------------------------------------
Ran 1899 tests in 323.890s

FAILED (failures=3)