TRIQS/TRIQS — Issue #11: HDF5 error: __init__() keywords must be strings
Author: tomaok
Created: 2011-11-15 13:30:59+00:00
State: open

Hi,

Whenever I try to read a Green's function from a HDF5 file, I get the following error (the following excerpt is taken from the tutorial on HDF5):

>>> R = HDF_Archive('myfile.h5','r')
>>> R
HDF_Archive (partial view) with the following content:
g1 : subgroup
mu : Data
>>> G = R['g1']
Traceback (most recent call last):
File "", line 1, in
File "/Library/Python/2.6/site-packages/pytriqs/Base/Archive/HDF_Archive.py", line 237, in __getitem__
return self.__getitem1__(key,self._reconstruct_python_objects)
File "/Library/Python/2.6/site-packages/pytriqs/Base/Archive/HDF_Archive.py", line 281, in __getitem1__
res = r_class.__factory_from_dict__(values)
File "/Library/Python/2.6/site-packages/pytriqs/Base/GF_Local/_GFBloc_base_data_tail.py", line 112, in
__factory_from_dict__
return CLS(**value)
TypeError: __init__() keywords must be strings

Do you know where this could come from?

Thanks for your answer,
Thomas