Your message dated Fri, 13 Sep 2019 01:18:55 +0000
with message-id <[email protected]>
and subject line Bug#923768: fixed in matplotlib2 2.2.4-1
has caused the Debian Bug report #923768,
regarding python-matplotlib: UnicodeDecodeError on importing pyplot in python2
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
923768: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=923768
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-matplotlib
Version: 2.2.3-6
Severity: normal
Tags: upstream, fixed-upstream

Dear Maintainer,

UnicodeDecodeError on importing pyplot If some module in call stack is
located in directory with non-ascii character in path. The problem is
that traceback.format_stack() returns list of 'str' objects in
python2. This problem happens only on python2.

Code for reproduction
Create two modules in a directory with a non-ascii character in the path.

#!/usr/bin/env python
# first_module.py
import second_module

# second_module.py
import matplotlib.pyplot

Run first module.

$ python2 first_module.py


Following traceback happens

Traceback (most recent call last):
  File "./a.py", line 3, in <module>
    import second_module
  File "/home/developer/WorkData/PLC/beremiz/tmp/xыв/beremiz/second_module.py", 
line 3, in <module>
    import matplotlib.pyplot
  File "/usr/lib/python2.7/dist-packages/matplotlib/pyplot.py", line 71, in 
<module>
    from matplotlib.backends import pylab_setup
  File "/usr/lib/python2.7/dist-packages/matplotlib/backends/__init__.py", line 
16, in <module>
    line for line in traceback.format_stack()
  File "/usr/lib/python2.7/dist-packages/matplotlib/backends/__init__.py", line 
18, in <genexpr>
    if not line.startswith('  File "<frozen importlib._bootstrap'))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd1 in position 50: 
ordinal not in range

I've reported this bug upstream
https://github.com/matplotlib/matplotlib/issues/11955

and it was fixed and release as part of 2.2.4 release
https://github.com/matplotlib/matplotlib/commit/69b4233a7d8ef0750f83aa63ff20b939e996cc4f

It makes python programs installed in user's directories with non-ascii symbols 
in path unusable.
Would be nice to get this minor change backported to be included in Buster.


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

