holdenmatt / Backtester.io

Backtest investment allocations against historical data.
3 stars 1 forks source link

creating build/libs.js #1

Closed cjroebuck closed 12 years ago

cjroebuck commented 12 years ago

Hey dude,

How do I generate the build/libs.js file?

Traceback (most recent call last):
File "/Users/cjroebuck/Dev/venv/lib/python2.7/site-packages/flask/app.py", line 1518, in __call__
return self.wsgi_app(environ, start_response)
File "/Users/cjroebuck/Dev/venv/lib/python2.7/site-packages/flask/app.py", line 1506, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/Users/cjroebuck/Dev/venv/lib/python2.7/site-packages/flask/app.py", line 1504, in wsgi_app
response = self.full_dispatch_request()
File "/Users/cjroebuck/Dev/venv/lib/python2.7/site-packages/flask/app.py", line 1264, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Users/cjroebuck/Dev/venv/lib/python2.7/site-packages/flask/app.py", line 1262, in full_dispatch_request
rv = self.dispatch_request()
File "/Users/cjroebuck/Dev/venv/lib/python2.7/site-packages/flask/app.py", line 1248, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/Users/cjroebuck/Dev/Backtester.io/server/views.py", line 11, in home
return render_template('base.html')
File "/Users/cjroebuck/Dev/venv/lib/python2.7/site-packages/flask/templating.py", line 123, in render_template
context, ctx.app)
File "/Users/cjroebuck/Dev/venv/lib/python2.7/site-packages/flask/templating.py", line 107, in _render
rv = template.render(context)
File "/Users/cjroebuck/Dev/venv/lib/python2.7/site-packages/jinja2/environment.py", line 894, in render
return self.environment.handle_exception(exc_info, True)
File "/Users/cjroebuck/Dev/Backtester.io/templates/base.html", line 83, in top-level template code
{% assets "libs.js" %}
File "/Users/cjroebuck/Dev/venv/lib/python2.7/site-packages/webassets/ext/jinja2.py", line 102, in _render_assets
'filters': filter}).urls(env=env)
File "/Users/cjroebuck/Dev/venv/lib/python2.7/site-packages/webassets/bundle.py", line 448, in urls
urls.extend(bundle._urls(env, extra_filters, *args, **kwargs))
File "/Users/cjroebuck/Dev/venv/lib/python2.7/site-packages/webassets/bundle.py", line 421, in _urls
*args, **kwargs)
File "/Users/cjroebuck/Dev/venv/lib/python2.7/site-packages/webassets/bundle.py", line 350, in _build
hunk.save(env.abspath(self.output))
File "/Users/cjroebuck/Dev/venv/lib/python2.7/site-packages/webassets/merge.py", line 96, in save
f = open(filename, 'wb')
IOError: [Errno 2] No such file or directory: '/Users/cjroebuck/Dev/Backtester.io/static/build/libs.js'
cjroebuck commented 12 years ago

Manually created a build folder inside the static folder, now it works. Thanks!