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'

On Sun, Dec 25, 2016 at 4:56 AM, Oon-Ee Ng <[email protected]> wrote:
>
> 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! [email protected] build: `rollup -c`
> npm ERR! Exit status 8
> npm ERR!
> npm ERR! Failed at the [email protected] 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.
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beancount/715458ed-1eef-4d08-af0e-2100cb0daf55%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAGQ70esiwikn%3DnnBQKtmTHWwjdoro4P8ytAWHxzUzhGuz6-QYQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to