Skip to content

numpy CANNOT work with multi context due to TypeError: object.__init__() takes exactly one argument (the instance to initialize) (Graalpy Veresion 25.0.2) #628

@xiongxoy

Description

@xiongxoy
GraalPy multiContextImport: context 2/3 failed: TypeError: object.__init__() takes exactly one argument (the instance to initialize)
org.graalvm.polyglot.PolyglotException: TypeError: object.__init__() takes exactly one argument (the instance to initialize)

The following is a spring-boot project for reproducing the bug, just create a venv and install numpy in a standalone, and point the external folder to the standalone, and visit http://localhost:8008/api/test/graalpy/simpleMultiContext?contextCount=3&isolateNativeModules=true&externalPythonPath=/codes/graalpy

graalpy-numpy-multi-context-bug-reproducer.zip

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions