[MacPorts] #51923: Pytables fails to create hdf5 table
MacPorts
noreply at macports.org
Tue Jul 26 15:26:02 PDT 2016
#51923: Pytables fails to create hdf5 table
---------------------+--------------------------------
Reporter: dersh@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.4
Keywords: | Port: py27-tables
---------------------+--------------------------------
I first tried to create an hdf5 table using pandas. But, that failed.
So, I went to pytables instead, and that also fails with a similar error.
I'm using py27-tables @3.2.2_2 which is using hdf5 @1.10.0_1
Here is a simple example, grabbed from the pytables web page
{{{
>>> import tables
>>> from tables import *
>>> h5file = open_file("tutorial1.h5", mode = "w", title = "Test file")
>>> group = h5file.create_group("/", 'detector', 'Detector information')
>>> class Particle(IsDescription):
... name = StringCol(16)
... idnumber = Int64Col() #
... ADCcount = UInt16Col() # Unsigned
...
>>> table = h5file.create_table(group, 'readout', Particle, "Readout
example")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/tables/file.py", line 1060, in create_table
chunkshape=chunkshape, byteorder=byteorder)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/tables/table.py", line 873, in __init__
byteorder, _log)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/tables/leaf.py", line 262, in __init__
super(Leaf, self).__init__(parentnode, name, _log)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/tables/node.py", line 270, in __init__
self._v_objectid = self._g_create()
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/tables/table.py", line 1066, in _g_create
self._v_new_title, self.filters.complib or '', obversion)
File "tables/tableextension.pyx", line 222, in
tables.tableextension.Table._create_table (tables/tableextension.c:3322)
tables.exceptions.HDF5ExtError: HDF5 error back trace
File "H5A.c", line 265, in H5Acreate2
not a location
File "H5Gloc.c", line 253, in H5G_loc
invalid object ID
End of HDF5 error back trace
Can't set attribute 'CLASS' in table:
readout.
}}}
--
Ticket URL: <https://trac.macports.org/ticket/51923>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list