Problem with downloading ENDFB-8.0-NNDC

Hello everybody.
I’m encountering an issue while trying to download ENDF/B 8.0-NNDC data using the openmc_data_downloader. When I attempt to download this specific library, the process fails, whereas downloading other libraries such as ENDF/B 7.1-NNDC works without any issues.
I use this :
lib = “ENDFB-8.0-NNDC”

mats.download_cross_section_data(
libraries=[lib],
set_OPENMC_CROSS_SECTIONS=True,
particles=[“neutron”],
)
And the error is:

OSError Traceback (most recent call last)
Cell In[3], line 34
29 # lib= “FENDL-3.1d” # does not contain cross sections at the right energy
30 #lib=“ENDFB-7.1-NNDC” # does not contain cross sections at the right energy
31 # lib=“TENDL-2019” # does not contain cross sections at the right energy
32 lib = “ENDFB-8.0-NNDC” # this one works :slight_smile:
—> 34 mats.download_cross_section_data(
35 libraries=[lib],
36 set_OPENMC_CROSS_SECTIONS=True,
37 particles=[“neutron”],
38 )

File ~/micromamba/envs/demosim/lib/python3.9/site-packages/openmc_data_downloader/utils.py:148, in download_cross_section_data(self, libraries, destination, particles, set_OPENMC_CROSS_SECTIONS, overwrite)
142 print(dataframe)
144 download_data_frame_of(
145 dataframe=dataframe, destination=destination, overwrite=overwrite
146 )
→ 148 cross_section_xml_path = create_cross_sections_xml(dataframe, destination)
150 if set_OPENMC_CROSS_SECTIONS is True:
151 self.cross_sections = cross_section_xml_path

File ~/micromamba/envs/demosim/lib/python3.9/site-packages/openmc_data_downloader/utils.py:246, in create_cross_sections_xml(dataframe, destination)
244 for index, row in dataframe.iterrows():
245 if destination is None:
→ 246 library.register_file(Path(row[“local_file”]))
247 else:
248 library.register_file(Path(destination) / Path(row[“local_file”]))

File ~/micromamba/envs/demosim/lib/python3.9/site-packages/openmc/data/library.py:91, in DataLibrary.register_file(self, filename)
89 materials =
90 elif path.suffix == ‘.h5’:
—> 91 with h5py.File(path, ‘r’) as h5file:
92 filetype = h5file.attrs[‘filetype’].decode()[5:]
93 materials = list(h5file)

File ~/micromamba/envs/demosim/lib/python3.9/site-packages/h5py/_hl/files.py:562, in File.init(self, name, mode, driver, libver, userblock_size, swmr, rdcc_nslots, rdcc_nbytes, rdcc_w0, track_order, fs_strategy, fs_persist, fs_threshold, fs_page_size, page_buf_size, min_meta_keep, min_raw_keep, locking, alignment_threshold, alignment_interval, meta_block_size, **kwds)
553 fapl = make_fapl(driver, libver, rdcc_nslots, rdcc_nbytes, rdcc_w0,
554 locking, page_buf_size, min_meta_keep, min_raw_keep,
555 alignment_threshold=alignment_threshold,
556 alignment_interval=alignment_interval,
557 meta_block_size=meta_block_size,
558 **kwds)
559 fcpl = make_fcpl(track_order=track_order, fs_strategy=fs_strategy,
560 fs_persist=fs_persist, fs_threshold=fs_threshold,
561 fs_page_size=fs_page_size)
→ 562 fid = make_fid(name, mode, userblock_size, fapl, fcpl, swmr=swmr)
564 if isinstance(libver, tuple):
565 self._libver = libver

File ~/micromamba/envs/demosim/lib/python3.9/site-packages/h5py/_hl/files.py:235, in make_fid(name, mode, userblock_size, fapl, fcpl, swmr)
233 if swmr and swmr_support:
234 flags |= h5f.ACC_SWMR_READ
→ 235 fid = h5f.open(name, flags, fapl=fapl)
236 elif mode == ‘r+’:
237 fid = h5f.open(name, h5f.ACC_RDWR, fapl=fapl)

File h5py/_objects.pyx:54, in h5py._objects.with_phil.wrapper()

File h5py/_objects.pyx:55, in h5py._objects.with_phil.wrapper()

File h5py/h5f.pyx:102, in h5py.h5f.open()

OSError: Unable to synchronously open file (truncated file: eof = 66095922, sblock->base_addr = 0, stored_eof = 168251464)

Thank you in advance

I’m not able to reproduce the error,
the download command for endf 8.0 appears to work over here

openmc_data_downloader -l ENDFB-8.0-NNDC -i Fe56 Be9 Li6 Li7 H1 H2