On 02/27/2018 01:25 AM, Marcus D. Leech
wrote:
On 02/27/2018 12:15 AM, Kartik Patel
wrote:
Hello Marcus,
Just for starters, make sure you have v3.7.12 of GNU
Radio. In particular, your GR should contain the commit `3c989f9`. Also,
make sure you select Bokeh GUI instead of QT GUI in Generate
Options field in Options block. For Bokeh GUI
we have a different `main()` function template that has
necessary procedure to start the server and the stream.
Also, thank you very much for the suggestions about the
vector plotter. In addition to the vector plotter, the
Histogram plotter and BER curve are also in pipeline. I am
too busy with several deadlines and projects. But I will try
to incorporate the things as soon as possible (maybe in
summer). Sorry for the loong promise!
Let me know if you still have trouble working with the
module.
Thanks.
Thanks
for the very-prompt response. I know that you're probably
very busy.
I managed to get to the point of GRC generating the correct
startup code, with the "Bokeh GUI". My repo was up-to-date,
it's just that I hadn't actually built it. Too many
distractions...
But when I got to start now, I get:
Traceback (most recent call last):
File "./top_block.py", line 153, in <module>
main()
File "./top_block.py", line 136, in main
url = "" moz-do-not-send="true"
class="moz-txt-link-rfc2396E" href="http://localhost:">"http://localhost:"
+ port + "/bokehgui")
File "/usr/lib/python2.7/site-packages/bokeh/util/api.py",
line 190, in wrapper
return obj(*args, **kw)
File
"/usr/lib/python2.7/site-packages/bokeh/client/session.py",
line 161, in push_session
session.push(document)
File "/usr/lib/python2.7/site-packages/bokeh/util/api.py",
line 190, in wrapper
return obj(*args, **kw)
File
"/usr/lib/python2.7/site-packages/bokeh/client/session.py",
line 370, in push
raise IOError("Cannot push session document because we
failed to connect to the server (to start the server, try the
'bokeh serve' command)")
IOError: Cannot push session document because we failed to
connect to the server (to start the server, try the 'bokeh
serve' command)
I can get
past this error by setting a longer "time.sleep()" in the
generated "main" -- I guess it takes a bit for the server to
come up to a state where it can accept connections.
But now:
File "./top_block.py", line 140, in main
tb = top_block_cls(doc)
File "./top_block.py", line 65, in __init__
legend_list = legend_list)
File
"/usr/local/lib64/python2.7/site-packages/bokehgui/freq_sink_f.py",
line 63, in initialize
active_scroll = 'ywheel_zoom', )
File
"/usr/lib/python2.7/site-packages/bokeh/plotting/figure.py",
line 793, in figure
return Figure(**kwargs)
File
"/usr/lib/python2.7/site-packages/bokeh/plotting/figure.py",
line 149, in __init__
tool_objs, tool_map = _process_tools_arg(self, opts.tools)
File
"/usr/lib/python2.7/site-packages/bokeh/plotting/helpers.py",
line 530, in _process_tools_arg
tool_obj = _tool_from_string(tool)
File
"/usr/lib/python2.7/site-packages/bokeh/plotting/helpers.py",
line 467, in _tool_from_string
raise ValueError("unexpected tool name '%s', %s tools are
%s" % (name, text, nice_join(matches)))
ValueError: unexpected tool name 'resize', similar tools are
reset
|