Coder Social home page Coder Social logo

Comments (7)

kkpatel1 avatar kkpatel1 commented on May 21, 2024

Thanks.
I just pushed a commit that solves the issue. Probably when I tried to re-install the module for testing, the start-server.sh never got deleted and hence, all of my examples still worked!

Let me know if the updates work.

from gr-bokehgui.

777arc avatar 777arc commented on May 21, 2024

Is node.js required to use these blocks? I can start the flowgraph, but when I go to http://localhost:5006/bokehgui I get the error (in my console): RuntimeError: node.js is needed to allow compilation of custom models

EDIT- I installed node.js just to see if it fixed it, and now I get the following error when running any of the examples and then going to http://localhost:5006/bokehgui

2017-09-03 00:15:30,662 Uncaught exception GET /bokehgui (::1)
HTTPServerRequest(protocol='http', host='localhost:5006', method='GET', uri='/bokehgui', version='HTTP/1.1', remote_ip='::1', headers={'Accept-Language': 'en-US,en;q=0.8', 'Accept-Encoding': 'gzip, deflate, sdch, br', 'Host': 'localhost:5006', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8', 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36', 'Connection': 'keep-alive', 'Cache-Control': 'max-age=0', 'Upgrade-Insecure-Requests': '1'})
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1511, in _execute
result = yield result
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 1055, in run
value = future.result()
File "/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py", line 238, in result
raise_exc_info(self._exc_info)
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 1069, in run
yielded = self.gen.send(value)
File "/usr/local/lib/python2.7/dist-packages/bokeh/server/views/doc_handler.py", line 26, in get
template_variables=session.document.template_variables)
File "/usr/local/lib/python2.7/dist-packages/bokeh/embed.py", line 871, in server_html_page_for_session
return _html_page_for_render_items(bundle, dict(), render_items, title, template=template, template_variables=template_variables)
File "/usr/local/lib/python2.7/dist-packages/bokeh/embed.py", line 706, in _html_page_for_render_items
script = bundle_all_models()
File "/usr/local/lib/python2.7/dist-packages/bokeh/util/compiler.py", line 417, in bundle_all_models
return bundle_models(Model.model_class_reverse_map.values()) or ""
File "/usr/local/lib/python2.7/dist-packages/bokeh/util/compiler.py", line 332, in bundle_models
compiled = nodejs_compile(impl.code, lang=impl.lang, file=impl.file)
File "/usr/local/lib/python2.7/dist-packages/bokeh/util/compiler.py", line 177, in nodejs_compile
output = _run_nodejs([compilejs_script], dict(code=code, lang=lang, file=file))
File "/usr/local/lib/python2.7/dist-packages/bokeh/util/compiler.py", line 156, in _run_nodejs
return _run(_nodejs_path(), argv, input)
File "/usr/local/lib/python2.7/dist-packages/bokeh/util/compiler.py", line 151, in _run
raise RuntimeError(errout)
RuntimeError: /usr/local/lib/python2.7/dist-packages/bokeh/server/static/js/compiler.js:44
let { line, character: column } = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start);
^

SyntaxError: Unexpected token {
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)
at startup (node.js:136:18)
at node.js:966:3

2017-09-03 00:15:30,662 500 GET /bokehgui (::1) 88.01ms
^C
Interrupted, shutting down
Exiting the simulation. Stopping Bokeh Server

from gr-bokehgui.

kkpatel1 avatar kkpatel1 commented on May 21, 2024

Yes. That is because the Waterfall plot in this module is a "custom models" (not provided by Bokeh). Thanks for the reminder. I will add it in CMake and README.

I guess I will create a virtual machine to re-setup the module.

from gr-bokehgui.

777arc avatar 777arc commented on May 21, 2024

I just updated the previous comment with my error after installing node.js.

from gr-bokehgui.

kkpatel1 avatar kkpatel1 commented on May 21, 2024

@777arc Please use NodeJS v6.6 or above. The default Ubuntu package manager installs v4.8.

Updated the details on README. Thank you.

from gr-bokehgui.

MattEttus avatar MattEttus commented on May 21, 2024

It looks like start-server.sh is still missing. Are you sure that commit got pushed?

from gr-bokehgui.

kkpatel1 avatar kkpatel1 commented on May 21, 2024

@MattEttus It's fine without that. I changed the function itself at that time.

For now, I am closing this issue. Kindly re-check and if you find the issue still there, I will re-open the issue.

Thanks.

from gr-bokehgui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.