Felipe Micaroni Lalli <[email protected]> writes:

> 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.

You may want to try the ubuntu package python3-ledger, since hopefully
you are using python3. Otherwise please let us know the versions of
ledger, python, and python-ledger. python-ledger is gone from current
debian, so I cannot test, but your script runs ok with python3-ledger
3.2.1-7+b2 on Debian.

-- 

--- 
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/878rx3ouny.fsf%40tethera.net.

Reply via email to