emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ian Barton <lists@wilkesley.net>
To: emacs-orgmode@gnu.org
Subject: Re: ledger file in org mode hangs during code block eval
Date: Sun, 08 Apr 2012 16:05:26 +0100	[thread overview]
Message-ID: <4F81A936.1020001@wilkesley.net> (raw)
In-Reply-To: <4F810ED2.5050107@gmail.com>

On 08/04/12 05:06, Alexandros Bantis wrote:
> Hello all,
>
> Hoping someone might be help me diagnose this problem. I recently
> changed my linux distro from ubuntu to arch linux. I had an org-file
> that was running very well (over a year) up until the switch over. I
> have monthly entries separated into separate src ledger code blocks.
> When I do C-c C-c on a code block, it updates the results just fine. But
> when I try to update a report, it hangs for about 15 seconds and I get
> the following message:
>
> executing Ledger code block...
> executing Ledger source code block
> ledger -f /tmp/babel-13899vK/ledger-1389JnV -c -d "T&l<=3" bal
> Error: Please specify ledger file using -f or LEDGER_FILE environment
> variable.
> Code block evaluation complete.
>
> The code block that is being evaluated is only 127 lines in length.
>
> emacs version: GNU Emacs 23.4.1 (x86_64-unknown-linux-gnu, GTK+ Version
> 2.24.9) of 2012-02-01 on shirley.hoetzel.inf
>
> org-version: Org-mode version 7.8.08
>
> $ ledger -version
> Ledger 2.6.3, the command-line accounting tool
>
> The file that I'm using is an org-mode file encrypted with ccrypt, but
> when I create a duplicate unencrypted file, I get the same exact
> results. Thus, the problem doesn't seem to be related to ccrypt.
>
> When I paste the code block to a separate text file and run the command
> that was output from the *Messages* buffer. Thus, the problem doesn't
> seem to be related to ledger.
>
> Here's the relevant output from my installation log (pacman.log):
>
> [2012-04-06 18:38] Running 'pacman -U
> /tmp/yaourt-tmp-root/PKGDEST.6kK/emacs-org-mode-7.8.08-1-any.pkg.tar.xz'
> [2012-04-06 18:38] To enable this version of org-mode instead of the one
> shipped with emacs,
> [2012-04-06 18:38] add the line:
> [2012-04-06 18:38] (require 'org-install)
> [2012-04-06 18:38] to your .emacs file.
> [2012-04-06 18:38]
> [2012-04-06 18:38] NOTE: info documentation for emacs-org-mode goes now
> as 'orgmode' in /usr/share/info,
> [2012-04-06 18:38] It does NOT replace the 'org' info files shipped with
> emacs:
> [2012-04-06 18:38] $ info orgmode ## this version
> [2012-04-06 18:38] $ info org ## emacs' org version (currently 6.21)
> [2012-04-06 18:38] installed emacs-org-mode (7.8.08-1)
>
> $ whereis emacs
> emacs: /usr/bin/emacs /usr/lib/emacs /usr/share/emacs
> /usr/share/man/man1/emacs.1.gz
>
> relevant part from my .emacs file:
>
> ;; with a new installation
> (setq load-path (cons "/usr/share/emacs/site-lisp" load-path))
> (require 'org-install)
>

Have you got:
(org-babel-do-load-languages
  'org-babel-load-languages
  '((R . t)
    (ditaa . t)
    (dot . t)
    (emacs-lisp . t)
    (gnuplot . t)
    (haskell . nil)
    (latex . t)
    (ledger . t)
    (ocaml . nil)
    (octave . t)
    (python . t)
    (ruby . t)
    (screen . nil)
    (sh . t)
    (sql . nil)
    (sqlite . t)))

somewhere in your .emacs. FWIW Ledger and Babel work fine on Arch here.

Ian.

  reply	other threads:[~2012-04-08 15:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-08  4:06 ledger file in org mode hangs during code block eval Alexandros Bantis
2012-04-08 15:05 ` Ian Barton [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-04-08 10:32 Alexandros Bantis
2012-04-09 10:37 ` Bastien
2012-04-09 14:03   ` Alexandros Bantis
2012-04-09 15:24   ` Ian Barton
2012-04-09 15:27     ` Ian Barton

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=4F81A936.1020001@wilkesley.net \
    --to=lists@wilkesley.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=ian@manor-farm.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).