| Summary: | python-matplotlib doesn't handle directory with accents | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | jb butet <ashashiwa> |
| Component: | RPM Packages | Assignee: | QA Team <qa-bugs> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | lewyssmith, sysadmin-bugs |
| Version: | 5 | Keywords: | validated_update |
| Target Milestone: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | MGA5-64-OK advisory | ||
| Source RPM: | python-matplotlib | CVE: | |
| Status comment: | |||
|
David Walser
2015-08-09 22:32:01 CEST
Assignee:
bugsquad =>
makowski.mageia It seems that upstream fixed this in 1.4.1 https://github.com/matplotlib/matplotlib/releases/tag/v1.4.1 Maybe we could update to 1.4.3 that is announced as "This is the last planned bug-fix release in the 1.4 series." Advisory: ======================== Update python-matplotlib to upstream 1.4.3 to fix unicode issues in os path This is the last planned upstream bug-fix release in the 1.4 series. References: https://github.com/matplotlib/matplotlib/releases/tag/v1.4.1 https://github.com/matplotlib/matplotlib/releases/tag/v1.4.2 https://github.com/matplotlib/matplotlib/releases/tag/v1.4.3 Packages in 5/core/updates_testing: ======================== python-matplotlib-gtk3-1.4.3-1.mga5 python3-matplotlib-1.4.3-1.mga5 python-matplotlib-pgf-1.4.3-1.mga5 python3-matplotlib-qt4-1.4.3-1.mga5 python-matplotlib-qt4-1.4.3-1.mga5 python3-matplotlib-tk-1.4.3-1.mga5 python-matplotlib-qt5-1.4.3-1.mga5 python-matplotlib-1.4.3-1.mga5 python-matplotlib-qt-shared-1.4.3-1.mga5 python-matplotlib-cairo-1.4.3-1.mga5 python-matplotlib-svg-1.4.3-1.mga5 python-matplotlib-debuginfo-1.4.3-1.mga5 python-matplotlib-tk-1.4.3-1.mga5 python-matplotlib-doc-1.4.3-1.mga5 python-matplotlib-wx-1.4.3-1.mga5 python-matplotlib-gtk-1.4.3-1.mga5 From : python-matplotlib-1.4.3-1.mga5 Assignee:
makowski.mageia =>
qa-bugs Testing Mageia 5 x64 - OK. Thanks to jb butet for such good evidence and how to produce it. Merci. BEFORE update: python3-matplotlib-tk-1.4.0-10.mga5 python-matplotlib-tk-1.4.0-10.mga5 python3-matplotlib-1.4.0-10.mga5 python-matplotlib-1.4.0-10.mga5 $ mkdir éé $ cd éé $ python Python 2.7.9 (default, Dec 14 2014, 10:12:16) [GCC 4.9.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import matplotlib.pyplot as plt Traceback (most recent call last): ... [exactly as Description down to] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 12: ordinal not in range(128) >>> AFTER update: python3-matplotlib-1.4.3-1.mga5 python-matplotlib-tk-1.4.3-1.mga5 python-matplotlib-1.4.3-1.mga5 python3-matplotlib-tk-1.4.3-1.mga5 [Still in directory éé] $ python Python 2.7.9 (default, Dec 14 2014, 10:12:16) [GCC 4.9.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> Clearly the reported fault is fixed. CC:
(none) =>
lewyssmith Missed out the vital python command in the previous AFTER python console: >>> import matplotlib.pyplot as plt >>> >>> which fortunately preserves the OK verdict! Validating, thanks Lewis for testing. Still needs advisory to be uploaded by QA though. Keywords:
(none) =>
validated_update
Rémi Verschelde
2015-08-21 16:45:22 CEST
Whiteboard:
MGA5-64-OK =>
MGA5-64-OK advisory An update for this issue has been pushed to Mageia Updates repository. http://advisories.mageia.org/MGAA-2015-0092.html Status:
NEW =>
RESOLVED |
Description of problem: python27 raises a UnicodeError when user import matplotlib.pyplot in a directory with accents python2.7 Python 2.7.9 (default, Dec 14 2014, 10:12:16) [GCC 4.9.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import matplotlib.pyplot as plt Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python2.7/site-packages/matplotlib/__init__.py", line 1048, in <module> rcParams = rc_params() File "/usr/lib64/python2.7/site-packages/matplotlib/__init__.py", line 897, in rc_params fname = matplotlib_fname() File "/usr/lib64/python2.7/site-packages/matplotlib/__init__.py", line 748, in matplotlib_fname fname = os.path.join(os.getcwd(), 'matplotlibrc') File "/usr/lib64/python2.7/posixpath.py", line 80, in join path += '/' + b UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 9: ordinal not in range(128) Version-Release number of selected component (if applicable): 1.4.10 How reproducible: Steps to Reproduce: 1. mkdir éé 2. cd éé 3. python2.7 4. import matplotlib.pyplot as plt Reproducible: Steps to Reproduce: