Hi All, i'm tring to learn to use pytables (i installed svn trunk), running it on a mac osx 10.6.2 with hdf5 1.6.x installed from source to import pytables i had to add this line in my mash_profile :
" export DYLB_PATH=/Library/Python/2.6/site-packages/tables/ " but following this notes : http://www.pytables.org/moin/HowToUse i get this error : In [1]: from tables import * In [2]: from tables import * In [3]: class Particle(IsDescription): ...: name = StringCol(16) ...: idnumber = Int64Col() ...: ADCcount = UInt16Col() ...: TDCcount = UInt8Col() ...: grid_i = Int32Col() ...: grid_j = Int32Col() ...: pressure = Float32Col() ...: energy = FloatCol() ...: ...: In [4]: filename = "test.h5" In [5]: h5file = openFile(filename, mode = "w", title = "Test file") HDF5-DIAG: Error detected in HDF5 (1.8.4-patch1) thread 0: #000: H5Adeprec.c line 159 in H5Acreate1(): not a type major: Invalid arguments to routine minor: Inappropriate type HDF5-DIAG: Error detected in HDF5 (1.8.4-patch1) thread 0: #000: H5A.c line 916 in H5Awrite(): not an attribute major: Invalid arguments to routine minor: Inappropriate type ------------------------------------------------------------ Traceback (most recent call last): File "<ipython console>", line 1, in <module> File "/Library/Python/2.6/site-packages/tables/file.py", line 242, in openFile return File(filename, mode, title, rootUEP, filters, **kwargs) File "/Library/Python/2.6/site-packages/tables/file.py", line 541, in __init__ root._g_postInitHook() File "/Library/Python/2.6/site-packages/tables/group.py", line 285, in _g_postInitHook setAttr('TITLE', self._v_new_title) File "/Library/Python/2.6/site-packages/tables/attributeset.py", line 394, in _g__setattr self._g_setAttr(self._v_node, name, stvalue) File "hdf5Extension.pyx", line 442, in tables.hdf5Extension.AttributeSet._g_setAttr HDF5ExtError: Can't set attribute 'TITLE' in node: / (RootGroup) ''. Initially i used hdf 1.8.4 patch1 but it give me the same error .. so i thinked it can depend by hdf5 version ... but 1.6 vived me the same problem to build hdf5 i used thes configure : ./configure --enable-cxx --prefix=/usr/local/ thanks for any help! i'm avaiable for any kind of test to debug the problem thanks again! regards, Massimo. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users