Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Cannot import numpy built with Intel oneAPI compiler icx and icpx #26257

Open
r-devulap opened this issue Apr 10, 2024 · 1 comment
Open
Assignees
Labels

Comments

@r-devulap
Copy link
Member

Describe the issue:

While I can build NumPy with icx and icpx compilers, it fails at import time.

Reproduce the code example:

import numpy as np

Error message:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/numpy/_core/__init__.py", line 23, in <module>
    from . import multiarray
  File "/usr/local/lib/python3.10/dist-packages/numpy/_core/multiarray.py", line 10, in <module>
    from . import overrides
  File "/usr/local/lib/python3.10/dist-packages/numpy/_core/overrides.py", line 8, in <module>
    from numpy._core._multiarray_umath import (
ImportError: /usr/local/lib/python3.10/dist-packages/numpy/_core/_multiarray_umath.cpython-310-x86_64-linux-gnu.so: undefined symbol: tan8_h

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/numpy/__init__.py", line 114, in <module>
    from numpy.__config__ import show as show_config
  File "/usr/local/lib/python3.10/dist-packages/numpy/__config__.py", line 4, in <module>
    from numpy._core._multiarray_umath import (
  File "/usr/local/lib/python3.10/dist-packages/numpy/_core/__init__.py", line 49, in <module>
    raise ImportError(msg)
ImportError:

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.

We have compiled some common reasons and troubleshooting tips at:

    https://numpy.org/devdocs/user/troubleshooting-importerror.html

Please note and check the following:

  * The Python version is: Python3.10 from "/usr/bin/python3"
  * The NumPy version is: "2.1.0.dev0+git20240402.4517378"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: /usr/local/lib/python3.10/dist-packages/numpy/_core/_multiarray_umath.cpython-310-x86_64-linux-gnu.so: undefined symbol: tan8_h

Python and NumPy Versions:

'3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]'

Runtime Environment:

No response

Context for the issue:

No response

@mattip
Copy link
Member

mattip commented Apr 10, 2024

Related to #25044

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants