From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bas Bossink Subject: Re: org-babel-dot on windows Date: Sat, 3 Sep 2011 01:33:19 +0200 Message-ID: References: <87ty8votti.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0015174be1945570c504abfdc9a3 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39809) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzdEj-00055L-9e for emacs-orgmode@gnu.org; Fri, 02 Sep 2011 19:33:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QzdEg-0006p6-H5 for emacs-orgmode@gnu.org; Fri, 02 Sep 2011 19:33:25 -0400 Received: from mail-ey0-f171.google.com ([209.85.215.171]:60940) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzdEg-0006ot-8j for emacs-orgmode@gnu.org; Fri, 02 Sep 2011 19:33:22 -0400 Received: by eyg24 with SMTP id 24so3799097eyg.30 for ; Fri, 02 Sep 2011 16:33:20 -0700 (PDT) In-Reply-To: <87ty8votti.fsf@gmail.com> 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: Eric Schulte Cc: emacs-orgmode@gnu.org --0015174be1945570c504abfdc9a3 Content-Type: text/plain; charset=ISO-8859-1 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/ > --0015174be1945570c504abfdc9a3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Eric,

I'm using the following version of org-mode= and Emacs:

commit cae9f947beb5f529569a7eb33b= 460e670fb8ff97
Author: Eric Schulte <schulte.eric@gmail.com>
Date: =A0 Tue Aug 30 14:50:26 2011 -0600

Emacs:=A0GNU Emacs 23.3.1 (i386-mingw-nt6.1.7601)
=A0of 2011-03= -10 on 3249CTO

The error says:=A0Error: dot: can&#= 39;t open c\:/Users/bas/AppData/Local/Temp/babel-2652SMW/dot-2652b4h

running:=A0
dot -Tpng \Users\bas\AppData\Loca= l\Temp\babel-2652SMW\dot-2652b4h -o test.png=A0

in= a cmd window=A0works fine and generates the png I would expect.
=

About my configuration, I don't know if there is anythin= g weird in it. For reference I appended the org-mode part of my .emacs at t= he 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

<= div>

----
(require 'org-ins= tall)
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode= ))
(define-key global-map "\C-cl" 'org-store-link)<= /div>
(define-key global-map "\C-ca" 'org-agenda)
(global-set-key (kbd "<f3>") 'org-clock-in)
<= div>(global-set-key (kbd "S-<f3>") 'org-clock-out)
(global-set-key (kbd "C-c r") 'remember) =A0 =A0;; (1)<= /div>
(add-hook 'remember-mode-hook 'org-remember-apply-template) ;;= (2)
(setq org-remember-templates
=A0 =A0 =A0 '((?n= "* %U %?\n\n =A0%i\n =A0%a" "~/notes.org"))) =A0;; (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-hab= its-only-for-today t)
(setq org-export-html-inline-images t)
(setq org-ditaa-jar-p= ath "~/programs/dita/ditaa0_9.jar")
(add-hook 'org-= babel-after-execute-hook 'org-display-inline-images 'append)

(org-babel-do-load-languages
=A0(quote org-ba= bel-load-languages)
=A0(quote ((emacs-lisp . t)
=A0 =A0= =A0 =A0 =A0(dot . t)
=A0 =A0 =A0 =A0 =A0(ditaa . t)
= =A0 =A0 =A0 =A0 =A0(R . t)
=A0 =A0 =A0 =A0 =A0(python . t)
=A0 =A0 =A0 =A0 =A0(ruby . t= )
=A0 =A0 =A0 =A0 =A0(gnuplot . t)
=A0 =A0 =A0 =A0 =A0(= clojure . t)
=A0 =A0 =A0 =A0 =A0(sh . t)
=A0 =A0 =A0 = =A0 =A0(ledger . t)
=A0 =A0 =A0 =A0 =A0(org . t)
=A0 =A0 =A0 =A0 =A0(plantuml . t)
=A0 =A0 =A0 =A0 =A0(latex . t))= ))
---



On Fri, Sep 2, 2011 at 5:19 PM, Eric Schulte <= schulte.eric@gmail.com> wrote:
Hi Bas,

Unfortunately I don't have access to a windows machine to reproduce thi= s
problem.

Does the temporary file name mentioned in your error report exist, and
does it look to be a valid file name? =A0Org-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 <bas.bossink@gmail.= com> writes:

> Hi all,
>
> I'm trying to use org-babel-dot on windows but when I try to gener= ate 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 configu= ration
> 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.ed= u/~eschulte/

--0015174be1945570c504abfdc9a3--