You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[python::capi] WARNING: GraalPy option 'NativeModules' is set to true, but only one context in the process can use native modules, second and other contexts fallback to NativeModules=false and will use LLVM bitcode execution via GraalVM LLVM.
SystemError: no bitcode found for /Users/epsilo/Downloads/kwl/work/graalpy_venv/lib/python3.10/site-packages/numpy/core/_multiarray_umath.graalpy231-310-native-x86_64-darwin.so
at <python> <module>(Unnamed:1-4:0-89)
at org.graalvm.polyglot.Context.eval(Context.java:402)
at io.epsilo.web.TestMultiPolygotContext.<init>(TestMultiPolygotContext.java:54)
at io.epsilo.web.TestMultiPolygotContext.main(TestMultiPolygotContext.java:77)
Error: SystemError: no bitcode found for /Users/epsilo/Downloads/kwl/work/graalpy_venv/lib/python3.10/site-packages/numpy/core/_multiarray_umath.graalpy231-310-native-x86_64-darwin.so
System Info:
GraalVM 21
Graalpy 23.1
The text was updated successfully, but these errors were encountered:
Hi @dangnguyenngochai. It's a documented limitation of using native extensions. Native libraries have global state and there is no way to reset it for the new context. There are some experiments with copying and patching the library files to be able to load them a second time. Please follow #437 for that work. I'll close this issue as a duplicate of that one.
Running the following example raise
System Info:
The text was updated successfully, but these errors were encountered: