emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Schulte <schulte.eric@gmail.com>
To: Bas Bossink <bas.bossink@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-babel-dot on windows
Date: Sat, 03 Sep 2011 13:18:42 -0600	[thread overview]
Message-ID: <87ty8th1st.fsf@gmail.com> (raw)
In-Reply-To: CAG9aQRPT-huwYYkVDgcA_AnZqTqY9cYMXnhMzy-5zX+sHGn7+Q@mail.gmail.com

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 <bas.bossink@gmail.com> writes:

> Hi Eric,
>
> I'm using the following version of org-mode and Emacs:
>
> commit cae9f947beb5f529569a7eb33b460e670fb8ff97
> Author: Eric Schulte <schulte.eric@gmail.com>
> 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 "<f3>") 'org-clock-in)
> (global-set-key (kbd "S-<f3>") '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 <schulte.eric@gmail.com> 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 <bas.bossink@gmail.com> 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/

  reply	other threads:[~2011-09-03 19:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-31  0:52 org-babel-dot on windows Bas Bossink
2011-09-02 15:19 ` Eric Schulte
2011-09-02 19:51   ` Sebastien Vauban
2011-09-02 23:33   ` Bas Bossink
2011-09-03 19:18     ` Eric Schulte [this message]
2011-09-03 20:27     ` Sebastien Vauban

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ty8th1st.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=bas.bossink@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).