Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can I work with another main.bean files #19

Open
xiaoyuesansui opened this issue Jan 17, 2023 · 1 comment
Open

how can I work with another main.bean files #19

xiaoyuesansui opened this issue Jan 17, 2023 · 1 comment

Comments

@xiaoyuesansui
Copy link

Hello developers

I am working well with yegle/fava-docker with A.main.bean untill I am trying to open another main.bean ,lets call B.main.bean

it seems yegle/fava-docker dont support such feathers

I also tried deploy two another docker image with different ports ,-p 5001:5000, but things wont fly either

it returns

Exception on /favicon.ico [GET]

Traceback (most recent call last):

File "/app/lib/python3.9/site-packages/flask/app.py", line 2525, in wsgi_app

response = self.full_dispatch_request()

File "/app/lib/python3.9/site-packages/flask/app.py", line 1822, in full_dispatch_request

rv = self.handle_user_exception(e)

File "/app/lib/python3.9/site-packages/flask/app.py", line 1818, in full_dispatch_request

rv = self.preprocess_request()

File "/app/lib/python3.9/site-packages/flask/app.py", line 2304, in preprocess_request

url_func(request.endpoint, request.view_args)

File "/app/lib/python3.9/site-packages/fava/application.py", line 266, in _pull_beancount_file

_load_file()

File "/app/lib/python3.9/site-packages/fava/application.py", line 132, in _load_file

ledgers = [

File "/app/lib/python3.9/site-packages/fava/application.py", line 133, in

FavaLedger(filepath) for filepath in app.config["BEANCOUNT_FILES"]

File "/app/lib/python3.9/site-packages/fava/core/init.py", line 320, in init

self.load_file()

File "/app/lib/python3.9/site-packages/fava/core/init.py", line 327, in load_file

self.all_entries, self.errors, self.options = _load(

File "/app/lib/python3.9/site-packages/beancount/loader.py", line 501, in _load

entries, parse_errors, options_map = _parse_recursive(

File "/app/lib/python3.9/site-packages/beancount/loader.py", line 371, in _parse_recursive

assert path.isabs(source)

AssertionError

@lutzky
Copy link
Contributor

lutzky commented Mar 21, 2023

Works fine for me. Based on the error you're getting, the assertion path.isabs failing, you're probably not specifying an absolute path under BEANCOUNT_FILE, e.g. you're doing BEANCOUNT_FILE=A.main.bean instead of BEANCOUNT_FILE=/bean/A.main.bean like the example shows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants