|
From: | stardiviner |
Subject: | Re: [O] Need somebody knows Octave help on ob-octave.el error |
Date: | Fri, 23 Mar 2018 16:16:19 +0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
After check out source code of `ob-octave.el`, I found only one places used `ans.m`: ``` (defvar
org-babel-octave-wrapper-method ``` Might Octave package versions compatition issue or something else raised this error. Based on the error hints, should be the calling to `ans` is wrong. After tesing upper code in Octave REPL, it works fine. that weird. The upper variable is just a wrapper around src block `body` for saving `ans` to file. Anyway,
hope somebody
who knows
elisp and
Octave can
check this
out. On 03/23/2018 08:09 AM, Eric S Fraga
wrote:
On Friday, 23 Mar 2018 at 07:55, stardiviner wrote:I got the following error after executing src block: ``` error: invalid call to script /usr/share/octave/4.2.2/m/help/ans.mI see the same. Not sure why this is happening but you can fix it but adding any line after the saveas statement that would generate a value, e.g. just a "1" will do: #+begin_src org ,#+begin_src octave :results file :dir "data/images" :file "figure1.png" clf (); surf (peaks); saveas (1, "figure1.png"); 1 ,#+end_src #+end_src |
[Prev in Thread] | Current Thread | [Next in Thread] |