[MacPorts] #63294: No module named 'numpy.core._multiarray_umath'

MacPorts noreply at macports.org
Sun Jul 25 00:32:08 UTC 2021


#63294: No module named 'numpy.core._multiarray_umath'
-----------------------------------+--------------------
 Reporter:  fmw42                  |      Owner:  (none)
     Type:  defect                 |     Status:  new
 Priority:  Normal                 |  Milestone:
Component:  ports                  |    Version:  2.7.1
 Keywords:  Numpy, Python, OpenCV  |       Port:  Numpy
-----------------------------------+--------------------
 I was upgrading ports (Python37 and OpenCV3) and also installing Python39
 and OpenCV3. The Python37/OpenCV3 upgrade worked fine and my scripts work
 again. But when installing Python39 and OpenCV3 (py39-opencv3), which
 seems to install properly, when I try to run a script, I get an error
 about Numpy. I did upgrade Numpy. I have the following versions.


 {{{
   py37-numpy @1.15.4_0+gfortran
   py37-numpy @1.16.1_0+gfortran
   py37-numpy @1.16.2_1+gfortran+openblas
   py37-numpy @1.17.4_0+gfortran+openblas
   py37-numpy @1.21.1_0+gfortran+openblas (active)
   py37-opencv3 @3.4.14_0 (active)

   py39-numpy @1.21.1_0+gfortran+openblas (active)
   py39-opencv3 @3.4.14_0 (active)

 }}}

 The latter do not seem to be working and I get the following when I run my
 Python/OpenCV/Numpy script.


 {{{
 python3.9 python_fit_ellipse.py

 OpenCV bindings requires "numpy" package.
 Install it via command:
     pip install numpy
 Traceback (most recent call last):
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/numpy/core/__init__.py", line 22, in <module>
     from . import multiarray
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/numpy/core/multiarray.py", line 12, in <module>
     from . import overrides
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/numpy/core/overrides.py", line 7, in <module>
     from numpy.core._multiarray_umath import (
 ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'

 }}}

 I did verify my PythonPath.

 PYTHONPATH:
 /opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages



 I am sorry. I do not know how to resolve this. Thanks for any help.

-- 
Ticket URL: <https://trac.macports.org/ticket/63294>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list