From: Francesc A. <fa...@ca...> - 2006-11-21 13:39:48
|
Hi Berthold, numarray 1.5.2 have problems when running against Python 2.5 and 64-bit platforms (see [1]). As PyTables 1.x does use numarray at its core, it will inherits the same problems. Are you using a 64-bit platform? If this is the case, my advice is that you keep using python 2.4 until the numarray crew would support the above configuration (or until PyTables 2.0, with NumPy at its core, hits the market). [1]=20 <http://www.mail-archive.com/numpy-discussion%40lists.sourceforge.net/msg03= 683.html> Cheers, A Dimarts 21 Novembre 2006 14:18, Berthold H=F6llmann escrigu=E9: > Hello, > > Porting a larger library of ours from Numeric to NumPy I run into some > strange problems with PyTables. I simultaneously switched from > Python 2.4 to 2.5 and from PyTables 1.0 to 1.3.3. Using > numpy.oldnumeric with my code converted using > numpy.oldnumeric.altercode1 I get a lot of HDF5-DIAGs followed by > > HDF5-DIAG: Error detected in HDF5 library version: 1.6.6-snap8 thread 0.= =20 > Back trace follows. #000: H5D.c line 1202 in H5Dclose(): not a dataset > major(01): Function arguments > minor(03): Inappropriate type > /usr/local/gltools/python/Python-2.5/linux/lib/python2.5/site-packages/ta= bl >es/Group.py:400: UserWarning: problems loading leaf > ``/_structures/_0/approval``:: > > 'NoneType' object is unsubscriptable > > The leaf will become an ``UnImplemented`` node. > % (self._g_join(childName), exc)) > > followed by more HDF5-DIAGs and then a traceback: > > File "/data/tmp/hoel/GLPy_numpy_conversion/lib/gl/SXFPy/HDF5File.py", > line 434, in close self.__fp.flush() > File > "/usr/local/gltools/python/Python-2.5/linux/lib/python2.5/site-packages/t= ab >les/File.py", line 1858, in flush for leaf in self.listNodes(group, > classname =3D 'Leaf'): > File > "/usr/local/gltools/python/Python-2.5/linux/lib/python2.5/site-packages/t= ab >les/File.py", line 1211, in listNodes return group._f_listNodes(classname) > File > "/usr/local/gltools/python/Python-2.5/linux/lib/python2.5/site-packages/t= ab >les/Group.py", line 687, in _f_listNodes return [ self._v_leaves[name] for > name in names ] > File > "/usr/local/gltools/python/Python-2.5/linux/lib/python2.5/site-packages/t= ab >les/proxydict.py", line 30, in __getitem__ return > self._getValueFromContainer(self._getContainer(), key) > File > "/usr/local/gltools/python/Python-2.5/linux/lib/python2.5/site-packages/t= ab >les/Group.py", line 59, in _getValueFromContainer return > container._f_getChild(key) > File > "/usr/local/gltools/python/Python-2.5/linux/lib/python2.5/site-packages/t= ab >les/Group.py", line 657, in _f_getChild return > self._v_file._getNode(childPath) > File > "/usr/local/gltools/python/Python-2.5/linux/lib/python2.5/site-packages/t= ab >les/File.py", line 898, in _getNode node =3D > parentNode._g_loadChild(childName) > File > "/usr/local/gltools/python/Python-2.5/linux/lib/python2.5/site-packages/t= ab >les/Group.py", line 402, in _g_loadChild return UnImplemented(self, > childName) > File > "/usr/local/gltools/python/Python-2.5/linux/lib/python2.5/site-packages/t= ab >les/UnImplemented.py", line 61, in __init__ super(UnImplemented, > self).__init__(parentNode, name, log=3DFalse) File > "/usr/local/gltools/python/Python-2.5/linux/lib/python2.5/site-packages/t= ab >les/Leaf.py", line 265, in __init__ super(Leaf, self).__init__(parentNode, > name, log) > File > "/usr/local/gltools/python/Python-2.5/linux/lib/python2.5/site-packages/t= ab >les/Node.py", line 287, in __init__ self._v_objectID =3D self._g_open() > File > "/usr/local/gltools/python/Python-2.5/linux/lib/python2.5/site-packages/t= ab >les/UnImplemented.py", line 69, in _g_open self.nrows =3D self.shape[0] > TypeError: 'NoneType' object is unsubscriptable > > self.__fp holds the result of a tables.openFile call. Doing just a > "close" without a "flush" before works, but I get similar errors when > reading the generated files. > > Is there any idea what could be the problem? > > Kind regards > > Berthold H=F6llmann =2D-=20 >0,0< Francesc Altet =A0 =A0 http://www.carabos.com/ V V C=E1rabos Coop. V. =A0=A0Enjoy Data "-" |