A Wednesday 12 September 2007, Gael Varoquaux escrigué:
> Sorry if this is a FAQ, google didn't show anything very quickly.
>
> We are running a Python script using pytables1.3.2 to load data. It
> runs fine in Python2.4, but in 2.5 we see this:
>
> /home/robert/evaporation/projet_num/evaporation_VT1.py in
> experience(source, K, dt_libre1, dt_libre2, RELAIS)
>     173           config_h5 = tables.openFile(source, 'r')
>     174     table_param = config_h5.root.temps_0.parametres
>     175
> --> 176     t_inf = float (array([x['temps'] for x in
> table_param.iterrows() ]))
>     177     E_inf = array([x['energy'] for x in table_data.iterrows()
> ]) 178     dos_inf = array([x['dos'] for x in table_data.iterrows()
> ])
>
> /home/robert/evaporation/projet_num/TableExtension.pyx in
> TableExtension.Row.__next__()
>     862
>     863
> --> 864
>     865
>     866
>
> /home/robert/evaporation/projet_num/TableExtension.pyx in
> TableExtension.Row.__next__general()
>    1048
>    1049
> -> 1050
>    1051
>    1052
>
> /home/robert/evaporation/projet_num/TableExtension.pyx in
> TableExtension.Row.finish_riterator()
>    1056
>    1057
> -> 1058
>    1059
>    1060
>
> <type 'exceptions.TypeError'>: exceptions must be strings, classes,
> or instances, not type
>
> This seems to me like its a Python2.4/2.5 problem. Is this a known
> problem ? Does this mean that pytables1.3.2 does not run under 2.5.
> If so, its no big deal, I just wanted to check the problem was not on
> our side.

I think the problem is that you have compiled the PyTables extensions 
using an old version of Pyrex.  Try installing the lastest version of 
Pyrex and see if it goes better (remember to re-generate the 
C-files; 'touch src/*.pyx' will do the trick).

In any case, it is known that numarray has problems when working with 
64-bit platforms and Python2.5, so upgrading to PyTables 2.0 (with 
NumPy at its core) is strongly recommended.

HTH,

-- 
>0,0<   Francesc Altet     http://www.carabos.com/
V   V   Cárabos Coop. V.   Enjoy Data
 "-"

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to