On Sunday, March 11, 2012 6:37:32 AM UTC-4, JohnW wrote:
>
> >>>>> Raphael Lorenzeto writes:
>
> > Long story short, I haven't found a way to access this Python interface, 
> my
> > intent is to produce a series of scripts to output HMTL5 files with my
> > reports on a regular basis (probably a cron-job). How can I do this? Is
> > there any way to communicate with Ledger without having to put it in REPL
> > mode and creating the interface myself?
>
> Make sure to pass --python to acprep when you build (you'll have to make
> distclean if you're just adding that flag now).  Then you use 'ledger 
> python
> foo.py' to run a Python script with the ability to 'import ledger' in that
> script.  See earlier postings in this mailing list for some examples of 
> what
> you can do then...
>
I've tried the following under Ubuntu 12.04:

$ git clone https://github.com/jwiegley/ledger.git 
$ cd ledger
$ git checkout v2.6.3
$ ./acprep --python
$ make
$ ./ledger python -f path/to/ledgerfile

The result is:

Error: Unrecognized command 'python'

I don't notice any errors during the build process.  Any idea what I'm 
doing wrong?

Chris

Reply via email to