Hello guys!

I'm trying to execute this example described in ledger doc:

import ledger

if __name__ == '__main__':
    for xact in ledger.read_journal("sample.dat").xacts():
        for post in xact.posts():
            print("Transferring %s to/from %s" % (post.amount,
post.account))

But the script didn't find the module "ledger". I tried to install in
Ubuntu the package "python-ledger" but it still didn't work. Any ideas how
to find the module? I tried to find it in the PyPi repository but with no
luck. Even in pip3 I couldn't find it. I didn't find anything relevant in
the Ledger repo as well, only a demo in the "python" directory.

Thank you.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/CAHvMVPS7nrqROnZwVDwD%3D-pjvnR%2BSncgD8%2Bbxe849%3DdnV20hBg%40mail.gmail.com.

Reply via email to