Subject: [zeus] python3-numpy: No module named 'numpy.core._multiarray_umath' #yocto #zeus #python To: yocto@lists.yoctoproject.org From: "Bel Hadj Salem Talel" X-Originating-Location: Hammam Sousse, Gouvernorat de Sousse, TN (197.240.104.182) X-Originating-Platform: Linux Chrome 90 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Tue, 11 May 2021 09:14:49 -0700 Message-ID: Content-Type: multipart/alternative; boundary="PGRI3vz8PD1tixJht6Kt" --PGRI3vz8PD1tixJht6Kt Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi All, I integrated python3-numpy in my image and when trying to import it I get = this error: (python3 version: 3.7.7) ------ >>> import cv2 OpenCV bindings requires "numpy" package. Install it via command: pip install numpy Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/numpy/core/__init__.py", line 17, i= n from . import multiarray File "/usr/lib/python3.7/site-packages/numpy/core/multiarray.py", line 14,= in from . import overrides File "/usr/lib/python3.7/site-packages/numpy/core/overrides.py", line 7, i= n from numpy.core._multiarray_umath import ( ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.7/site-packages/cv2/__init__.py", line 8, in import numpy File "/usr/lib/python3.7/site-packages/numpy/__init__.py", line 142, in root@menzu-media:~# python3 Python 3.7.7 (default, Apr 22 2021, 09:42:29) [GCC 9.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import cv2 OpenCV bindings requires "numpy" package. Install it via command: pip install numpy Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/numpy/core/__init__.py", line 17, i= n from . import multiarray File "/usr/lib/python3.7/site-packages/numpy/core/multiarray.py", line 14,= in from . import overrides File "/usr/lib/python3.7/site-packages/numpy/core/overrides.py", line 7, i= n from numpy.core._multiarray_umath import ( ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.7/site-packages/cv2/__init__.py", line 8, in import numpy File "/usr/lib/python3.7/site-packages/numpy/__init__.py", line 142, in from . import core File "/usr/lib/python3.7/site-packages/numpy/core/__init__.py", line 47, i= n raise ImportError(msg) ImportError: IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! Importing the numpy c-extensions failed. - Try uninstalling and reinstalling numpy. - If you have already done that, then: 1. Check that you expected to use Python3.7 from "/usr/bin/python3", and that you have no directories in your PATH or PYTHONPATH that can interfere with the Python and numpy version "1.17.0" you're trying to use. 2. If (1) looks fine, you can open a new issue at https://github.com/numpy/numpy/issues.=C2=A0 Please include details on: - how you installed Python - how you installed numpy - your operating system - whether or not you have multiple versions of Python installed - if you built from source, your compiler versions and ideally a build log - If you're working with a numpy git repository, try `git clean -xdf` (removes all files not under version control) and rebuild numpy. Note: this error has many possible causes, so please don't comment on an existing issue about this - open a new one instead. Original error was: No module named 'numpy.core._multiarray_umath' ---------- Did any one encounter this issue? Thanks, Talel --PGRI3vz8PD1tixJht6Kt Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi All,
I integrated python3-numpy in my image and when trying to impo= rt it I get this error: (python3 version: 3.7.7)

------
>>> import cv2            &nbs= p;
OpenCV bindings requires "numpy" package.
Install it via command:
    pip install numpy
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/numpy/core/__init__.py"= , line 17, in <module>
    from . import multiarray
  File "/usr/lib/python3.7/site-packages/numpy/core/multiarray.p= y", line 14, in <module>
    from . import overrides
  File "/usr/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'
 
During handling of the above exception, another exception occurred:
 
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.7/site-packages/cv2/__init__.py", line = 8, in <module>
    import numpy
  File "/usr/lib/python3.7/site-packages/numpy/__init__.py", lin= e 142, in <module>
root@menzu-media:~# python3
Python 3.7.7 (default, Apr 22 2021, 09:42:29) 
[GCC 9.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information= .
>>> import cv2
OpenCV bindings requires "numpy" package.
Install it via command:
    pip install numpy
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/numpy/core/__init__.py"= , line 17, in <module>
    from . import multiarray
  File "/usr/lib/python3.7/site-packages/numpy/core/multiarray.p= y", line 14, in <module>
    from . import overrides
  File "/usr/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'
 
During handling of the above exception, another exception occurred:
 
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.7/site-packages/cv2/__init__.py", line = 8, in <module>
    import numpy
  File "/usr/lib/python3.7/site-packages/numpy/__init__.py", lin= e 142, in <module>
    from . import core
  File "/usr/lib/python3.7/site-packages/numpy/core/__init__.py"= , line 47, in <module>
    raise ImportError(msg)
ImportError: 
 
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
 
Importing the numpy c-extensions failed.
- Try uninstalling and reinstalling numpy.
- If you have already done that, then:
  1. Check that you expected to use Python3.7 from "/usr/bin/pyt= hon3",
     and that you have no directories in your PATH or = PYTHONPATH that can
     interfere with the Python and numpy version "1.17= .0" you're trying to use.
  2. If (1) looks fine, you can open a new issue at
     https://github.com/numpy/numpy/issues.  Plea= se include details on:
     - how you installed Python
     - how you installed numpy
     - your operating system
     - whether or not you have multiple versions of Py= thon installed
     - if you built from source, your compiler version= s and ideally a build log
 
- If you're working with a numpy git repository, try `git clean -xdf`=
  (removes all files not under version control) and rebuild nump= y.
 
Note: this error has many possible causes, so please don't comment on=
an existing issue about this - open a new one instead.
 
Original error was: No module named 'numpy.core._multiarray_umath'----------

Did any one encounter this issue?

Thank= s,
Talel
--PGRI3vz8PD1tixJht6Kt--