vmware-archive/halite

GET /: traceback when installed from pip

cameron opened this issue · 5 comments

I noticed there is no mold directory in the pip installation.

root@waterfront:/usr/local/lib/python2.7/dist-packages/halite# ./server_bottle.py -d -C -l debug -s gevent
20131221_051633.553938 Bottle: Running web application server 'paste' on 0.0.0.0:8080.
20131221_051633.554447 Bottle: CORS is disabled.
20131221_051633.554711 Bottle: TLS/SSL is disabled.
20131221_051633.555032 Bottle: Server options:
{}
20131221_051633.784977 Bottle: Running web application server 'paste' on 0.0.0.0:8080.
20131221_051633.785387 Bottle: CORS is disabled.
20131221_051633.785659 Bottle: TLS/SSL is disabled.
20131221_051633.785966 Bottle: Server options:
{}
Bottle v0.12-dev server starting up (using PasteServer())...
Listening on http://0.0.0.0:8080/
Hit Ctrl-C to quit.

serving on 0.0.0.0:8080 view at http://127.0.0.1:8080
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/halite/bottle.py", line 861, in _handle
    return route.call(**args)
  File "/usr/local/lib/python2.7/dist-packages/halite/bottle.py", line 1725, in wrapper
    rv = callback(*a, **ka)
  File "./server_bottle.py", line 60, in appGet
    save=False,))
  File "./server_bottle.py", line 443, in createStaticMain
    with open(mainMoldPath, "r") as fp:
IOError: [Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/halite/mold/main_bottle.html'

The pip install is meant to be run with precompiled JS etc. (as per salt) not development mode.
If you want to run in develop mode then use the github version

The pip install is meant to be run with precompiled JS etc. (as per salt)

Can you elaborate on what's necessary to do so?

You can install Halite using pip install -U halite.

Once Halite is installed please make sure you have https://gist.github.com/pass-by-value/8077450 in your salt master config file (more options are available and described by http://docs.saltstack.com/topics/tutorials/halite.html#configuring-halite-settings)

Restarting your salt master will start Halite automatically.

On Dec 21, 2013, at 5:50 PM, Cameron Boehmer notifications@github.com wrote:

The pip install is meant to be run with precompiled JS etc. (as per salt)

Can you elaborate on what's necessary to do so?


Reply to this email directly or view it on GitHub.

Any luck with this @CameronBoehmer ?

Yes, got it working :) Thanks for the help!