Vince Fulco (el 2007-10-10 a les 17:33:29 -0400) va dir:: > I've created a simple file with one group and three tables. In the > same script, I then load one of the tables. In the next step (later), > I've attempted to create a new table in the same group and the file > refuses to open using either openFile(hf5file,"w") or > openFile(hf5file, "a"). The error message is below. >[...] > > >>> filem = openFile(fname,"w") > HDF5-DIAG: Error detected in HDF5 library version: 1.6.5 thread > 46912496303904. Back trace follows. > #000: H5F.c line 1968 in H5Fcreate(): unable to create file > major(04): File interface > minor(17): Unable to open file > #001: H5F.c line 1746 in H5F_open(): unable to truncate a file which > is already open >[...]
I think that David is right. According to this last error line, you seem to be trying to overwrite an HDF5 file which is already open. The only situation in which having several open handles to the same HDF5 file under PyTables is safe is when all of them are opened for read-only access. (BTW, if you use 'w' to open an existing file you will start anew with the file and lose old data, better use 'r+' or 'a'.) Hope that helps, :: Ivan Vilata i Balaguer >qo< http://www.carabos.com/ Cárabos Coop. V. V V Enjoy Data ""
signature.asc
Description: Digital signature
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users