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
at 0x00007FF9753DB8E9 (_multiarray_umath.cp39-win_amd64.pyd) (located in PythonVM.exe): 0xC0000005: Access violation occurred while writing location 0x0000000000000008
NumPy/Python version information:
Numpy: 1.20.3
Python: 3.9.5
Platform: Win10
Compiler: Visual Studio 2019
1.20.3 3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)]
The text was updated successfully, but these errors were encountered:
Numpy doesn't support being imported from multiple interpreters in a single process (even sequentially as you show there) as among other reasons it caches too many objects in static variables that can't be cleared.
Even if we fixed that, the python CAPI makes it quite challenging to implement things correctly with per-interpreter module state. An example is that there is no easy way for an tp_as_number.nb_add (aka __add__) method to obtain the relevant module state: PEP 573 only addresses regular methods, not slots.
Embedding Python in C++. Crash process : Py_Initialize->"import numpy"->Py_Finalize->Py_Initialize->"import numpy".
Reproducing code example:
input : 1 3 2 1 3
Error message:
at 0x00007FF9753DB8E9 (_multiarray_umath.cp39-win_amd64.pyd) (located in PythonVM.exe): 0xC0000005: Access violation occurred while writing location 0x0000000000000008
NumPy/Python version information:
Numpy: 1.20.3
Python: 3.9.5
Platform: Win10
Compiler: Visual Studio 2019
1.20.3 3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)]
The text was updated successfully, but these errors were encountered: