ctn-archive / nengo_gui_2014

HTML5 graphical interface for Nengo -- now obsolete! Please use https://github.com/nengo/nengo_gui instead
Other
6 stars 0 forks source link

nengo_gui cannot be loaded when not using develop install #130

Closed jgosmann closed 9 years ago

jgosmann commented 9 years ago

When using python setup.py install instead of python setup.py develop loading the GUI (in the webbrowser) give the following error:

Traceback (most recent call last):
  File "/home/jgosmann/.pyenv/versions/2.7.6/lib/python2.7/site-packages/nengo_gui-0.1.0_dev-py2.7.egg/nengo_gui/swi.py", line 237, in handleRequest
    text=getattr(self,command)(*args[1:],**db)
  File "/home/jgosmann/.pyenv/versions/2.7.6/lib/python2.7/site-packages/nengo_gui-0.1.0_dev-py2.7.egg/nengo_gui/server.py", line 72, in swi
    html = pkgutil.get_data('nengo_gui', 'templates/index.html')
  File "/home/jgosmann/.pyenv/versions/2.7.6/lib/python2.7/pkgutil.py", line 591, in get_data
    return loader.get_data(resource_name)
  File "/home/jgosmann/.pyenv/versions/2.7.6/lib/python2.7/pkgutil.py", line 255, in get_data
    return open(pathname, "rb").read()
IOError: [Errno 2] No such file or directory: '/home/jgosmann/.pyenv/versions/2.7.6/lib/python2.7/site-packages/nengo_gui-0.1.0_dev-py2.7.egg/nengo_gui/templates/index.html'
jgosmann commented 9 years ago

Oops, reported this already a while ago in #125 :blush: