Hi,

When building netcdf4-python-1.6.5-foss-2023b.eb the test step fails
with the following error:

  
PYTHONPATH=/localscratch/tmp/build/tmp.17503880.0/eb-ple0puns/tmpaol7kfjv/lib/python3.11/site-packages:$PYTHONPATH
 &&  cd test && mpirun -n 1 
/sw/sc/easybuild/software/Python/3.11.5-GCCcore-13.2.0/bin/python 
  run_all.py " exited with exit code 1 and output:
  not running tst_diskless.py ...
  not running tst_compression_zstd.py ...
  not running tst_compression_bzip2.py ...
  not running tst_compression_blosc.py ...
  not running tst_dap.py ...
  not running tst_multiple_open_close.py ...

  netcdf4-python version: 1.6.5
  HDF5 lib version:       1.14.3
  netcdf lib version:     4.9.2
  numpy version           1.26.2
  cython version          3.0.4
  .............compressed lossy with shuffle and standard quantization =  
187745  max err =  0.0002441335416845103
  .compressed lossy with shuffle and alternate quantization =  155383  max err 
=  0.00048827613806445846
  compressed lossy with shuffle and alternate quantization =  163046  max err = 
 0.0002441375949907565
  
E....................................................................................
  ======================================================================
  ERROR: runTest (tst_compression_szip.CompressionTestCase.runTest)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File 
"/trinity/shared/easybuild/arch/x86_64/amd/zen3/build/netcdf4python/1.6.5/foss-2023b/netcdf4python/netCDF4-1.6.5/test/tst_compression_szip.py",
 line 36, in runTest
      assert_almost_equal(datarr,f.variables['data_szip'][:], 6)
                                 ~~~~~~~~~~~~~~~~~~~~~~~~^^^
    File "src/netCDF4/_netCDF4.pyx", line 4972, in 
netCDF4._netCDF4.Variable.__getitem__
    File "src/netCDF4/_netCDF4.pyx", line 5930, in 
netCDF4._netCDF4.Variable._get
    File "src/netCDF4/_netCDF4.pyx", line 2034, in 
netCDF4._netCDF4._ensure_nc_success
  RuntimeError: NetCDF: HDF error

  ----------------------------------------------------------------------
  Ran 99 tests in 8.951s

  FAILED (errors=1)

Does anyone know what the problem might be?  A possible reason for the
error seems to be that the HDF5 file is corrupt, but can that really be
the case here?

Cheers,

Loris

-- 
Dr. Loris Bennett (Herr/Mr)
FUB-IT (ex-ZEDAT), Freie Universität Berlin

Reply via email to