Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Adam Gibbins
    @adamgibbins
    [It would surprise me if it didn't still work? Given GnuCash is just sqlite I can't imagine its changed in forever
    Zburatorul
    @Zburatorul
    It turned out to do with the SQL schema changing and the most recent piecash (python lib for gnucash data) not supporting it. That was an easy fix.
    Then, after some more fixes to gnucash-to-beancount itself it finally produced a beancount file.
    However, bean-check complains about syntax error, references to inactive accounts, and more.
    Ethan Glasser-Camp
    @glasserc
    Hi, I just updated my operating system and I got a new version of Fava. The "balance sheet" now correctly shows sums at cost, at market value, or converted to a currency! This is fantastic, a feature I've wanted for a long time. I wanted to say thank you to everyone who was involved in making this or in the Fava project more generally
    Minghao Liu
    @molikto
    hello, Windows installation complains fatal: not a git repository (or any of the parent directories): .git
    Jakob Schnitzer
    @yagebu
    @molikto: how are you installing Fava?
    If you want to install from source, you need to clone the git repository.
    Minghao Liu
    @molikto
    I ended up using WSL
    ded0rgMypass
    @ded0rgMypass
    Hello anybody
    I have upgraded my manjaro (ach) system adn fava stopped working. Tried reinstall.
    Still no luck. Message below:Traceback (most recent call last):
    File "/usr/bin/fava", line 6, in <module>
    from fava.cli import main
    File "/usr/lib/python3.7/site-packages/fava/cli.py", line 10, in <module>
    from fava.application import app
    File "/usr/lib/python3.7/site-packages/fava/application.py", line 42, in <module>
    from fava.core import FavaLedger
    File "/usr/lib/python3.7/site-packages/fava/core/init.py", line 36, in <module>
    from fava.core.ingest import IngestModule
    File "/usr/lib/python3.7/site-packages/fava/core/ingest.py", line 11, in <module>
    from beancount.ingest import cache, identify, extract
    File "/usr/lib/python3.7/site-packages/beancount/ingest/init.py", line 13, in <module>
    import pytest
    File "/usr/lib/python3.7/site-packages/pytest.py", line 7, in <module>
    from _pytest.assertion import register_assert_rewrite
    File "/usr/lib/python3.7/site-packages/_pytest/assertion/init.py", line 12, in <module>
    from _pytest.assertion import rewrite
    File "/usr/lib/python3.7/site-packages/_pytest/assertion/rewrite.py", line 23, in <module>
    from _pytest.assertion import util
    File "/usr/lib/python3.7/site-packages/_pytest/assertion/util.py", line 10, in <module>
    import _pytest._code
    File "/usr/lib/python3.7/site-packages/_pytest/_code/init.py", line 6, in <module>
    from .code import Code # noqa
    File "/usr/lib/python3.7/site-packages/_pytest/_code/code.py", line 388, in <module>
    @attr.s(repr=False)
    AttributeError: module 'attr' has no attribute 's'
    Jakob Schnitzer
    @yagebu
    Arch recently upgraded Python to version 3.8, it looks like you need to update some more packages (or rebuild them if they're from the AUR and didn't get a version bump yet)
    Jackie
    @lljakll
    beancount: how do i add a posting date to a transaction? what am i missing in the docs?
    Adam Gibbins
    @adamgibbins
    There is only one type of date in beancount, posting or transaction, your choice
    additional dates would need to be added as metadata
    Seem to recall theres a plugin that does something with additional metadata, but can't find it
    Jackie
    @lljakll
    thats what i figured. I have been adding its as metada since I count the transaction as completed when it takes place. I just wanted to be able to track how long it takes certain transactions to clear. Thanks for the response
    Wesley Tian
    @wesleytian
    Hi all, I'm new to beancount, and I was kind of confused about how the beancount ingest/import thing works. Do I have to manually download CSV files for all of my transactions from every bank/credit card account I have and then run ingest/import on it?
    Do I have to write my own script to help me log into each of my bank/credit card accounts and download the transactions in CSV form?
    Jakob Schnitzer
    @yagebu
    Yes, Fava doesn't ship with any mechanism to fetch your CSV files.
    There's other projects like finance-dl though, that could handle that for you
    Zburatorul
    @Zburatorul
    @wesleytian, I highly recommend finance-dl and beancount-import. These are two separate python packages that work well together and allow you to download and easily import. Give finance-dl a try. Many FIs allow users to download transactions through a protocol called OFX, which finance-dl supports.
    Chary314
    @Chary314

    Fava design

    Hi, I am a amateur Python programmer. I just wonder whether there are any design documents for Fava?
    If not, what is the best way to understand its design.
    I am not interested that much in GUI design, but in the way Fava interacts with beancount. Which hooks into beancount are used by Fava and how
    Jakob Schnitzer
    @yagebu
    @Chary314: There's no design document for Fava. To see which parts of Beancount we use, it's probably easiest to grep for something like 'from beancount' to see all imports of modules from Beancount. Most of the logic to interact with a Beancount ledger is in fava.core and the FavaLedger class (which is the main thing that's exposed to all the templates).
    Red S
    @redstreet
    Hi, what language are the templates/*.html files written in?
    Red S
    @redstreet
    Asking so I can understand these enough to write fava extensions. I'm trying to receive values from python code, and pass them to querytable.querytable()
    Red S
    @redstreet
    Also: is there a reason querytable does not support a "totals" row?
    One more question: is it possible to include a "download csv" for a custom table that I create?
    Red S
    @redstreet

    I see it's flask/jinja2. Is there a good reference or tutorial? I can hack my way around fine, but it'd be great to have a good mental model of how templating works in general, and how python/jinja2 work.

    for eg, I found len(x) doesn't work but x|len does. why? thanks!

    Jakob Schnitzer
    @yagebu
    The official documentation for these libraries is very good.
    @redstreet: "querytable" is for displaying a query result, which is basically just a table (without any totals). If you want to render something else, just directly render a HTML table.
    Red S
    @redstreet
    got it, thanks @yagebu

    See my first fava extension here (screenshot included): https://github.com/redstreet/fava_tax_loss_harvester

    As I suspected, the fava codebase has been clean, well designed and written, and easy to work with. Thanks to you and all the other authors.

    Red S
    @redstreet
    Is it possible to include a "download csv" for a custom table that I create?
    Jakob Schnitzer
    @yagebu
    @redstreet: Thanks for the kind words :) There's a download_links macro in _query_table.htmlthat renders these links.
    Red S
    @redstreet
    download_links seems to need a query if I'm reading this right. I'm wanting to export a table whose values were custom built (not from a query). Would this still work?
    Jakob Schnitzer
    @yagebu
    No, that wouldn't work then
    Red S
    @redstreet
    Any pointers on what I need to do to export such a table to csv? Write the code for it? In python? Flask/jinja? Search for a library that can do it? I'm a bit lost here, but am happy to dig into it with some pointers.
    Jakob Schnitzer
    @yagebu
    Writing to a CSV file is not really hard in Python - https://github.com/beancount/fava/blob/master/fava/util/excel.py#L44
    Depending on what your "table" looks like that function might also work for you. Shipping that as a link with a data URL in the template is probably the easiest way to get that CSV to the user then
    Red S
    @redstreet

    Cool, thanks for the pointer.

    Sorry i wasn't clear earlier: I'm very familiar and comfortable with python, but I have no experience with web related anything. And it's that part of it my questions are about. I should gain the experience soon, so please bear with my very basic questions meanwhile :)

    Let me take a look at you're saying with shipping that function as a link.

    Red S
    @redstreet

    What's the best way to display a value of type Decimal in a table, rounded up/down?

    eg: Decimal(23.92) should display simply as '24' in the table.

    I tried inserting Decimal(23.92).to_integral(), but that ended up displaying as '24.00'

    How can I get rid of the '.00'? I'd rather not do int() since I'd prefer to respect the locale settings (like commas) for everything else
    Red S
    @redstreet
    looks like fava/core/number.py calls Precision in beancount.core.display_context, but I can't see how to override or let it know the number of decimals displayed
    matrixbot
    @matrixbot
    antilibrary Hi there
    antilibrary does beancount still doesn't have a forecasting feature and report?
    antilibrary I'm looking to move from pocketsmith to a different tool and I've been reading all docs for beancount. The only mentions I've found about a forecast feature are from 2014
    Jakob Schnitzer
    @yagebu
    @redstreet: For rounding a Decimal, there's Decimal.quantize. fava.core.number doesn't allow specifying the precision manually right now but only those precisions obtained from the display context of a currency.
    Jakob Schnitzer
    @yagebu
    antilibrary: There's a basic example forecast plugin that is shipped with Beancount (beancount.plugins.forecast).
    matrixbot
    @matrixbot
    antilibrary yeah I checked that
    antilibrary hopefully the feature will be improved in time