uvemas/ViTables

export to csv of struct array fails with AttributeError

Opened this issue · 0 comments

First, thanks for the nice piece of software :) still, there's an issue...

Create the following hdf5 file:

with h5py.File("test.h5", "w") as f:
    f["foo"] = np.array([(1, 2), (3, 4)], [("a", int), ("b", float)])

open it with vitables and try to export the "foo" dataset to csv.

One gets

2020-03-13 11:42:39,207 - vitables - ERROR -   File ".../lib/python3.8/site-packages/vitables/csv/export_csv.py", line 247, in export
    if self._try_exporting_dataframe(leaf):
'ExportToCSV' object has no attribute '_try_exporting_dataframe'

and indeed, checking the export_csv.py source file, one sees that the _try_exporting_dataframe method has been commented out.