Source: hickle
Version: 5.0.2-7
Severity: serious
Justification: debci

h5py 3.10 is triggering test failure in hickle

 54s ____________________________ test_H5NodeFilterProxy 
____________________________
 54s 
 54s h5_data = <HDF5 file "hickle_helpers_test_H5NodeFilterProxy.hdf5" (mode r)>
 54s 
 54s     def test_H5NodeFilterProxy(h5_data):
 54s         """
 54s         tests H5NodeFilterProxy class. This class allows to temporarily 
rewrite
 54s         attributes of h5py.Group and h5py.Dataset nodes before being 
loaded by
 54s         hickle._load method.
 54s         """
 54s     
 54s         # load data and try to directly modify 'type' and 'base_type' 
Attributes
 54s         # which will fail cause hdf5 file is opened for read only
 54s         h5_node = h5_data['somedata']
 54s         pytest_errclass = KeyError if h5py.__version__ >= '3.9.0' else 
OSError
 54s         with pytest.raises(pytest_errclass):
 54s             try:
 54s >               h5_node.attrs['type'] = pickle.dumps(list)
 54s 
 54s 
/tmp/autopkgtest-lxc.72qwkxrs/downtmp/build.c7h/src/hickle/tests/test_01_hickle_helpers.py:127:
 
 54s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _ _ 
 54s h5py/_debian_h5py_serial/_objects.pyx:54: in 
h5py._debian_h5py_serial._objects.with_phil.wrapper
 54s     ???
 54s h5py/_debian_h5py_serial/_objects.pyx:55: in 
h5py._debian_h5py_serial._objects.with_phil.wrapper
 54s     ???
 54s /usr/lib/python3/dist-packages/h5py/_debian_h5py_serial/_hl/attrs.py:104: 
in __setitem__
 54s     self.create(name, data=value)
 54s /usr/lib/python3/dist-packages/h5py/_debian_h5py_serial/_hl/attrs.py:200: 
in create
 54s     h5a.delete(self._id, name)
 54s h5py/_debian_h5py_serial/_objects.pyx:54: in 
h5py._debian_h5py_serial._objects.with_phil.wrapper
 54s     ???
 54s h5py/_debian_h5py_serial/_objects.pyx:55: in 
h5py._debian_h5py_serial._objects.with_phil.wrapper
 54s     ???
 54s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _ _ 
 54s 
 54s >   ???
 54s E   KeyError: 'Unable to delete attribute (no write intent on file)'
 54s 
 54s h5py/_debian_h5py_serial/h5a.pyx:145: KeyError


Sounds like an issue that should be raised upstream,
unless it just means that hickle needs rebuilding against h5py 3.10.



-- System Information:
Debian Release: trixie/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.6.9-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_AU:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Reply via email to