oct2py импорт выполнен успешно, при любых вызовах oct2py происходит сбой Python

Я добавил C:\Octave\Octave-4.0.1\bin в мою PATH и могу успешно импортировать oct2py, но последующие вызовы oct2py приводят к сбою ядра python. Ядро вылетает в командной строке python, IPython и Spyder.

Образец кода:

from oct2py import Oct2Py    # works with no errors
oc = Oct2Py(executable="C:/Octave/Octave-4.0.1/bin/octave-cli.exe")  # also no errors
oc = Oct2Py()  # also returns with no errors.

y = oc.zeros(3,3)   # instantly kills the python

Я попробовал фабрику Oct2Py по умолчанию и попытался инициализировать ее исполняемым файлом, но ни один из них не работает.

Скорость, с которой ядро ​​взрывается, выглядит как ошибка компоновки, но я не уверен.

Вот мои версии Python и Octave:

Python 2.7.11 |Anaconda 2.5.0 (64-bit)| (default, Feb 16 2016, 09:58:36) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org

GNU Octave, version 4.0.1
Copyright (C) 2016 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type 'warranty'.

 Octave was configured for "i686-w64-mingw32".

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/get-involved.html

Read http://www.octave.org/bugs.html to learn how to submit bug reports.
For information about changes from previous versions, type 'news'.

octave:1>

ОБНОВИТЬ:

Я обнаружил, что могу помещать данные в Octave (например, oc.push('y',5) создает временный файл.mat с переменной y, которому присвоено значение 5), но извлекает данные (например, oc.pull('y')) убивает питона.

0 ответов

Другие вопросы по тегам