[MacPorts] #64662: matplotlib installation generating a circular import error
MacPorts
noreply at macports.org
Sun Feb 13 21:08:47 UTC 2022
#64662: matplotlib installation generating a circular import error
-------------------------------+-----------------------------
Reporter: mmaclow | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords: monterey x86_64
Port: py310-matplotlib |
-------------------------------+-----------------------------
Description changed by mmaclow:
Old description:
> py310 @3.5.1_0+cairo+webagg generates circular import error on import
>
> I have a fresh installation of MacPorts (built yesterday) on a newly
> upgraded version of MacOS Monterey on an x86 MacBook Pro, with the
> current version of Xcode. I have installed python310, py310-numpy, and
> so forth, including py310-matplotlib. Everything works, with no errors
> generated during install. However when I try to import matplotlib into a
> jupyter notebook, I get the error message:
>
> {{{ImportError: cannot import name '_c_internal_utils' from partially
> initialized module 'matplotlib' (most likely due to a circular import)
> (/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
> /site-packages/matplotlib/__init__.py) }}}
>
> I have tried uninstalling and cleaning the port py310-matplotlib, and
> then reinstalling it, without improvement.
>
> I don't know why it is showing up in the python3.9/site-packages rather
> than python3.10/site-packages, but I'm not sure whether that is the
> problem here.
New description:
py310-matplotlib @3.5.1_0+cairo+webagg generates circular import error on
import
I have a fresh installation of MacPorts (built yesterday) on a newly
upgraded version of MacOS Monterey on an x86 MacBook Pro, with the current
version of Xcode. I have installed python310, py310-numpy, and so forth,
including py310-matplotlib. Everything works, with no errors generated
during install. However when I try to import matplotlib into a jupyter
notebook, I get the error message:
{{{ImportError: cannot import name '_c_internal_utils' from partially
initialized module 'matplotlib' (most likely due to a circular import)
(/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/matplotlib/__init__.py) }}}
I have tried uninstalling and cleaning the port py310-matplotlib, and then
reinstalling it, without improvement.
I don't know why it is showing up in the python3.9/site-packages rather
than python3.10/site-packages, but I'm not sure whether that is the
problem here.
--
--
Ticket URL: <https://trac.macports.org/ticket/64662#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list