Closed carlosuc3m closed 1 year ago
Many third party modules are incompatible with sub-interpreters, the only workaround we can make within jep is to share the modules between interpreters using the shared modules field in JepConfig. In most cases many modules will need to be added to that list and it can be quite complicated tracking those down so we recommend using SharedInterpreters whenever possible. Your crash looks to be occurring in numpy which is known to be incompatible with subinterpreters.
Okk great. Thanks for the info!
Describe the bug I am trying to create different Subinterpreters in different threads. In each of those threads I need to import a Python package called "BioImageio.core" (here and here) . After importing the package in one thread, if I try to import it in another one I get the following warning:
If I try then to call the libray, the JVM directly crashes:
Is there a way to avoid this? Is it related to the Python GIL?
REgards, CArlos