From: Francesc A. <fa...@ca...> - 2007-10-17 09:00:52
|
A Wednesday 17 October 2007, Darren Dale escrigu=C3=A9: > [The next message has been sent to the list from an unsubscribed > address. Please try to send mails here only if you are subscribed as > it takes me some time to get aware of them and re-inject to the list] > > ----------------------------------------------------------------- > > Hello, > > (I am not subscribed to the mailing list, please include my email if > you respond to this post.) > > I just wanted to report my experience installing pytables-2.0.1. I'm > running > gentoo linux on a 64bit amd machine, with gcc-4.2.2. The ebuild I > used is > attached, if anyone is interested. > > The first time I built and tested pytables-2, tables.test() reported > one error: > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=3D ERROR: None (tables.netcdf3.tests.test_netcdf3.NetCDFFileTestCase2) > --------------------------------------------------------------------- >- Traceback (most recent call last): > File "/usr/lib64/python2.5/site-packages/tables/tests/common.py", > line 247, > in newmethod > return oldmethod(self, *args, **kwargs) > > File > "/usr/lib64/python2.5/site-packages/tables/netcdf3/tests/test_netcdf3 >.py", line 168, in test_h5tonc > nobjects, nbytes =3D f.nctoh5(self.filenc) > File > "/usr/lib64/python2.5/site-packages/tables/netcdf3/__init__.py", line > 478, in nctoh5 > var =3D > self.createVariable(varname,datatype,ncvar.dimensions,least_significa >nt_digit=3Dlsd,filters=3Dfilters) File > "/usr/lib64/python2.5/site-packages/tables/netcdf3/__init__.py", line > 294, in createVariable > var =3D > NetCDFVariable(varname,self,datatype,dimensions,least_significant_dig >it=3Dleast_significant_digit,expectedsize=3Dexpectedsize,filters=3Dfilters) > File "/usr/lib64/python2.5/site-packages/tables/netcdf3/__init__.py", > line > 581, in __init__ > raise ValueError, 'datatype must be one > of %s'%_netcdftype_dict.keys() > ValueError: datatype must be one of > ['c', 'd', 'f', 'i', 'F', 'l', '1', 's', 'D'] > > --------------------------------------------------------------------- Mmm, I'm curious about which datatype should be causing this. Can you=20 try applying the attached patch and send me the output? > When I ran tables.test(heavy=3DTrue), I got 661 errors, almost all > looked something like this: > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=3D ERROR: Testing ``((lbound < c_time64) & (c_time64 <=3D rbound)) | > ((c_extra+1) > > 0)``. [#L506] > --------------------------------------------------------------------- >- Traceback (most recent call last): > > File > "/usr/lib64/python2.5/site-packages/tables/tests/test_queries.py", > line > 253, in setUp > fill_table(table, self.shape, self.nrows) > > File > "/usr/lib64/python2.5/site-packages/tables/tests/test_queries.py", > line > 183, in fill_table > row[ncolname] =3D row[colname] =3D coldata > File "tableExtension.pyx", line 1290, in > tableExtension.Row.__setitem__ > File "tableExtension.pyx", line 128, in > tableExtension.getNestedFieldCache > File "utilsExtension.pyx", line 328, in > utilsExtension.getNestedField ValueError: field named c_int16 not > found. > > --------------------------------------------------------------------- >- > > > I installed ctypes-1.0.2, which took care of 660 of the failures. > Should a ctypes version be listed in the manual as a prerequisite? I've never seen this error before (and normally run PyTables on 64-bit=20 Linux machines, but under SuSe, not Gentoo), and as far as I know,=20 there should be no dependency on ctypes at all. Sorry but I'm puzzled=20 here. > Is the netcdf error a known pytables bug, or is it maybe a > configuration issue on my end? I don't know. The NetCDF module still relies on having a proper=20 installation of Numeric, and I know that Numeric has issues in 64-bit=20 machines (specially when using Python 2.5). The output of the attached=20 patch should provide more info. Also, please send the output for: python -c "import tables; tables.print_versions()" Cheers, =2D-=20 >0,0< Francesc Altet =C2=A0 =C2=A0 http://www.carabos.com/ V V C=C3=A1rabos Coop. V. =C2=A0=C2=A0Enjoy Data "-" |