Yes, kind of. It wasn't really broken, just old.
I installed the latest Pyrex and it compiles.
Thanks.

On 1/13/07, Francesc Altet <[EMAIL PROTECTED]> wrote:

Hi Jan,

El dv 12 de 01 del 2007 a les 16:56 -0800, en/na Jan Strube va escriure:
> Hi Francesc,
> thanks for fixing this.
> My use case for this is that I have a couple of tables that share a
> one-to-many relation.
> I could use the row number as an index, but that is to fragile for my
> case.
> So I have a unique key for each entry in one table, and I select a
> variable number of rows from a second table that correspond to each
> key.
> The way I do that in pytables is to loop over all keys and select from
> the second table with table.where(table.cols.key==currentKey)
> I have several lists of keys that I have to compare, and I'm using
> numpy for that, so naturally I have to make the selection based on
> numpy scalars.
>
> My problem with your fix is that the latest revision in svn (2219)
> doesn't compile:
> src/TableExtension.c:89: unnamed fields of type other than struct or
> union are not allowed
>
> where the corresponding line in src/TableExtension.c is this:
>  hsize_t ;
>
> Well, src/TableExtension.c is generated by pyrex, and I don't know
> where the problem lies.

Mmm, src/TableExtension.c is not included in SVN, so your copy should
have been generated by your local Pyrex compiler. I've downloaded a
fresh copy of the std-1.4 branch and everything seems to compile well
here. Perhaps you have a broken Pyrex installation.

In any case, you don't need to completely recompile your existing
PyTables installation; you only need to apply the patch for the file
'tables/Index.py' in std-1.4 branch. Please, note that the patch has not
been applied to trunk because it is currently unmaintained (it will be
replaced shortly by an alpha of PyTables 2.0). You can get the patch in
text format by clicking in the "Unified diff" button at the bottom of
the page for revision 2215:

http://www.pytables.org/trac/changeset/2215/branches/std-1.4

and select the part corresponding to 'tables/Index.py'. Then you can
apply the patch by using the 'patch' command (in case you are using
Unix).

Another possibility is to download the file directly, accessible in:


http://www.pytables.org/trac/browser/branches/std-1.4/tables/Index.py?rev=2215&format=txt

and replace the complete Index.py file in your installation.

HTH,

--
Francesc Altet    |  Be careful about using the following code --
Carabos Coop. V.  |  I've only proven that it works,
www.carabos.com   |  I haven't tested it. -- Donald Knuth


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Pytables-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to