From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: ob-octave.el raise error after execute src block Date: Fri, 23 Mar 2018 00:09:54 +0000 Message-ID: <87bmff4ppp.fsf@ucl.ac.uk> References: <0e2fe1ac-b9fd-c500-7816-2b4a428e749c@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47759) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ezAHv-0003pE-I0 for emacs-orgmode@gnu.org; Thu, 22 Mar 2018 20:10:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ezAHs-0002Qs-D2 for emacs-orgmode@gnu.org; Thu, 22 Mar 2018 20:10:31 -0400 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]:50319) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ezAHs-0002QY-5n for emacs-orgmode@gnu.org; Thu, 22 Mar 2018 20:10:28 -0400 Received: by mail-wm0-x231.google.com with SMTP id i75so652229wmf.0 for ; Thu, 22 Mar 2018 17:10:28 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: stardiviner Cc: org-mode --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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.m I 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 =2D-=20 Eric S Fraga via Emacs 27.0.50, Org release_9.1.6-341-g3a4fd3 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSPXCedOQfhSlwpVw3IkZPY//z2fQUCWrRF0gAKCRDIkZPY//z2 fWAZAKCRvXvBKDF636XABpGLu1YapnvZCACgnTviIpScAeqbWP4p46Wy/sfzuXg= =41Fn -----END PGP SIGNATURE----- --=-=-=--