From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Turoff Subject: Re: Problems with including ledger files in org-babel Date: Mon, 12 May 2014 12:32:37 -0400 Message-ID: References: <87a9anmf83.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0122971ccc0ccd04f9367ea7 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52932) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wjt9b-0002kR-9u for emacs-orgmode@gnu.org; Mon, 12 May 2014 12:32:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wjt9a-0003rB-BR for emacs-orgmode@gnu.org; Mon, 12 May 2014 12:32:39 -0400 Received: from mail-yh0-x231.google.com ([2607:f8b0:4002:c01::231]:44340) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wjt9a-0003qU-64 for emacs-orgmode@gnu.org; Mon, 12 May 2014 12:32:38 -0400 Received: by mail-yh0-f49.google.com with SMTP id c41so6481528yho.22 for ; Mon, 12 May 2014 09:32:37 -0700 (PDT) In-Reply-To: <87a9anmf83.fsf@pinto.chemeng.ucl.ac.uk> 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: Adam Turoff , emacs-orgmode@gnu.org --089e0122971ccc0ccd04f9367ea7 Content-Type: text/plain; charset=UTF-8 I've tried that, and that doesn't fix the problem. I'm testing it now on another system, and this actually works (ledger.lgr and the org file are in the same directory): #+begin_src ledger :cmdline -f .ledger.lgr print #+end_src It seems like there's some issue with ledger not loading properly, and the error appears to be eaten by org-babel. Is there any way to debug what org-babel is seeing here? Also, I prefer using hledger over ledger. Is that a customizable option in ob-ledger? Thanks, -- Adam On Mon, May 12, 2014 at 7:03 AM, Eric S Fraga wrote: > On Monday, 12 May 2014 at 03:27, Adam Turoff wrote: > > I'm trying to prepare a ledger report by including a ledger file with > babel: > > > > #+begin_src ledger :cmdline print > > !include ledger.lgr > > #+end_src > > I would suggest you try specifying the full path to the ledger file, > i.e. one starting with / (assuming you're using Linux, say). Babel > executes in another directory potentially and this could be the source > of the problem. > > -- > : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-949-g751506 > --089e0122971ccc0ccd04f9367ea7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I've tried that, and that doesn't fix the pro= blem.

I'm testing it now on another system, and this actually works (ledg= er.lgr and the org file are in the same directory):

#+begin_src ledger :cmdline -f .ledger.lgr=C2=A0print
#+end_src

It seems like there's some issue wit= h ledger not loading properly, and the error appears to be eaten by org-bab= el. =C2=A0Is there any way to debug what org-babel is seeing here?

Also, I prefer using hledger over ledger. Is that a customiz= able option in ob-ledger?

Thanks,

-- Adam


= On Mon, May 12, 2014 at 7:03 AM, Eric S Fraga <e.fraga@ucl.ac.uk> wrote:
On Monday, 12 May 2014 at 03:27, Adam Turo= ff wrote:
> I'm trying to prepare a ledger report by including a ledger file w= ith babel:
>
> #+begin_src ledger :cmdline print
> !include ledger.lgr
> #+end_src

I would suggest you try specifying the full path to the ledger file,<= br> i.e. one starting with / (assuming you're using Linux, say). =C2=A0Babe= l
executes in another directory potentially and this could be the source
of the problem.

--
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-949-g751506=

--089e0122971ccc0ccd04f9367ea7--