Renamed beancount-web to fava

216 views
Skip to first unread message

Dominik Aumayr

unread,
Feb 12, 2016, 4:32:06 AM2/12/16
to Beancount
To avoid any confusion with "bean-web" or beancount itself I decided to rename the "beancount-web" project to "fava" (see discussion here: https://github.com/aumayr/fava/issues/85).

The webserver can still be started with the "beancount-web"-command to avoid breaking existing installations, but the new "fava"-command can also be used instead. 

Contributions to fava are, as always, very welcome! :-)

- Dominik

Jacques Gagnon

unread,
Feb 12, 2016, 6:47:33 AM2/12/16
to bean...@googlegroups.com
Do you want me to create a pythonanywhere account for fava? So the demo site subdomain represent the apps name?

Or you create it and I can give you the scripts that run on mine.

Let me know!

Jacques Gagnon
GTalk/E-Mail: darth...@gmail.com
WLM (MSN): clou...@msn.com

--
You received this message because you are subscribed to the Google Groups "Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/2b8bc2f3-8781-42c8-b5f0-eb78393287b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dominik Aumayr

unread,
Feb 12, 2016, 7:11:04 AM2/12/16
to Beancount
I just created a pythonanywhere account for fava. Would be awesome if you could share the scripts that run on your instance!

Jacques Gagnon

unread,
Feb 12, 2016, 7:25:22 AM2/12/16
to bean...@googlegroups.com
See scripts in attachment

Just clone both beancount and fava repo, change the home dir reference in update.sh
Then run update.sh to install both apps.

In the web section replace the wsgi config with mine.
Finally add update.sh to be run as a daily task.

I think I haven't touch server since december, so the daily update work pretty well.

Jacques Gagnon
GTalk/E-Mail: darth...@gmail.com
WLM (MSN): clou...@msn.com

darthcloud_pythonanywhere_com_wsgi.py
update.sh

Dominik Aumayr

unread,
Feb 12, 2016, 7:56:07 AM2/12/16
to bean...@googlegroups.com
Works perfect, thanks!

http://fava.pythonanywhere.com/
> To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAPgTVrZaUo_aeVLF45JNcRNkrWVCDg6FASNZf1FO%3Dy1nrEJfeg%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
> <darthcloud_pythonanywhere_com_wsgi.py><update.sh>

Jacques Gagnon

unread,
Feb 12, 2016, 8:03:38 AM2/12/16
to bean...@googlegroups.com
I was using https://bitbucket.org/gward/vcprompt to get revision info since it's support multi VCS btw.

Jacques Gagnon
GTalk/E-Mail: darth...@gmail.com
WLM (MSN): clou...@msn.com

Dominik Aumayr

unread,
Feb 12, 2016, 8:17:10 AM2/12/16
to bean...@googlegroups.com
Got it (and fixed it), thanks! :-)
> To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAPgTVrZvvghV_Zenm6seC7ztVXjQOXY1BSMLZrVN1tfaHOP_Dw%40mail.gmail.com.

Alex Johnstone

unread,
Feb 12, 2016, 2:48:38 PM2/12/16
to Beancount
Just found fava... wow this is great work! thank you. The demo is really useful.

I started using beancount but then switched to ledger...although I don't remember why and now I want to use beancount so I can use fava!

Oon-Ee Ng

unread,
Dec 24, 2016, 3:56:59 PM12/24/16
to Beancount

I'm trying to get this working with the dev version of fava, but can't run `make build-js` with this error:-

        for ( var item of map.entries() ) {
                       ^^
SyntaxError: Unexpected identifier
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/home/ngoonee/fava/fava/static/node_modules/rollup/bin/rollup:5:14)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
npm ERR! Linux 3.13.0-100-generic
npm ERR! argv "node" "/usr/bin/npm" "run" "build"
npm ERR! node v0.10.37
npm ERR! npm  v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! fa...@0.0.0 build: `rollup -c`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the fa...@0.0.0 build script 'rollup -c'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the fava package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     rollup -c
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs fava
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls fava
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /home/ngoonee/fava/fava/static/npm-debug.log
make: *** [build-js] Error 1

I notice favadev.pythonanywhere.com is also not public (yet?), so probably this is already known? My primary interest is actually using the new transaction input form, really.

Oon-Ee Ng

unread,
Dec 24, 2016, 5:01:33 PM12/24/16
to bean...@googlegroups.com
Got past that error by using advice from
https://help.pythonanywhere.com/pages/Node/ (used nvm to update
node/npm and added an alias nodejs='node' in .bashrc)

Now my webapp fails with this error, though the same beancount file
works fine on my own machine. Any ideas?

2016-12-24 21:03:58,195 :[2016-12-24 21:03:58,194] ERROR in app:
Exception on / [GET]
2016-12-24 21:03:58,195 :Traceback (most recent call last):
2016-12-24 21:03:58,195 : File
"/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1988, in
wsgi_app
2016-12-24 21:03:58,195 : response = self.full_dispatch_request()
2016-12-24 21:03:58,195 : File
"/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1641, in
full_dispatch_request
2016-12-24 21:03:58,195 : rv = self.handle_user_exception(e)
2016-12-24 21:03:58,195 : File
"/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1544, in
handle_user_exception
2016-12-24 21:03:58,195 : reraise(exc_type, exc_value, tb)
2016-12-24 21:03:58,196 : File
"/usr/local/lib/python3.5/dist-packages/flask/_compat.py", line 33, in
reraise
2016-12-24 21:03:58,196 : raise value
2016-12-24 21:03:58,196 : File
"/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1637, in
full_dispatch_request
2016-12-24 21:03:58,196 : rv = self.preprocess_request()
2016-12-24 21:03:58,196 : File
"/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1831, in
preprocess_request
2016-12-24 21:03:58,196 : func(request.endpoint, request.view_args)
2016-12-24 21:03:58,196 : File
"/home/ngoonee/.local/lib/python3.5/site-packages/beancount_fava-1.2.dev0-py3.5.egg/fava/application.py",
line 182, in _pull_beancount_file
2016-12-24 21:03:58,196 : g.beancount_file_slug = app.config['FILE_SLUGS'][0]
2016-12-24 21:03:58,196 :KeyError: 'FILE_SLUGS'
2016-12-24 21:03:58,194 :Exception on / [GET]
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line
1988, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line
1641, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line
1544, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.5/dist-packages/flask/_compat.py", line
33, in reraise
raise value
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line
1637, in full_dispatch_request
rv = self.preprocess_request()
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line
1831, in preprocess_request
func(request.endpoint, request.view_args)
File "/home/ngoonee/.local/lib/python3.5/site-packages/beancount_fava-1.2.dev0-py3.5.egg/fava/application.py",
line 182, in _pull_beancount_file
g.beancount_file_slug = app.config['FILE_SLUGS'][0]
KeyError: 'FILE_SLUGS'
> --
> You received this message because you are subscribed to the Google Groups
> "Beancount" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beancount+...@googlegroups.com.
> To post to this group, send email to bean...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beancount/715458ed-1eef-4d08-af0e-2100cb0daf55%40googlegroups.com.

Oon-Ee Ng

unread,
Dec 26, 2016, 12:33:52 PM12/26/16
to bean...@googlegroups.com
Seems the favadev wsgi.py isn't up to date. Using the one from
contrib/pythonanywhere/fava worked!
Reply all
Reply to author
Forward
0 new messages