[MacPorts] #64662: matplotlib: fail to import due to a circular import

MacPorts noreply at macports.org
Mon Feb 14 04:08:00 UTC 2022


#64662: matplotlib: fail to import due to a circular import
----------------------------+------------------------
  Reporter:  mmaclow        |      Owner:  reneeotten
      Type:  defect         |     Status:  accepted
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.7.1
Resolution:                 |   Keywords:  monterey
      Port:  py-matplotlib  |
----------------------------+------------------------

Comment (by mmaclow):

 Yes, I have used `python_select` as suggested by the python installation.

 I did the full reinstall of MacPorts because of previous problems with
 `pip` conflicting with it, but I thought I had wiped out my pip
 installation.

 My `PYTHONPATH` is indeed set. Is that now deprecated? It is the problem,
 in fact.  That is, when I took the 3.9 site packages directory out of it,
 the problem went away, and matplotlib now works normally.

 Thank you for your help with this!  I'm teaching a class at Columbia U in
 numerical astrophysics that relied on making this work again.  I apologize
 for putting this up as a ticket, but I could not figure out how MacPorts
 was generating this result in a new installation.

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


More information about the macports-tickets mailing list