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

Lots of PyTables warnings #12

Open
louisabraham opened this issue Apr 6, 2018 · 1 comment
Open

Lots of PyTables warnings #12

louisabraham opened this issue Apr 6, 2018 · 1 comment

Comments

@louisabraham
Copy link
Contributor

While converting the code to Python 3, I found strange warnings. In fact, the problem exists already at 0fe520e with Python 2 (before I started messing around with the encodings etc).

To reproduce:

  • Execute test_analyze() modified to comment the line shutil.rmtree('test_items')
  • In a Python interpreter:
>>> import pandas as pd
>>> store = pd.HDFStore('test_items/data.abx')
>>> store.info()

It will show a lot of warnings like:

/Users/louisabraham/miniconda3/envs/abxpy/lib/python2.7/site-packages/tables-3.4.2-py2.7-macosx-10.6-x86_64.egg/tables/group.py:1187: UserWarning: problems loading leaf ``/bys``::

  variable length strings are not supported yet

The leaf will become an ``UnImplemented`` node.
  % (self._g_join(childname), exc))
/Users/louisabraham/miniconda3/envs/abxpy/lib/python2.7/site-packages/tables-3.4.2-py2.7-macosx-10.6-x86_64.egg/tables/attributeset.py:299: DataTypeWarning: Unsupported type for attribute 'sorted' in node 'c2_v0'. Offending HDF5 class: 8
  value = self._g_getattr(self._v_node, name)
/Users/louisabraham/miniconda3/envs/abxpy/lib/python2.7/site-packages/tables-3.4.2-py2.7-macosx-10.6-x86_64.egg/tables/attributeset.py:299: DataTypeWarning: Unsupported type for attribute 'empty' in node 'c2_v0'. Offending HDF5 class: 8
  value = self._g_getattr(self._v_node, name)
/Users/louisabraham/miniconda3/envs/abxpy/lib/python2.7/site-packages/tables-3.4.2-py2.7-macosx-10.6-x86_64.egg/tables/attributeset.py:299: DataTypeWarning: Unsupported type for attribute 'sorted' in node 'c2_v1'. Offending HDF5 class: 8
  value = self._g_getattr(self._v_node, name)
/Users/louisabraham/miniconda3/envs/abxpy/lib/python2.7/site-packages/tables-3.4.2-py2.7-macosx-10.6-x86_64.egg/tables/attributeset.py:299: DataTypeWarning: Unsupported type for attribute 'empty' in node 'c2_v1'. Offending HDF5 class: 8
  value = self._g_getattr(self._v_node, name)
/Users/louisabraham/miniconda3/envs/abxpy/lib/python2.7/site-packages/tables-3.4.2-py2.7-macosx-10.6-x86_64.egg/tables/attributeset.py:299: DataTypeWarning: Unsupported type for attribute 'sorted' in node 'c2_v2'. Offending HDF5 class: 8
  value = self._g_getattr(self._v_node, name)
/Users/louisabraham/miniconda3/envs/abxpy/lib/python2.7/site-packages/tables-3.4.2-py2.7-macosx-10.6-x86_64.egg/tables/attributeset.py:299: DataTypeWarning: Unsupported type for attribute 'empty' in node 'c2_v2'. Offending HDF5 class: 8
  value = self._g_getattr(self._v_node, name)
/Users/louisabraham/miniconda3/envs/abxpy/lib/python2.7/site-packages/tables-3.4.2-py2.7-macosx-10.6-x86_64.egg/tables/group.py:1187: UserWarning: problems loading leaf ``/regressors/c2_v0/indexed_datasets``::

  variable length strings are not supported yet
@Thomas-Schatz
Copy link
Collaborator

I had some issues with newer versions of pytables, that I solved with:
conda install pytables=3.3.0

I think the long-term solution would be to try to remove the Pytable dependency altogether (it's not used a lot in the code) and rely only on h5py which is more performant and more stable.

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