Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyTables error #54

Closed
shacharm2 opened this issue Nov 13, 2016 · 4 comments
Closed

PyTables error #54

shacharm2 opened this issue Nov 13, 2016 · 4 comments

Comments

@shacharm2
Copy link

PyTables version 3.3.0
Trying to load any HDF5, or even openning ViTables results in an error.
It seems the pytables version changed names, such as openFile -> open_file
ViTables does not recognize it

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'

@uvemas
Copy link
Owner

uvemas commented Nov 14, 2016

Well, it seems that PyTables has migrated to its new API (see http://www.pytables.org/MIGRATING_TO_3.x.html, section Major API Changes) and the old API is not supported in PyTables 3.3.0 (accordingly to your bug report). Unfortunately I have not migrated ViTables to use the new API. I will try to upgrade ViTables (help is really welcome) but until it happens I think your best option is to use an older version of PyTables One with support for both APIs should be fine.

Hope it helps.

@uvemas
Copy link
Owner

uvemas commented May 2, 2017

The problem should be fixed with commit a7dc694 so I close the bug.

@uvemas uvemas closed this as completed May 2, 2017
@shacharm2
Copy link
Author

@uvemas checking it out

@shacharm2
Copy link
Author

@uvemas - tested and verified on Ubuntu 16.04 + python3
thumbs up!

also tested not to work with python2 - does not work due str() that receives a utf-8 encoding

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants