[Debian-astro-maintainers] Bug#974182: python3-yt: tests fail with h5py 3.1

Drew Parsons dparsons at debian.org
Wed Nov 11 04:32:23 GMT 2020


Package: python3-yt
Version: 3.6.0-4+b1
Severity: normal

python3-yt debci tests fail with python3-h5py 3.1.0-1exp1 from
experimental.

The error message for test_write_gdf says:
        if "dataset_units" in h5f:
            for unit_name in h5f["/dataset_units"]:
                current_unit = h5f["/dataset_units/%s" % unit_name]
>               value = current_unit.value
E               AttributeError: 'Dataset' object has no attribute 'value'


I think this is simple fix.  The API has dropped the .value
attribute, you can access values directly.  It might be that
current_unit is already the value you need here.

cf. https://docs.h5py.org/en/latest/high/dataset.html#reading-writing-data



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

Kernel: Linux 5.9.0-1-amd64 (SMP w/8 CPU threads)
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

Versions of packages python3-yt depends on:
ii  libc6                               2.31-4
ii  libgomp1                            10.2.0-16
ii  libjs-jquery                        3.5.1+dfsg+~3.5.4-1
pn  libjs-leaflet                       <none>
ii  python3                             3.8.6-1
ii  python3-h5py                        3.1.0-1exp1
ii  python3-ipython                     7.19.0-1
ii  python3-matplotlib                  3.3.2-2
ii  python3-numpy [python3-numpy-abi9]  1:1.19.4-1
ii  python3-pkg-resources               50.3.0-1
ii  python3-sympy                       1.6.2-2

python3-yt recommends no packages.

Versions of packages python3-yt suggests:
ii  python3-astropy  4.1-2
pn  python3-pyx      <none>
ii  python3-scipy    1.5.3-2



More information about the Debian-astro-maintainers mailing list