pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/53425: graphics/py-matplotlib 2.2.2 import fails



>Number:         53425
>Category:       pkg
>Synopsis:       graphics/py-matplotlib 2.2.2 import fails
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 04 09:50:00 +0000 2018
>Originator:     Andreas Gustafsson
>Release:        NetBSD 7.1_STABLE; also -current
>Organization:

>Environment:
System: NetBSD
Architecture: x86_64
Machine: amd64
>Description:

With graphics/py-matplotlib 2.2.2, attempting to import
matplotlib.pyplot fails with the following backtrace:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/pkg/lib/python2.7/site-packages/matplotlib/pyplot.py", line 31, in <module>
    import matplotlib.colorbar
  File "/usr/pkg/lib/python2.7/site-packages/matplotlib/colorbar.py", line 36, in <module>
    import matplotlib.contour as contour
  File "/usr/pkg/lib/python2.7/site-packages/matplotlib/contour.py", line 20, in <module>
    import matplotlib.font_manager as font_manager
  File "/usr/pkg/lib/python2.7/site-packages/matplotlib/font_manager.py", line 1469, in <module>
    _rebuild()
  File "/usr/pkg/lib/python2.7/site-packages/matplotlib/font_manager.py", line 1450, in _rebuild
    fontManager = FontManager()
  File "/usr/pkg/lib/python2.7/site-packages/matplotlib/font_manager.py", line 1086, in __init__
    self.ttflist = createFontList(self.ttffiles)
  File "/usr/pkg/lib/python2.7/site-packages/matplotlib/font_manager.py", line 587, in createFontList
    font = ft2font.FT2Font(fpath)
TypeError: First argument must be a path or file object reading bytes

>How-To-Repeat:

Install graphics/py-matplotlib from current pkgsrc and run

  /usr/pkg/bin/python2.7 -c 'import matplotlib.pyplot'

>Fix:



Home | Main Index | Thread Index | Old Index