I noticed something strange. I do this: $ PYTHONPATH=lib/ python >>> import ledger >>> j_file = r"/mnt/e/Data/Invest/data/ledger/U13342246.j" >>> journal = ledger.read_journal(j_file) >>> journal = ledger.read_journal(j_file) Traceback (most recent call last): File "<stdin>", line 1, in <module> RuntimeError: Assertion failed in "/home/sergiu/ledger-3.3.2/src/session.cc", line 183:std::size_t ledger::session_t::read_data(const string&): xact_count == journal->xacts.size() >>> I can only read the journal once.
On Tuesday, December 19, 2023 at 5:37:41 PM UTC-5 lipp f wrote: > sure. I also was thinking to document all steps required to install ledger > in a conda environment. > > > On Tuesday, December 19, 2023 at 5:16:00 PM UTC-5 Alexis wrote: > >> Yay! >> >> Glad to hear that you managed to get it working. >> Welcome to the quirky and wonderful world of Ledger Python! :) >> >> I've been using Ledger Python for several years time, happy to answer >> questions and take inspiration for future API development from your >> experience with it. >> >> To answer your question, yes, as long as ledger.so is compiled properly >> for the architecture and system you expect it to run on, you can place >> it were you like and tell Python about its location using PYTHONPATH >> or other means Python offers to load modules. >> >> If you have the time and would like to give back, some feedback on >> what would have helped you in terms of documentation or examples to >> get Python Ledger installed would be appreciated. >> >> >> Cheers >> Alexis >> > -- --- 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/06aa482c-4985-4d92-8b46-a5cb688cdb7dn%40googlegroups.com.
