Hi!

I did put the "string"  and now 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 451, in from_type
    return class_.from_kind(kind, itemsize, shape,
dflt)
  File "C:\Python24\lib\site-packages\tables\atom.py",
line 500, in from_kind
    raise ValueError( "no default item size for kind
``%s``"
ValueError: no default item size for kind ``string``
Closing remaining open files: TABLE_2_0_TEST.h5...
done

I see now why it works for other types except the
"string". Maybe this could be fixed by adding the
itemsize along the string keyword like "string10". But
then so should function split_type be modified...

Cheers, Dragan.

--- Francesc Altet <[EMAIL PROTECTED]> wrote:

> 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
> 



      
____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

-------------------------------------------------------------------------
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

Reply via email to