I'm trying to create a PyTables table to store 200000 * 200000 matrix in it. I try this code:
import tables
columns = {}
for x in range (200000):
columns['col' + str(x)] = tables.FloatCol()
h5f = tables.open_file('matrix1.h5', 'w')
tbl = h5f.create_table('/', 'matrix', columns)
h5f.close()
, but it fails with this traceback:
File "/home/nick/tests0/reg/create_tables.py", line 18, in <module>
tbl = h5f.create_table('/', 'matrix', columns)
File "/home/nick/anaconda3/lib/python3.8/site-packages/tables/file.py", line 1053, in create_table
ptobj = Table(parentnode, name,
File "/home/nick/anaconda3/lib/python3.8/site-packages/tables/table.py", line 835, in __init__
super(Table, self).__init__(parentnode, name, new, filters,
File "/home/nick/anaconda3/lib/python3.8/site-packages/tables/leaf.py", line 286, in __init__
super(Leaf, self).__init__(parentnode, name, _log)
File "/home/nick/anaconda3/lib/python3.8/site-packages/tables/node.py", line 264, in __init__
self._v_objectid = self._g_create()
File "/home/nick/anaconda3/lib/python3.8/site-packages/tables/table.py", line 1022, in _g_create
self._v_objectid = self._create_table(
File "tables/tableextension.pyx", line 211, in tables.tableextension.Table._create_table
HDF5ExtError: Problems creating the table
What am I doing wrong here?