From: Francesc A. <fa...@op...> - 2003-07-31 23:48:01
|
A Dijous 31 Juliol 2003 23:12, vareu escriure: > My enviornment is windows XP pro. I installed everything as outlined in > your email. I just upgraded to pytables 0.7 and it fails the following > two test cases (test_create, and test_tree). My program was also > crashing. Here is the output from running test_all: > Mmm... Which HDF5 libraries are you using, the winxp-net, the win2k or have you compiled it yourself?. I've also detected problems with the .NET version of the libs (see the "Caveat" note at the "Binary Installation" section: http://pytables.sourceforge.net/html-doc/usersguide2.html#section2.2). > C:\programming\pytables-0.7\test>test_all.py > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > -=-= > PyTables version: 0.7 > Extension version: $Id: hdf5Extension.pyx,v 1.68 2003/07/25 14:31:57 > falted Exp > $ > HDF5 version: 1.6.0 > numarray version: 0.6 > LZO version: 1.07 (Oct 18 2000) > UCL version: 1.01 (Jan 02 2002) > Python version: 2.2.3 (#42, May 30 2003, 18:12:08) [MSC 32 bit > (Intel)] > Byte-ordering: little > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > -=-= > Numeric (version 23.0) is present. Adding the Numeric test suite. > .............................. > C:\programming\pytables-0.7\test> > > > I also wrote a small test program which crashes on 7717 iteration. It > seems to work fine for smaller number of iterations: > > from tables import * > > class Price(IsDescription): > year = Col("Float32", 1) # integer > month = Col("Int32", 1) # integer > day = Col("Int32", 1) # integer > hour = Col("Int32", 1) # integer > min = Col("Int32", 1) # integer > sec = Col("Int32", 1) # integer > open = Col("Int32", 1) # float (single-precision) > high = Col("Int32", 1) # float (single-precision) > low = Col("Int32", 1) # float (single-precision) > close = Col("Int32", 1) # double (double-precision) > volume = Col("Int32", 1) # double (double-precision) > > def main(): > # Open a file in "w"rite mode > fileh = openFile("c:/sp1.hd5", mode = "w") > > # Create a new table in newgroup group > table = fileh.createTable('/', name='table', description=Price, > compress=9) > price = table.row > > for row in range(10000): > print row > # First, assign the values to the price record > price['year'] = 0 > price['month'] = 0 > price['day'] = 0 > price['hour'] = 0 > price['min'] = 0 > price['sec'] = 0 > price['open'] = 0 > price['high'] = 0 > price['low'] = 0 > price['close'] = 0 > price['volume'] = 0 > # This injects the row values. > price.append() > > > # We need to flush the buffers in table in order to get an > # accurate number of records on it. > table.flush() > > # Finally, close the file > fileh.close() > > if __name__ == '__main__': > main() > > Let me know if you need any help. > > Thanks, > > Vineet -- Francesc Alted |