A Tuesday 11 March 2008, dragan savic escrigué: > Hi! > > I am trying to build a table with a first column > having a string type. I get the following error: > > File > "C:\Python24\Lib\site-packages\tables\description.py", > line 169, in from_ > type newatom = atom.Atom.from_type(type, shape, dflt) > File "C:\Python24\Lib\site-packages\tables\atom.py", > line 445, in from_type > raise ValueError("unknown type: %r" % (type,)) > ValueError: unknown type: 'String' > Closing remaining open files: TABLE_2_0_TEST.h5... > done > > I used "Col.from_type" for creating columns. As I > looked up in the manual the Type Code for char is > String. I have problems only with this type. Any > suggestions on how to solve this?
Try 'string' instead. In table A.1 it is written as 'String', but it is an errata. We should fix it. Cheers, -- >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 2008. 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