Package: python-matplotlib
Version: 2.2.3-4
Severity: important

Dear Maintainers,

Since the update to python-matplotlib2, the WxAgg backend is unable to find any
fonts. The following code used to work just fine (and works fine in buster
with python-matplotlib 2.2.2-4+b1):

# apt-get install python-matplotlib python-wxgtk3.0
# python -c 'import matplotlib.backends.backend_wxagg.FigureCanvasWxAgg'
/usr/lib/python2.7/dist-packages/matplotlib/__init__.py:1005: UserWarning: 
could not find rc file; returning defaults
  warnings.warn(message)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/matplotlib/backends/backend_wxagg.py", 
line 11, in <module>
    from .backend_agg import FigureCanvasAgg
  File "/usr/lib/python2.7/dist-packages/matplotlib/backends/backend_agg.py", 
line 36, in <module>
    from matplotlib.backend_bases import (
  File "/usr/lib/python2.7/dist-packages/matplotlib/backend_bases.py", line 53, 
in <module>
    from matplotlib import (
  File "/usr/lib/python2.7/dist-packages/matplotlib/textpath.py", line 17, in 
<module>
    import matplotlib.font_manager as font_manager
  File "/usr/lib/python2.7/dist-packages/matplotlib/font_manager.py", line 
1472, in <module>
    _rebuild()
  File "/usr/lib/python2.7/dist-packages/matplotlib/font_manager.py", line 
1453, in _rebuild
    fontManager = FontManager()
  File "/usr/lib/python2.7/dist-packages/matplotlib/font_manager.py", line 
1057, in __init__
    paths = [os.path.join(rcParams['datapath'], 'fonts', 'ttf'),
  File "/usr/lib/python2.7/posixpath.py", line 70, in join
    elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'

The WxAgg backend is used by python-bumps and sasmodels; the inability to
import the module means that these packages FTBFS and their autopkgtest tests
fail.

I can't see any changes in the packaging that would cause this but I also
can't see any relevant changes in the upstream backend or font handling code.
There are some changes in the initialisation of the matplotlib config but I
don't see any documented changes in the upstream changelog for requiring
initialisation of rcParams prior to importing backends.

If changes in the rdeps are needed, I can make them, but hints would be
gratefully received.

thanks
Stuart

Comparison logs from ci.d.n:

buster
https://ci.debian.net/data/autopkgtest/testing/amd64/s/sasview/1563832/log.gz

unstable
https://ci.debian.net/data/autopkgtest/testing/amd64/s/sasview/1563833/log.gz

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-8-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect

Versions of packages python-matplotlib depends on:
ii  libc6                                 2.28-3
ii  libfreetype6                          2.9.1-3
ii  libgcc1                               1:8.2.0-13
ii  libjs-jquery                          3.2.1-1
ii  libjs-jquery-ui                       1.12.1+dfsg-5
ii  libpng16-16                           1.6.36-1
ii  libstdc++6                            8.2.0-13
ii  python                                2.7.15-3
ii  python-backports.functools-lru-cache  1.5-1
ii  python-cycler                         0.10.0-1
ii  python-dateutil                       2.7.3-1
ii  python-kiwisolver                     1.0.1-2+b1
ii  python-matplotlib2-data               2.2.3-4
ii  python-numpy [python-numpy-abi9]      1:1.16.0~rc1-2
ii  python-pyparsing                      2.2.0+dfsg1-2
ii  python-six                            1.12.0-1
ii  python-subprocess32                   3.5.3-1
ii  python-tz                             2018.7-1
ii  zlib1g                                1:1.2.11.dfsg-1

Versions of packages python-matplotlib recommends:
ii  python-pil  5.3.0-1
ii  python-tk   2.7.15-1+b1

Versions of packages python-matplotlib suggests:
pn  dvipng                  <none>
pn  ffmpeg                  <none>
pn  ghostscript             <none>
pn  gir1.2-gtk-3.0          <none>
pn  inkscape                <none>
pn  ipython                 <none>
ii  librsvg2-common         2.44.10-1
pn  python-cairocffi        <none>
pn  python-configobj        <none>
pn  python-excelerator      <none>
pn  python-gi               <none>
pn  python-gobject-2        <none>
pn  python-matplotlib2-doc  <none>
pn  python-nose             <none>
pn  python-qt4              <none>
pn  python-scipy            <none>
pn  python-sip              <none>
pn  python-tornado          <none>
pn  python-traits           <none>
ii  python-wxgtk3.0         3.0.2.0+dfsg-8
pn  texlive-extra-utils     <none>
pn  texlive-latex-extra     <none>
pn  ttf-staypuft            <none>

-- no debconf information

Reply via email to