Bug#955595: python-fabio: h5py.File needs access mode specified

Drew Parsons dparsons at debian.org
Fri Apr 3 03:43:10 BST 2020


Source: python-fabio
Version: 0.9.0+dfsg-4
Severity: serious
Justification: debci

h5py.File opens in 'r' mode by default.  So you need to specify 'w' or
other if needed to write, etc.

e.g. /usr/lib/python3/dist-packages/fabio/nexus.py, line 140
  self.h5 = h5py.File(self.filename.split("::")[0], 'w')
instead of
  self.h5 = h5py.File(self.filename.split("::")[0])

-- 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.4.0-4-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled



More information about the debian-science-maintainers mailing list