quantumlib / OpenFermion-PySCF

OpenFermion plugin to interface with the electronic structure package PySCF.
Apache License 2.0
105 stars 44 forks source link

Package breaks with latest h5py #60

Closed mpharrigan closed 2 years ago

mpharrigan commented 2 years ago

~/cirq/py39-venv/lib/python3.9/site-packages/pyscf/lib/misc.py in <module>
     44                      'Async-IO is disabled.\n' % ((h5py.version.version,)*2))
     45 if h5py.version.version[:2] == '3.':
---> 46     h5py.get_config().default_file_mode = 'a'
     47 
     48 c_double_p = ctypes.POINTER(ctypes.c_double)

h5py/h5.pyx in h5py.h5.H5PYConfig.default_file_mode.__set__()

ValueError: Using default_file_mode other than 'r' is no longer supported. Pass the mode to h5py.File() instead.
mpharrigan commented 2 years ago

https://github.com/pyscf/pyscf/issues/1003 pyscf has fixed the issue