Kernel: Linux 4.19.0-1-rt-amd64 (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python-matplotlib depends on:
ii  libc6                                 2.28-7
ii  libfreetype6                          2.9.1-3
ii  libgcc1                               1:8.2.0-21
ii  libjs-jquery                          3.3.1~dfsg-1
ii  libjs-jquery-ui                       1.12.1+dfsg-5
ii  libpng16-16                           1.6.36-5
ii  libstdc++6                            8.2.0-21
ii  python                                2.7.15-4
ii  python-backports.functools-lru-cache  1.5-2
ii  python-cycler                         0.10.0-1
ii  python-dateutil                       2.7.3-3
ii  python-kiwisolver                     1.0.1-2+b1
ii  python-matplotlib2-data               2.2.3-6
ii  python-numpy [python-numpy-abi9]      1:1.16.1-1
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.9-1
ii  zlib1g                                1:1.2.11.dfsg-1

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

Versions of packages python-matplotlib suggests:
pn  dvipng                  <none>
ii  ffmpeg                  7:4.1.1-1
ii  ghostscript             9.26a~dfsg-2
ii  gir1.2-gtk-3.0          3.24.5-1
ii  inkscape                0.92.4-2
pn  ipython                 <none>
ii  librsvg2-common         2.44.10-1
pn  python-cairocffi        <none>
pn  python-configobj        <none>
pn  python-excelerator      <none>
ii  python-gi               3.30.4-1
ii  python-gobject-2        2.28.6-13+b1
pn  python-matplotlib2-doc  <none>
ii  python-nose             1.3.7-4
ii  python-qt4              4.12.1+dfsg-2+b1
pn  python-scipy            <none>
ii  python-sip              4.19.13+dfsg-2
pn  python-tornado          <none>
pn  python-traits           <none>
ii  python-wxgtk3.0         3.0.2.0+dfsg-8
pn  texlive-extra-utils     <none>
ii  texlive-latex-extra     2018.20190131-1
pn  ttf-staypuft            <none>

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: matplotlib2
Source-Version: 2.2.4-1

We believe that the bug you reported is fixed in the latest version of
matplotlib2, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sandro Tosi <[email protected]> (supplier of updated matplotlib2 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 12 Sep 2019 20:34:06 -0400
Source: matplotlib2
Architecture: source
Version: 2.2.4-1
Distribution: unstable
Urgency: medium
Maintainer: Sandro Tosi <[email protected]>
Changed-By: Sandro Tosi <[email protected]>
Closes: 923768 939303
Changes:
 matplotlib2 (2.2.4-1) unstable; urgency=medium
 .
   [ Sandro Tosi ]
   * New upstream release; Closes: #923768
   * debian/control
     - remove basemap from b-d, no longer needed; Closes: #939303
   * debian/patches/*
     - refresh/remove patches merged upstream
   * debian/patches/dont-download-jquery.patch
     - dont try to download jquery during build
 .
   [ Ondřej Nový ]
   * Bump Standards-Version to 4.4.0.
Checksums-Sha1:
 8c32bdc8ea262f92840b4d648af644d4a4644558 3549 matplotlib2_2.2.4-1.dsc
 13434643ced067f1d5fc757419670f53911a8c79 29090192 matplotlib2_2.2.4.orig.tar.xz
 08f2ddea150c26417596cb0fe76b6b0c464e5e9f 31920 
matplotlib2_2.2.4-1.debian.tar.xz
 191db1808187ddf12466979550c4adf175b5ad05 23681 
matplotlib2_2.2.4-1_source.buildinfo
Checksums-Sha256:
 10880112ed985527daf43a4ac4241838893dd71ada5eabba6dfa840538f0b5ce 3549 
matplotlib2_2.2.4-1.dsc
 079e1b622c7e2ff204b2808ad7f881f7b8bafeee697906e47d325f44a394ee85 29090192 
matplotlib2_2.2.4.orig.tar.xz
 ed2fef36563416dc0f91936ef1fed12ffb3c487cc11272daf006349f61e5373e 31920 
matplotlib2_2.2.4-1.debian.tar.xz
 1d9fbd7e21d82c74bcb0cff88589d06c7a24a4e855662780e82897987987a0c0 23681 
matplotlib2_2.2.4-1_source.buildinfo
Files:
 8f3475b50022d8313a33f7fedbbed122 3549 python optional matplotlib2_2.2.4-1.dsc
 533f58695d251c187053ffd69f1ff62a 29090192 python optional 
matplotlib2_2.2.4.orig.tar.xz
 6eabc4beb30907639494289a456381a9 31920 python optional 
matplotlib2_2.2.4-1.debian.tar.xz
 fd81e95fcf1ce9d707b06d545e895584 23681 python optional 
matplotlib2_2.2.4-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEufrTGSrz5KUwnZ05h588mTgBqU8FAl165I0ACgkQh588mTgB
qU9heA//drRRRbDBokg8PhAdQhf/jSYM0D71/uzX2xc2Dvsn7pGCWva2z3qwAv6t
gXV/9Sv7BQGUtvkCsCe7v56zx7N9iBBBPJpp6Sp9HR9BCIDcr7YTPTaEXrNjsjUi
K+YB/OKovXYDxoxu3cgphcD3yfXX766Bdn7NNab3CRgkRFH0TGwiKsjT48aorlM4
o/VRK8Wtwz8uPi/oWbX1czIchvXemfzod794lecfA8LSyT6foJCIEjDcmGV33jbx
BWb8HNuG18s79zy2f1Cm4eKm/xEQ8pCoLDg+7qFwH/wr44iu2Sq9k/kIyVYRHUCY
NmkwI/3qhnXgmVena0MyECBfNVBc9C3RqKFm+QrIKhMVGVK1fXFsn8l8cnCz+kMC
V41CU+8vmLVCf/oK8g16W0U2LG6gPgmJ+usI2B39IoJjrL5Y2HjUWvvi1mob825x
PLRBIXpJ/ek4XOgHhJYG4hm62DCFFxmdu1C68cP6HIsQPnddtZk6Ff3Smwnq/2xE
eqIAeExedhZA04acPji/uMfKc62/9EfaN5RkUPYSb0L1EaU7gR3oRv8A2iAhxTny
1dh0FqD7PhAcqJjhzg+faa+u/JGHmCICQNE6zT8ySv7XAnsQK+Afql7tWrDwjS4M
0BkhmkLjyAdA9qJbzQmMkZooouf+Z/AcGiKf5nigHN47FV9T9qo=
=QCVU
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to