[MacPorts] #60074: py37-matplotlib @3.1.3_0+cairo+webagg: importing fails

MacPorts noreply at macports.org
Tue Feb 11 13:22:53 UTC 2020


#60074: py37-matplotlib @3.1.3_0+cairo+webagg: importing fails
----------------------------+------------------------
  Reporter:  ladavid        |      Owner:  reneeotten
      Type:  defect         |     Status:  assigned
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.6.2
Resolution:                 |   Keywords:
      Port:  py-matplotlib  |
----------------------------+------------------------
Changes (by reneeotten):

 * cc: mf2k (added)


Comment:

 At least for me on macOS Mojave, doing the {{{import pylab as pl}}} and
 failing one ({{{from matplotlib._path import (affine_transform,
 count_bboxes_overlapping_bbox, update_path_extents)}}}) works without
 problems. I haven't upgrade to Catalina, which you seem to use, so can't
 comment on whether that's a factor. As a side note, I would certainly not
 recommend installing packages with both {{{pip}}} and through MacPorts,
 but let's see if we can figure this out.

 Can you please provide the output of {{{port -v installed pkgconfig
 py37-setuptools python37 freetype libpng qhull py37-cycler py37-dateutil
 py37-kiwisolver py37-numpy py37-parsing py37-tornado py37-cairo}}}? These
 are {{{matplotlib}}}'s dependencies and it would be good to see what
 you've installed through MacPorts.
 Also please check whether you have any of those installed through
 {{{pip}}} and, if so, which ones are loaded if you do {{{import
 <package>}}} in Python.

 Again, I am not sure this is really a problem with the MacPorts port, at
 least not on the macOS versions I've tried. It would be good to see if
 someone with a "clean" MacPorts-only Python install can try and reproduce
 this - @m2fk can you perhaps try the import statement above and see if
 that works for you?

-- 
Ticket URL: <https://trac.macports.org/ticket/60074#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list