Menu

#37 tables.isXXXFile problem

closed-fixed
None
5
2005-09-26
2005-09-22
uvemas
No

tables.isPyTablesFile(path) and tables.isHDF5File(path)
functions raise a really verbose
tables.exceptions.HDF5ExtError if path is not an
existing file. Instead a IOError should be raised.

In [7]: tables.isHDF5File('hola.h5')
HDF5-DIAG: Error detected in HDF5 library version:
1.6.4 thread 0. Back trace follows.
#000: H5F.c line 1355 in H5Fis_hdf5(): unable to open
file
major(05): Low-level I/O layer
minor(29): Unable to initialize object
#001: H5FD.c line 1044 in H5FD_open(): open failed
major(22): Virtual File Layer
minor(29): Unable to initialize object
#002: H5FDsec2.c line 366 in H5FD_sec2_open(): unable
to open file
major(04): File interface
minor(17): Unable to open file
---------------------------------------------------------------------------
tables.exceptions.HDF5ExtError
Traceback (most recent call last)

/home/vmas/vitables/misc/examples/<console>

/home/vmas/vitables/misc/examples/utilsExtension.pyx in
utilsExtension.isHDF5File()

HDF5ExtError: problems identifying file ``hola.h5``

Discussion

  • Ivan Vilata i Balaguer

    • assigned_to: nobody --> ivilata
    • status: open --> closed-fixed
     
  • Ivan Vilata i Balaguer

    Logged In: YES
    user_id=1064183

    This has been fixed in the development version of PyTables.
    It will be available in a day at
    http://www.carabos.com/downloads/pytables/snapshots/.