<div dir="ltr"><div>Subject: python-ase: Exporting png image file fails<br>Package: python-ase<br>Version: 3.12.0-2<br>Tags: patch<br>Severity: normal<br><br>Dear Maintainer,<br><br>Attempting to save a png file results in a fatal exception due to an<br>incompatibility between the ASE code and a call to the matplotlib routine<br>actually responsible for saving the image file.<br><br>This bug has been fixed upstream and in testing, but a patch needs to be applied<br>to the version in stable. To correct the bug, line 39 in ase/io/png.py should be<br>changed from<br><br>  <                except TypeError:<br><br>to<br><br>  >                except (TypeError, ValueError):<br><br></div>The image quality is very bad, but that's a separate issue I haven't looked into. It may be fixed upstream as well.<br><div><br>Jonathan Sutton<br><br>-- System Information:<br>Debian Release: 9.0<br>  APT prefers stable<br>  APT policy: (500, 'stable')<br>Architecture: amd64 (x86_64)<br><br>Kernel: Linux 4.9.0-3-amd64 (SMP w/2 CPU cores)<br>Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE=en_US.utf8 (charmap=UTF-8)<br>Shell: /bin/sh linked to /bin/dash<br>Init: systemd (via /run/systemd/system)<br><br>Versions of packages python-ase depends on:<br>ii  python        2.7.13-2<br>ii  python-numpy  1:1.12.1-3<br>ii  python-scipy  0.18.1-2<br><br>Versions of packages python-ase recommends:<br>ii  python-gtk2        2.24.0-5.1<br>ii  python-matplotlib  2.0.0+dfsg1-2<br><br>Versions of packages python-ase suggests:<br>pn  python-ase-doc  <none><br><br>-- no debconf information<br><br></div></div>