Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Octave works in command line but not in notebook

Hello,

"octave" runs runs from terminal, so $PATH seems to be correct. Moreover, octave calls from the sage console also work fine. But, octave calls from a notebook running on localhost return what I have pasted below.

Any suggestions?

Traceback (most recent call last): File "<stdin>", line 1, in <module> File "_sage_input_61.py", line 10, in <module> exec compile(u'open("___code___.py","w").write("# -- coding: utf-8 --\n" + _support_.preparse_worksheet_cell(base64.b64decode("b2N0YXZlLmV2YWwoJzIrMicp"),globals())+"\n"); execfile(os.path.abspath("___code___.py")) File "", line 1, in <module>

File "/private/var/folders/wR/wRRw4W7cHX8BD5dByW-jjk+++TI/-Tmp-/tmpzS3ZG9/___code___.py", line 2, in <module> exec compile(u"octave.eval('2+2')" + '\n', '', 'single') File "", line 1, in <module>

File "/Users/epenn/Math/Apps/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/sage/interfaces/expect.py", line 1039, in eval for L in code.split('\n') if L != '']) File "/Users/epenn/Math/Apps/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/sage/interfaces/expect.py", line 671, in _eval_line self._start() File "/Users/epenn/Math/Apps/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/sage/interfaces/octave.py", line 284, in _start Expect._start(self) File "/Users/epenn/Math/Apps/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/sage/interfaces/expect.py", line 458, in _start raise RuntimeError, "Unable to start %s"%self.name() RuntimeError: Unable to start octave