From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitri Makarov Subject: Re: graphviz dot block export and evaluate Date: Fri, 28 Sep 2012 19:27:59 +0200 Message-ID: <821644A1-7764-401C-858A-3ED9FF60629F@gmail.com> References: Mime-Version: 1.0 (Mac OS X Mail 6.1 \(1498\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44110) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THeME-00026L-Se for emacs-orgmode@gnu.org; Fri, 28 Sep 2012 13:28:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1THeM7-0006bL-Ac for emacs-orgmode@gnu.org; Fri, 28 Sep 2012 13:28:10 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:56680) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THeM7-0006ah-0H for emacs-orgmode@gnu.org; Fri, 28 Sep 2012 13:28:03 -0400 Received: by wibhj13 with SMTP id hj13so74225wib.12 for ; Fri, 28 Sep 2012 10:28:02 -0700 (PDT) In-Reply-To: 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "emacs-orgmode@gnu.org" Hi Tom and Bastien, Thank you, your answers helped a lot. My fault that I used "export" not "exports" and that I didn't read the = section Specific header arguments in the Org manual. Thanks! Dmitri On Sep 28, 2012, at 7:14 PM, tsd@tsdye.com (Thomas S. Dye) wrote: > Dmitri Makarov writes: >=20 >> Hi all, >>=20 >> Has anyone successfully exported and evaluated src blocks with >> graphviz dot code? >> I'm trying to export this block >>=20 >> #+BEGIN_SRC dot :export both >> digraph G { >> A -> B >> } >> #+END_SRC >>=20 >> and I'm getting the error >>=20 >> org-babel-exp processing... >> executing Dot code block... >> file-name-extension: Wrong type argument: stringp, nil >>=20 >> How do you debug such problems? >>=20 >> Regards, >>=20 >> Dmitri >=20 > Aloha Dmitri, >=20 > Currently, you can debug such problems by looking at the source code = of > ob-dot.el. Or, by asking the list, as you did. >=20 > Your example is lacking a :file header argument. dot source code = blocks > produce graphics files and babel leaves it to the user to name the > output file. The file-name-extension function is looking for the = value > of the :file header argument, so that it can configure the call to = dot. > It is expecting to see a string, but gets nil because the header > argument is absent. >=20 > Also, the correct keyword is :exports, with a final "s". >=20 > You can find an example of dot code use here: > http://www.jstatsoft.org/v46/i03 >=20 > hth, > Tom > --=20 > Thomas S. Dye > http://www.tsdye.com