From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: org-babel-dot on windows Date: Sat, 03 Sep 2011 13:18:42 -0600 Message-ID: <87ty8th1st.fsf@gmail.com> References: <87ty8votti.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:33576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzvkD-0001k5-Ey for emacs-orgmode@gnu.org; Sat, 03 Sep 2011 15:19:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QzvkC-0006uz-10 for emacs-orgmode@gnu.org; Sat, 03 Sep 2011 15:19:09 -0400 Received: from mail-pz0-f44.google.com ([209.85.210.44]:49458) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzvkB-0006ug-RZ for emacs-orgmode@gnu.org; Sat, 03 Sep 2011 15:19:07 -0400 Received: by pzk36 with SMTP id 36so6906429pzk.17 for ; Sat, 03 Sep 2011 12:19:06 -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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bas Bossink Cc: emacs-orgmode@gnu.org I would suggest updating to the most recent version of Org-mode and see if that fixes your issue, as we have confirmed that others are able to evaluate dot code blocks on Windows machines. Best -- Eric Bas Bossink writes: > Hi Eric, > > I'm using the following version of org-mode and Emacs: > > commit cae9f947beb5f529569a7eb33b460e670fb8ff97 > Author: Eric Schulte > Date: Tue Aug 30 14:50:26 2011 -0600 > > Emacs: GNU Emacs 23.3.1 (i386-mingw-nt6.1.7601) > of 2011-03-10 on 3249CTO > > The error says: Error: dot: can't open > c\:/Users/bas/AppData/Local/Temp/babel-2652SMW/dot-2652b4h > > running: > dot -Tpng \Users\bas\AppData\Local\Temp\babel-2652SMW\dot-2652b4h -o > test.png > > in a cmd window works fine and generates the png I would expect. > > About my configuration, I don't know if there is anything weird in it. For > reference I appended the org-mode part of my .emacs at the bottom of this > message. > > Do you know anybody who has a Windows box that can reproduce/investigate > this problem? > > Thanks for your quick response. > > Regards, > > Bas Bossink > > > > ---- > (require 'org-install) > (add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) > (define-key global-map "\C-cl" 'org-store-link) > (define-key global-map "\C-ca" 'org-agenda) > (global-set-key (kbd "") 'org-clock-in) > (global-set-key (kbd "S-") 'org-clock-out) > (global-set-key (kbd "C-c r") 'remember) ;; (1) > (add-hook 'remember-mode-hook 'org-remember-apply-template) ;; (2) > (setq org-remember-templates > '((?n "* %U %?\n\n %i\n %a" "~/notes.org"))) ;; (3) > (setq remember-annotation-functions '(org-remember-annotation)) ;; (4) > (setq remember-handler-functions '(org-remember-handler)) ;; (5) > (setq org-log-done t) > (setq org-habit-show-habits-only-for-today t) > (setq org-export-html-inline-images t) > (setq org-ditaa-jar-path "~/programs/dita/ditaa0_9.jar") > (add-hook 'org-babel-after-execute-hook 'org-display-inline-images 'append) > > (org-babel-do-load-languages > (quote org-babel-load-languages) > (quote ((emacs-lisp . t) > (dot . t) > (ditaa . t) > (R . t) > (python . t) > (ruby . t) > (gnuplot . t) > (clojure . t) > (sh . t) > (ledger . t) > (org . t) > (plantuml . t) > (latex . t)))) > --- > > > > On Fri, Sep 2, 2011 at 5:19 PM, Eric Schulte wrote: > >> Hi Bas, >> >> Unfortunately I don't have access to a windows machine to reproduce this >> problem. >> >> Does the temporary file name mentioned in your error report exist, and >> does it look to be a valid file name? Org-mode uses built-in Emacs >> functions for creating temporary files, and these functions are supposed >> to work across Windows/*nix systems, so I'm not sure what the problem >> could be. >> >> Are you using the latest version of Org-mode, and do you have anything >> weird in your configuration which could cause this problem? >> >> Sorry I can't be of more help, maybe another windows user on the list >> can check that dot works for them. >> >> Best -- Eric >> >> Bas Bossink writes: >> >> > Hi all, >> > >> > I'm trying to use org-babel-dot on windows but when I try to generate an >> > image with C-c C-c the following errors apear: >> > >> > Error: dot: can't open >> > c\:/Users/bas/AppData/Local/Temp/babel-8036JGY/dot-8036HHn >> > Error: dot: can't open Dropbox/backward.png >> > >> > It seems that the file path is not handled correctly. Have there been any >> > error reports about this? Or can this be solved be changing my >> configuration >> > somehow. >> > >> > - System : Windows 7 64 bit >> > - dot executable is in the $PATH >> > - org-mode version git commit cae9f947beb5f529569a7eb33b460e670fb8ff97 >> (this >> > behavior also exists in 7.7) >> > - Emacs 23.2.1 >> > >> > Any light on this issue would be greatly apreciated. >> > >> > Regards, >> > >> > Bas Bossink >> >> -- >> Eric Schulte >> http://cs.unm.edu/~eschulte/ >> -- Eric Schulte http://cs.unm.edu/~eschulte/