Vitables incompatible with python-tables

Bug #1700963 reported by Jochen Schroeder
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ViTables
Fix Released
Unknown
vitables (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The vitables version 2.1-1 which is included in 17.04 fails when starting with the exception:

Creating the Query results file...

Traceback (most recent call last):
  File "/usr/share/vitables/vitables/h5db/dbDoc.py", line 115, in openH5File
    h5file = tables.openFile(self.filepath, self.mode)
AttributeError: 'module' object has no attribute 'openFile'

Please, if you think it is a bug, report it to developers.

File creation failed due to unknown reasons!
Please, have a look to the last error displayed in the logger. If you think it's a bug, please report it to developers.

This is due to python-tables 3.3.0-5 distributed with ubuntu which changes API and vitables is not compatible. This is fixed upstream see https://github.com/uvemas/ViTables/issues/54 for upstream bug report.

Revision history for this message
Carlo Lobrano (c-lobrano) wrote :

Bug confirmed upstream. Also a patch is already available https://github.com/uvemas/ViTables/commit/a7dc69420ef48d7e20e3ee46d3d9b730785531c7

Changed in vitables (Ubuntu):
status: New → Confirmed
Changed in vitables:
status: Unknown → Fix Released
Revision history for this message
Johannes Lange (johannesulf) wrote :

I'm using Ubuntu 17.10 and this still seems to be an issue. vitables 2.1-1 included with Ubuntu 17.10 is incompatible with the pytables 3.3.0.

Specifically, trying to open any file will result in a call to tables.isHDF5File. See this file here. /usr/share/vitables/vitables/h5db/dbsTreeModel.py

But isHDF5File is deprecated in pytables 3.3.0 and is now named is_hdf5_file.

https://github.com/PyTables/PyTables/blob/6782047b9223897fd59ff4967d71d7fdfb474f16/tables/scripts/pt2to3.py

Consequently, vitables fails to verify whether a file is an HDF5 file and won't open it.

I believe to make vitables working again you need to switch to vitables 3.0. In the current state, it doesn't seem like vitables can open any hdf5 file.

Revision history for this message
Kai Li (kai-li-jx) wrote :

Still exist in Ubuntu 18.04.

Revision history for this message
Felix Jaeckel (jaeckel) wrote :

Still broken in Ubuntu 19.10. But easy enough to install with: pip install ViTables

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.