Mageia Bugzilla – Attachment 7813 Details for
Bug 18457
matplotlib for python3 misses fonts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Installation and error logs
matplotlib_report (text/plain), 12.05 KB, created by
Len Lawrence
on 2016-05-19 23:30:23 CEST
(
hide
)
Description:
Installation and error logs
Filename:
MIME Type:
Creator:
Len Lawrence
Created:
2016-05-19 23:30:23 CEST
Size:
12.05 KB
patch
obsolete
>x86_64 > >Already installed: >python-matplotlib-1.4.3-1 already installed >python-matplotlib-tk-1.4.3-1 >python-matplotlib-doc-1.4.3-1 >python-matplotlib-gtk-1.4.3-1 >python-matplotlib-gtk3-1.4.3-1 >python-matplotlib-pgf-1.4.3-1 >python-matplotlib-qt-shared-1.4.3-1 > >Not known even after updating the database: >python-matplotlib-data >python-matplotlib-data-fonts > >Before update, installed: > python3-dateutil 2.1 8.mga5 noarch > python3-nose 1.3.4 4.mga5 noarch > python3-numpy 1.8.2 4.mga5 x86_64 > python3-pyparsing 2.0.1 8.mga5 noarch > python3-pytz 2014.7 4.mga5 noarch >(medium "Core Updates (distrib3)") > python3-matplotlib 1.4.3 1.mga5 x86_64 > python3-matplotlib-tk 1.4.3 1.mga5 x86_64 > python3-qt4 4.11.3 1.mga5 x86_64 > python3-qt4-core 4.11.3 1.mga5 x86_64 > python3-qt4-dbus 4.11.3 1.mga5 x86_64 > python3-qt4-declarative 4.11.3 1.mga5 x86_64 > python3-qt4-designer 4.11.3 1.mga5 x86_64 > python3-qt4-gui 4.11.3 1.mga5 x86_64 > python3-qt4-multimedia 4.11.3 1.mga5 x86_64 > python3-qt4-network 4.11.3 1.mga5 x86_64 > python3-qt4-opengl 4.11.3 1.mga5 x86_64 > python3-qt4-script 4.11.3 1.mga5 x86_64 > python3-qt4-sql 4.11.3 1.mga5 x86_64 > python3-qt4-svg 4.11.3 1.mga5 x86_64 > python3-qt4-test 4.11.3 1.mga5 x86_64 > python3-qt4-webkit 4.11.3 1.mga5 x86_64 > python3-qt4-xml 4.11.3 1.mga5 x86_64 > python3-qt4-xmlpatterns 4.11.3 1.mga5 x86_64 > > python-matplotlib-cairo-1.4.3-1 > python-matplotlib-qt5-1.4.3-1 > python-matplotlib-svg-1.4.3-1 > python-matplotlib-wx-1.4.3-1 > >These all came from python-matlib-qt4 > > python-matplotlib-qt-shared 1.4.3 1.mga5 x86_64 > python-matplotlib-qt4 1.4.3 1.mga5 x86_64 > python-qt5 5.4.2 1.mga5 x86_64 > python-qt5-bluetooth 5.4.2 1.mga5 x86_64 > python-qt5-core 5.4.2 1.mga5 x86_64 > python-qt5-dbus 5.4.2 1.mga5 x86_64 > python-qt5-designer 5.4.2 1.mga5 x86_64 > python-qt5-gui 5.4.2 1.mga5 x86_64 > python-qt5-multimedia 5.4.2 1.mga5 x86_64 > python-qt5-multimediawidgets 5.4.2 1.mga5 x86_64 > python-qt5-network 5.4.2 1.mga5 x86_64 > python-qt5-opengl 5.4.2 1.mga5 x86_64 > python-qt5-positioning 5.4.2 1.mga5 x86_64 > python-qt5-printsupport 5.4.2 1.mga5 x86_64 > python-qt5-qml 5.4.2 1.mga5 x86_64 > python-qt5-quick 5.4.2 1.mga5 x86_64 > python-qt5-serialport 5.4.2 1.mga5 x86_64 > python-qt5-sql 5.4.2 1.mga5 x86_64 > python-qt5-svg 5.4.2 1.mga5 x86_64 > python-qt5-test 5.4.2 1.mga5 x86_64 > python-qt5-webkit 5.4.2 1.mga5 x86_64 > python-qt5-webkitwidgets 5.4.2 1.mga5 x86_64 > python-qt5-websockets 5.4.2 1.mga5 x86_64 > python-qt5-widgets 5.4.2 1.mga5 x86_64 > python-qt5-x11extras 5.4.2 1.mga5 x86_64 > python-qt5-xml 5.4.2 1.mga5 x86_64 > python-qt5-xmlpatterns 5.4.2 1.mga5 x86_64 > > >$ python3 matplotlib_POC.py >Value error parsing header in AFM: b'FullName' b'Cl\xf3 Gaelach [Twomey]' >Value error parsing header in AFM: b'Notice' b'\xa9 1993, by Colum Twomey [ctwomey@ccvax.ucd.ie] All rights reserved.' >Value error parsing header in AFM: b'FamilyName' b'Cl\xf3 Gaelach [Twomey]' >Traceback (most recent call last): > File "/usr/lib64/python3.4/site-packages/matplotlib/font_manager.py", line 1407, in <module> > fontManager = pickle_load(_fmcache) > File "/usr/lib64/python3.4/site-packages/matplotlib/font_manager.py", line 960, in pickle_load > with open(filename, 'rb') as fh: >FileNotFoundError: [Errno 2] No such file or directory: '/home/lcl/.cache/matplotlib/fontList.py3k.cache' > >During handling of the above exception, another exception occurred: > >Traceback (most recent call last): > File "matplotlib_POC.py", line 1, in <module> > import matplotlib.pyplot as plt > File "/usr/lib64/python3.4/site-packages/matplotlib/pyplot.py", line 27, in <module> > import matplotlib.colorbar > File "/usr/lib64/python3.4/site-packages/matplotlib/colorbar.py", line 34, in <module> > import matplotlib.collections as collections > File "/usr/lib64/python3.4/site-packages/matplotlib/collections.py", line 27, in <module> > import matplotlib.backend_bases as backend_bases > File "/usr/lib64/python3.4/site-packages/matplotlib/backend_bases.py", line 56, in <module> > import matplotlib.textpath as textpath > File "/usr/lib64/python3.4/site-packages/matplotlib/textpath.py", line 19, in <module> > import matplotlib.font_manager as font_manager > File "/usr/lib64/python3.4/site-packages/matplotlib/font_manager.py", line 1415, in <module> > _rebuild() > File "/usr/lib64/python3.4/site-packages/matplotlib/font_manager.py", line 1400, in _rebuild > fontManager = FontManager() > File "/usr/lib64/python3.4/site-packages/matplotlib/font_manager.py", line 1059, in __init__ > self.afmlist = createFontList(self.afmfiles, fontext='afm') > File "/usr/lib64/python3.4/site-packages/matplotlib/font_manager.py", line 575, in createFontList > prop = afmFontProperty(fpath, font) > File "/usr/lib64/python3.4/site-packages/matplotlib/font_manager.py", line 486, in afmFontProperty > name = font.get_familyname() > File "/usr/lib64/python3.4/site-packages/matplotlib/afm.py", line 521, in get_familyname > return re.sub(extras, '', name) > File "/usr/lib64/python3.4/re.py", line 179, in sub > return _compile(pattern, flags).sub(repl, string, count) >TypeError: can't use a bytes pattern on a string-like object > >Cherry-picking led to the installation of the following from Core updates testing: > >- python-matplotlib-1.4.3-1.1.mga5.x86_64 >- python-matplotlib-cairo-1.4.3-1.1.mga5.x86_64 >- python-matplotlib-data-1.4.3-1.1.mga5.noarch >- python-matplotlib-data-fonts-1.4.3-1.1.mga5.noarch >- python-matplotlib-doc-1.4.3-1.1.mga5.noarch >- python-matplotlib-gtk-1.4.3-1.1.mga5.x86_64 >- python-matplotlib-gtk3-1.4.3-1.1.mga5.x86_64 >- python-matplotlib-pgf-1.4.3-1.1.mga5.x86_64 >- python-matplotlib-qt-shared-1.4.3-1.1.mga5.x86_64 >- python-matplotlib-qt4-1.4.3-1.1.mga5.x86_64 >- python-matplotlib-qt5-1.4.3-1.1.mga5.x86_64 >- python-matplotlib-svg-1.4.3-1.1.mga5.x86_64 >- python-matplotlib-tk-1.4.3-1.1.mga5.x86_64 >- python-matplotlib-wx-1.4.3-1.1.mga5.x86_64 >- python3-matplotlib-1.4.3-1.1.mga5.x86_64 >- python3-matplotlib-qt4-1.4.3-1.1.mga5.x86_64 >- python3-matplotlib-tk-1.4.3-1.1.mga5.x86_64 > >After the update the POC fails and reports more errors. It seems to be trawling the installed fonts because it finds some of the personally installed ones. > >$ python3 matplotlib_POC.py >Value error parsing header in AFM: b'Notice' b'Typeface and data \xa9 1995-1999 Microsoft Corporation. All Rights Reserved.' >Value error parsing header in AFM: b'Notice' b'\xa9 Luc as de Groot 1994' >Value error parsing header in AFM: b'Notice' b'Copyright \xa9 2000, The Royal National Institute for the Blind. All rights reserved.' >Value error parsing header in AFM: b'Notice' b'Typeface and data \xa9 1996 Microsoft Corporation. All Rights Reserved' >Value error parsing header in AFM: b'Notice' b'Typeface \xa9 The Monotype Corporation plc. Data \xa9 The Monotype Corporation plc/Type Solutions Inc. 1990-1992. All Rights Reserved' >Value error parsing header in AFM: b'Notice' b'\xa9GemFonts98' >Value error parsing header in AFM: b'Notice' b'Copyright \xa9 1992. Gerard E. Bernor. All Rights Reserved. TQF [Typeset Quality Font]' >Value error parsing header in AFM: b'Notice' b'Typeface and data \xa9 1995-1999 Microsoft Corporation. All Rights Reserved.' >Value error parsing header in AFM: b'Notice' b'Typeface \xa9 The Monotype Corporation plc. Data \xa9 The Monotype Corporation plc/Type Solutions Inc. 1990-1992. All Rights Reserved' >Value error parsing header in AFM: b'Notice' b'\xa9GemFonts98' >Value error parsing header in AFM: b'Notice' b'\xa9GemFonts - A mix of styles all banged together.' >Value error parsing header in AFM: b'Notice' b'Typeface and data \xa9 1996 Microsoft Corporation. All Rights Reserved' >Value error parsing header in AFM: b'Notice' b'\xa9 1996 Kiwi Media Inc. Design by Eric Oehler.' >Value error parsing header in AFM: b'Notice' b'Typeface and data \xa9 1996 Microsoft Corporation. All Rights Reserved' >Value error parsing header in AFM: b'Notice' b'\xa9Gemfonts98' >Value error parsing header in AFM: b'Notice' b'Shareware Typeface \xa9~Tilde Press\xae June 1995' >Value error parsing header in AFM: b'Notice' b'\xa9GemFonts' >Value error parsing header in AFM: b'Notice' b'Menuetto Font \xa9 1994 by K.R. Field' >Value error parsing header in AFM: b'Notice' b'Cowboys\xa9 Dennis Ludlow 2001 All Rights Reserved' >Value error parsing header in AFM: b'FullName' b'Cl\xf3 Gaelach [Twomey]' >Value error parsing header in AFM: b'Notice' b'\xa9 1993, by Colum Twomey [ctwomey@ccvax.ucd.ie] All rights reserved.' >Value error parsing header in AFM: b'FamilyName' b'Cl\xf3 Gaelach [Twomey]' >Traceback (most recent call last): > File "/usr/lib64/python3.4/site-packages/matplotlib/font_manager.py", line 1407, in <module> > fontManager = pickle_load(_fmcache) > File "/usr/lib64/python3.4/site-packages/matplotlib/font_manager.py", line 960, in pickle_load > with open(filename, 'rb') as fh: >FileNotFoundError: [Errno 2] No such file or directory: '/home/lcl/.cache/matplotlib/fontList.py3k.cache' > >During handling of the above exception, another exception occurred: > >Traceback (most recent call last): > File "matplotlib_POC.py", line 1, in <module> > import matplotlib.pyplot as plt > File "/usr/lib64/python3.4/site-packages/matplotlib/pyplot.py", line 27, in <module> > import matplotlib.colorbar > File "/usr/lib64/python3.4/site-packages/matplotlib/colorbar.py", line 34, in <module> > import matplotlib.collections as collections > File "/usr/lib64/python3.4/site-packages/matplotlib/collections.py", line 27, in <module> > import matplotlib.backend_bases as backend_bases > File "/usr/lib64/python3.4/site-packages/matplotlib/backend_bases.py", line 56, in <module> > import matplotlib.textpath as textpath > File "/usr/lib64/python3.4/site-packages/matplotlib/textpath.py", line 19, in <module> > import matplotlib.font_manager as font_manager > File "/usr/lib64/python3.4/site-packages/matplotlib/font_manager.py", line 1415, in <module> > _rebuild() > File "/usr/lib64/python3.4/site-packages/matplotlib/font_manager.py", line 1400, in _rebuild > fontManager = FontManager() > File "/usr/lib64/python3.4/site-packages/matplotlib/font_manager.py", line 1059, in __init__ > self.afmlist = createFontList(self.afmfiles, fontext='afm') > File "/usr/lib64/python3.4/site-packages/matplotlib/font_manager.py", line 575, in createFontList > prop = afmFontProperty(fpath, font) > File "/usr/lib64/python3.4/site-packages/matplotlib/font_manager.py", line 486, in afmFontProperty > name = font.get_familyname() > File "/usr/lib64/python3.4/site-packages/matplotlib/afm.py", line 521, in get_familyname > return re.sub(extras, '', name) > File "/usr/lib64/python3.4/re.py", line 179, in sub > return _compile(pattern, flags).sub(repl, string, count) >TypeError: can't use a bytes pattern on a string-like object > > >Confirmed that /home/lcl/.cache/matplotlib/fontList.py3k.cache' >does not exist. /home/lcl/.cache/matplotlib/ is empty. > >
x86_64 Already installed: python-matplotlib-1.4.3-1 already installed python-matplotlib-tk-1.4.3-1 python-matplotlib-doc-1.4.3-1 python-matplotlib-gtk-1.4.3-1 python-matplotlib-gtk3-1.4.3-1 python-matplotlib-pgf-1.4.3-1 python-matplotlib-qt-shared-1.4.3-1 Not known even after updating the database: python-matplotlib-data python-matplotlib-data-fonts Before update, installed: python3-dateutil 2.1 8.mga5 noarch python3-nose 1.3.4 4.mga5 noarch python3-numpy 1.8.2 4.mga5 x86_64 python3-pyparsing 2.0.1 8.mga5 noarch python3-pytz 2014.7 4.mga5 noarch (medium "Core Updates (distrib3)") python3-matplotlib 1.4.3 1.mga5 x86_64 python3-matplotlib-tk 1.4.3 1.mga5 x86_64 python3-qt4 4.11.3 1.mga5 x86_64 python3-qt4-core 4.11.3 1.mga5 x86_64 python3-qt4-dbus 4.11.3 1.mga5 x86_64 python3-qt4-declarative 4.11.3 1.mga5 x86_64 python3-qt4-designer 4.11.3 1.mga5 x86_64 python3-qt4-gui 4.11.3 1.mga5 x86_64 python3-qt4-multimedia 4.11.3 1.mga5 x86_64 python3-qt4-network 4.11.3 1.mga5 x86_64 python3-qt4-opengl 4.11.3 1.mga5 x86_64 python3-qt4-script 4.11.3 1.mga5 x86_64 python3-qt4-sql 4.11.3 1.mga5 x86_64 python3-qt4-svg 4.11.3 1.mga5 x86_64 python3-qt4-test 4.11.3 1.mga5 x86_64 python3-qt4-webkit 4.11.3 1.mga5 x86_64 python3-qt4-xml 4.11.3 1.mga5 x86_64 python3-qt4-xmlpatterns 4.11.3 1.mga5 x86_64 python-matplotlib-cairo-1.4.3-1 python-matplotlib-qt5-1.4.3-1 python-matplotlib-svg-1.4.3-1 python-matplotlib-wx-1.4.3-1 These all came from python-matlib-qt4 python-matplotlib-qt-shared 1.4.3 1.mga5 x86_64 python-matplotlib-qt4 1.4.3 1.mga5 x86_64 python-qt5 5.4.2 1.mga5 x86_64 python-qt5-bluetooth 5.4.2 1.mga5 x86_64 python-qt5-core 5.4.2 1.mga5 x86_64 python-qt5-dbus 5.4.2 1.mga5 x86_64 python-qt5-designer 5.4.2 1.mga5 x86_64 python-qt5-gui 5.4.2 1.mga5 x86_64 python-qt5-multimedia 5.4.2 1.mga5 x86_64 python-qt5-multimediawidgets 5.4.2 1.mga5 x86_64 python-qt5-network 5.4.2 1.mga5 x86_64 python-qt5-opengl 5.4.2 1.mga5 x86_64 python-qt5-positioning 5.4.2 1.mga5 x86_64 python-qt5-printsupport 5.4.2 1.mga5 x86_64 python-qt5-qml 5.4.2 1.mga5 x86_64 python-qt5-quick 5.4.2 1.mga5 x86_64 python-qt5-serialport 5.4.2 1.mga5 x86_64 python-qt5-sql 5.4.2 1.mga5 x86_64 python-qt5-svg 5.4.2 1.mga5 x86_64 python-qt5-test 5.4.2 1.mga5 x86_64 python-qt5-webkit 5.4.2 1.mga5 x86_64 python-qt5-webkitwidgets 5.4.2 1.mga5 x86_64 python-qt5-websockets 5.4.2 1.mga5 x86_64 python-qt5-widgets 5.4.2 1.mga5 x86_64 python-qt5-x11extras 5.4.2 1.mga5 x86_64 python-qt5-xml 5.4.2 1.mga5 x86_64 python-qt5-xmlpatterns 5.4.2 1.mga5 x86_64 $ python3 matplotlib_POC.py Value error parsing header in AFM: b'FullName' b'Cl\xf3 Gaelach [Twomey]' Value error parsing header in AFM: b'Notice' b'\xa9 1993, by Colum Twomey [ctwomey@ccvax.ucd.ie] All rights reserved.' Value error parsing header in AFM: b'FamilyName' b'Cl\xf3 Gaelach [Twomey]' Traceback (most recent call last): File "/usr/lib64/python3.4/site-packages/matplotlib/font_manager.py", line 1407, in <module> fontManager = pickle_load(_fmcache) File "/usr/lib64/python3.4/site-packages/matplotlib/font_manager.py", line 960, in pickle_load with open(filename, 'rb') as fh: FileNotFoundError: [Errno 2] No such file or directory: '/home/lcl/.cache/matplotlib/fontList.py3k.cache' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "matplotlib_POC.py", line 1, in <module> import matplotlib.pyplot as plt File "/usr/lib64/python3.4/site-packages/matplotlib/pyplot.py", line 27, in <module> import matplotlib.colorbar File "/usr/lib64/python3.4/site-packages/matplotlib/colorbar.py", line 34, in <module> import matplotlib.collections as collections File "/usr/lib64/python3.4/site-packages/matplotlib/collections.py", line 27, in <module> import matplotlib.backend_bases as backend_bases File "/usr/lib64/python3.4/site-packages/matplotlib/backend_bases.py", line 56, in <module> import matplotlib.textpath as textpath File "/usr/lib64/python3.4/site-packages/matplotlib/textpath.py", line 19, in <module> import matplotlib.font_manager as font_manager File "/usr/lib64/python3.4/site-packages/matplotlib/font_manager.py", line 1415, in <module> _rebuild() File "/usr/lib64/python3.4/site-packages/matplotlib/font_manager.py", line 1400, in _rebuild fontManager = FontManager() File "/usr/lib64/python3.4/site-packages/matplotlib/font_manager.py", line 1059, in __init__ self.afmlist = createFontList(self.afmfiles, fontext='afm') File "/usr/lib64/python3.4/site-packages/matplotlib/font_manager.py", line 575, in createFontList prop = afmFontProperty(fpath, font) File "/usr/lib64/python3.4/site-packages/matplotlib/font_manager.py", line 486, in afmFontProperty name = font.get_familyname() File "/usr/lib64/python3.4/site-packages/matplotlib/afm.py", line 521, in get_familyname return re.sub(extras, '', name) File "/usr/lib64/python3.4/re.py", line 179, in sub return _compile(pattern, flags).sub(repl, string, count) TypeError: can't use a bytes pattern on a string-like object Cherry-picking led to the installation of the following from Core updates testing: - python-matplotlib-1.4.3-1.1.mga5.x86_64 - python-matplotlib-cairo-1.4.3-1.1.mga5.x86_64 - python-matplotlib-data-1.4.3-1.1.mga5.noarch - python-matplotlib-data-fonts-1.4.3-1.1.mga5.noarch - python-matplotlib-doc-1.4.3-1.1.mga5.noarch - python-matplotlib-gtk-1.4.3-1.1.mga5.x86_64 - python-matplotlib-gtk3-1.4.3-1.1.mga5.x86_64 - python-matplotlib-pgf-1.4.3-1.1.mga5.x86_64 - python-matplotlib-qt-shared-1.4.3-1.1.mga5.x86_64 - python-matplotlib-qt4-1.4.3-1.1.mga5.x86_64 - python-matplotlib-qt5-1.4.3-1.1.mga5.x86_64 - python-matplotlib-svg-1.4.3-1.1.mga5.x86_64 - python-matplotlib-tk-1.4.3-1.1.mga5.x86_64 - python-matplotlib-wx-1.4.3-1.1.mga5.x86_64 - python3-matplotlib-1.4.3-1.1.mga5.x86_64 - python3-matplotlib-qt4-1.4.3-1.1.mga5.x86_64 - python3-matplotlib-tk-1.4.3-1.1.mga5.x86_64 After the update the POC fails and reports more errors. It seems to be trawling the installed fonts because it finds some of the personally installed ones. $ python3 matplotlib_POC.py Value error parsing header in AFM: b'Notice' b'Typeface and data \xa9 1995-1999 Microsoft Corporation. All Rights Reserved.' Value error parsing header in AFM: b'Notice' b'\xa9 Luc as de Groot 1994' Value error parsing header in AFM: b'Notice' b'Copyright \xa9 2000, The Royal National Institute for the Blind. All rights reserved.' Value error parsing header in AFM: b'Notice' b'Typeface and data \xa9 1996 Microsoft Corporation. All Rights Reserved' Value error parsing header in AFM: b'Notice' b'Typeface \xa9 The Monotype Corporation plc. Data \xa9 The Monotype Corporation plc/Type Solutions Inc. 1990-1992. All Rights Reserved' Value error parsing header in AFM: b'Notice' b'\xa9GemFonts98' Value error parsing header in AFM: b'Notice' b'Copyright \xa9 1992. Gerard E. Bernor. All Rights Reserved. TQF [Typeset Quality Font]' Value error parsing header in AFM: b'Notice' b'Typeface and data \xa9 1995-1999 Microsoft Corporation. All Rights Reserved.' Value error parsing header in AFM: b'Notice' b'Typeface \xa9 The Monotype Corporation plc. Data \xa9 The Monotype Corporation plc/Type Solutions Inc. 1990-1992. All Rights Reserved' Value error parsing header in AFM: b'Notice' b'\xa9GemFonts98' Value error parsing header in AFM: b'Notice' b'\xa9GemFonts - A mix of styles all banged together.' Value error parsing header in AFM: b'Notice' b'Typeface and data \xa9 1996 Microsoft Corporation. All Rights Reserved' Value error parsing header in AFM: b'Notice' b'\xa9 1996 Kiwi Media Inc. Design by Eric Oehler.' Value error parsing header in AFM: b'Notice' b'Typeface and data \xa9 1996 Microsoft Corporation. All Rights Reserved' Value error parsing header in AFM: b'Notice' b'\xa9Gemfonts98' Value error parsing header in AFM: b'Notice' b'Shareware Typeface \xa9~Tilde Press\xae June 1995' Value error parsing header in AFM: b'Notice' b'\xa9GemFonts' Value error parsing header in AFM: b'Notice' b'Menuetto Font \xa9 1994 by K.R. Field' Value error parsing header in AFM: b'Notice' b'Cowboys\xa9 Dennis Ludlow 2001 All Rights Reserved' Value error parsing header in AFM: b'FullName' b'Cl\xf3 Gaelach [Twomey]' Value error parsing header in AFM: b'Notice' b'\xa9 1993, by Colum Twomey [ctwomey@ccvax.ucd.ie] All rights reserved.' Value error parsing header in AFM: b'FamilyName' b'Cl\xf3 Gaelach [Twomey]' Traceback (most recent call last): File "/usr/lib64/python3.4/site-packages/matplotlib/font_manager.py", line 1407, in <module> fontManager = pickle_load(_fmcache) File "/usr/lib64/python3.4/site-packages/matplotlib/font_manager.py", line 960, in pickle_load with open(filename, 'rb') as fh: FileNotFoundError: [Errno 2] No such file or directory: '/home/lcl/.cache/matplotlib/fontList.py3k.cache' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "matplotlib_POC.py", line 1, in <module> import matplotlib.pyplot as plt File "/usr/lib64/python3.4/site-packages/matplotlib/pyplot.py", line 27, in <module> import matplotlib.colorbar File "/usr/lib64/python3.4/site-packages/matplotlib/colorbar.py", line 34, in <module> import matplotlib.collections as collections File "/usr/lib64/python3.4/site-packages/matplotlib/collections.py", line 27, in <module> import matplotlib.backend_bases as backend_bases File "/usr/lib64/python3.4/site-packages/matplotlib/backend_bases.py", line 56, in <module> import matplotlib.textpath as textpath File "/usr/lib64/python3.4/site-packages/matplotlib/textpath.py", line 19, in <module> import matplotlib.font_manager as font_manager File "/usr/lib64/python3.4/site-packages/matplotlib/font_manager.py", line 1415, in <module> _rebuild() File "/usr/lib64/python3.4/site-packages/matplotlib/font_manager.py", line 1400, in _rebuild fontManager = FontManager() File "/usr/lib64/python3.4/site-packages/matplotlib/font_manager.py", line 1059, in __init__ self.afmlist = createFontList(self.afmfiles, fontext='afm') File "/usr/lib64/python3.4/site-packages/matplotlib/font_manager.py", line 575, in createFontList prop = afmFontProperty(fpath, font) File "/usr/lib64/python3.4/site-packages/matplotlib/font_manager.py", line 486, in afmFontProperty name = font.get_familyname() File "/usr/lib64/python3.4/site-packages/matplotlib/afm.py", line 521, in get_familyname return re.sub(extras, '', name) File "/usr/lib64/python3.4/re.py", line 179, in sub return _compile(pattern, flags).sub(repl, string, count) TypeError: can't use a bytes pattern on a string-like object Confirmed that /home/lcl/.cache/matplotlib/fontList.py3k.cache' does not exist. /home/lcl/.cache/matplotlib/ is empty.
View Attachment As Raw
Actions:
View
Attachments on
bug 18457
:
7794
| 7813 |
7817