Skip to content
New issue

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

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

Already on GitHub? # to your account

Graalpy not work with numpy in static-linked native-image #464

Open
buuuuuuug opened this issue Dec 24, 2024 · 0 comments
Open

Graalpy not work with numpy in static-linked native-image #464

buuuuuuug opened this issue Dec 24, 2024 · 0 comments

Comments

@buuuuuuug
Copy link

Greetings!!
Graalpy is a wonderful work! You guys are brilliant!! It helped me a lot!
i've been trying to use graalpy in static-linked native-image, basic python functions are completely working perfectly.
but when it comes to numpy , it seems graalpy cannot work properly in static-linked NI.

everytime it runs into numpy code, a error occurs:

Traceback (most recent call last):
  File "Unnamed", line 3, in <module>
  File "/graalpy_vfs/venv/lib/python3.11/site-packages/numpy/__init__.py", line 141, in <module>
    from . import core
  File "/graalpy_vfs/venv/lib/python3.11/site-packages/numpy/core/__init__.py", line 23, in <module>
    from . import multiarray
  File "/graalpy_vfs/venv/lib/python3.11/site-packages/numpy/core/multiarray.py", line 10, in <module>
    from . import overrides
  File "/graalpy_vfs/venv/lib/python3.11/site-packages/numpy/core/overrides.py", line 6, in <module>
    from numpy.core._multiarray_umath import (
SystemError: NFIUnsatisfiedLinkError: Dynamic loading not supported

according to the stacks, i found that the _multiarray_umath is provided with a dynamic lib file.
is it possilble to run numpy code in a static NI with graalpy now?
image

@buuuuuuug buuuuuuug changed the title Graalpy not work with static-linked native-image Graalpy not work with numpy in static-linked native-image Dec 24, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant