NetCDF HDF error
Posted: Thu Apr 23, 2026 10:11 am
Dear developers,
I am new to yambopy and am currently following the official tutorial using the hBN example provided on the yambopy website.
I encountered the following error while following the tutorial:
“Lattice intro: plot k-point coordinates in IBZ/BZ”
Initially, I suspected a mismatch between the NetCDF/HDF versions used to generate the database and those in my environment. To address this, I regenerated the SAVE database locally using:
Yambo version: 5.3
netCDF: 4.6
HDF5: parallel (OpenMPI)
However, even with the newly generated database, the same error persists
yambopy version: 0.4.6
Python version: 3.14 (Anaconda environment)
I am new to yambopy and am currently following the official tutorial using the hBN example provided on the yambopy website.
I encountered the following error while following the tutorial:
“Lattice intro: plot k-point coordinates in IBZ/BZ”
Code: Select all
Traceback (most recent call last):
File "/lustre/hpc/cluster_user/biswajit/dhanjit/databases_yambopy/bz_plot.py", line 28, in <module>
ylat = YamboLatticeDB.from_db_file(filename='/lustre/hpc/cluster_user/biswajit/dhanjit/databases_yambopy/BSE_saves/YAMBO_saves/SAVE/ns.db1')
File "/lustre/hpc/software/anaconda3/envs/yambo/lib/python3.14/site-packages/yambopy/dbs/latticedb.py", line 44, in from_db_file
with Dataset(filename) as database:
~~~~~~~^^^^^^^^^^
File "src/netCDF4/_netCDF4.pyx", line 2517, in netCDF4._netCDF4.Dataset.__init__
File "src/netCDF4/_netCDF4.pyx", line 2154, in netCDF4._netCDF4._ensure_nc_success
OSError: [Errno -101] NetCDF: HDF error: '/lustre/hpc/cluster_user/biswajit/dhanjit/databases_yambopy/BSE_saves/YAMBO_saves/SAVE/ns.db1'
Yambo version: 5.3
netCDF: 4.6
HDF5: parallel (OpenMPI)
However, even with the newly generated database, the same error persists
yambopy version: 0.4.6
Python version: 3.14 (Anaconda environment)