Hi, I have recently begun the upgrade process to pytables 2.0 and have noticed a problem reading some of my old data files. It appears that support for indices is not part of PyTables anymore (it's now in PyTables Pro, which is fine). Nevertheless, I'd expect PyTables to be able to open my old files, even if it doesn't make use of PyTables Pro. Unfortunately, PyTables (today's snapshot) has a problem reading old tables I built that have an index.
I am attaching the error log and a couple scripts to reproduce the error, as well as the same data file produced by the script so that you don't have to fire up PyTables 1.3. It looks to me like the file buffer is inadvertently closed up raising the NoIndexingWarning, whereas it should be kept open. Also, I've found that calling column_of_my_table.createIndex() raises a NoIndexingException, which also appears to leave the buffer in the closed state, causing my program to fail if I explicitly catch the NoIndexingException and ignore it intentionally. I realize I can probably work around this issue by deleting the HDF5 nodes in the group '/_i_mytable' if my indexed table was called 'mytable'. -Andrew
$ python pytables20_read_file.py /usr/lib/python2.5/site-packages/tables/table.py:605: NoIndexingWarning: table ``/mytable`` has column indexes. This version of PyTables does not support indexing. Please consider using the PyTables Pro edition (http://www.carabos.com/products/pytables-pro). % self._v_pathname, NoIndexingWarning ) Traceback (most recent call last): File "pytables20_read_file.py", line 8, in <module> result = table.getWhereList( table.cols.a == 10 ) File "/usr/lib/python2.5/site-packages/tables/table.py", line 1334, in getWhereList condvars = self._requiredExprVars(condition, condvars) File "/usr/lib/python2.5/site-packages/tables/table.py", line 947, in _requiredExprVars cexpr = compile(expression, '<string>', 'eval') TypeError: expected a readable buffer object Closing remaining open files: test.h5... done
debug_pytables.tar.gz
Description: GNU Zip compressed data
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users