In general, using complex extension modules like numpy between
matching pairs of Py_Initialize()/Py_Finalize() is tricky...
Extension modules have to be VERY carefully written as to permit such
usage pattern... It is too easy to forget the init/cleanup/finalize
steps... I was able to manage this i
Dear all,
I've written a wrapper enabling to run python code from within octave
(and vice versa). To this end I am embedding python in octave. So I am
calling
Py_Initialize();
_import_array();
Py_Finalize();
multiple times. While things work nicely on the first run, I am getting
a crash on _imp