discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Device Controller for RFNOC 4.0 UHD-4.3.0.0-rc2 & gnuradio maint-3.8.0.0


From: Taylor Clark
Subject: Device Controller for RFNOC 4.0 UHD-4.3.0.0-rc2 & gnuradio maint-3.8.0.0 does not parse into gnuradio correctly
Date: Sun, 15 Jan 2023 23:54:32 -0500

Hey all,
I have tried installing UHD-4.3.0.0-rc2, gnuradio maint-3.8.0.0, gr-ettus uhd4.0/gnuradio maint to enable rfnoc through gnuradio to target the NI X410.

However, gnuradio has been acting funcky when import RFNOC Graph (Device).

I receive the follow :

Traceback (most recent call last):
  File "/usr/local/lib/python3/dist-packages/gnuradio/grc/core/blocks/_templates.py", line 75, in render
    return template.render(**namespace)
  File "/usr/lib/python3/dist-packages/mako/template.py", line 476, in render
    return runtime._render(self, self.callable_, args, data)
  File "/usr/lib/python3/dist-packages/mako/runtime.py", line 878, in _render
    _render_context(
  File "/usr/lib/python3/dist-packages/mako/runtime.py", line 920, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/usr/lib/python3/dist-packages/mako/runtime.py", line 947, in _exec_template
    callable_(context, *args, **kwargs)
  File "memory:0x7f9e891a8cd0", line 43, in render_body
  File "/usr/lib/python3.8/ast.py", line 59, in literal_eval
    node_or_string = parse(node_or_string, mode='eval')
  File "/usr/lib/python3.8/ast.py", line 47, in parse
    return compile(source, filename, mode, flags,
  File "<unknown>", line 0
   
    ^
SyntaxError: unexpected EOF while parsing

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3/dist-packages/gnuradio/grc/gui/Application.py", line 410, in _handle_action
    flow_graph_update()
  File "/usr/local/lib/python3/dist-packages/gnuradio/grc/gui/Application.py", line 122, in flow_graph_update
    fg.update()
  File "/usr/local/lib/python3/dist-packages/gnuradio/grc/gui/canvas/flowgraph.py", line 202, in update
    self.rewrite()
  File "/usr/local/lib/python3/dist-packages/gnuradio/grc/core/FlowGraph.py", line 237, in rewrite
    self.renew_namespace()
  File "/usr/local/lib/python3/dist-packages/gnuradio/grc/core/FlowGraph.py", line 285, in renew_namespace
    for variable_block in self.get_variables():
  File "/usr/local/lib/python3/dist-packages/gnuradio/grc/core/FlowGraph.py", line 84, in get_variables
    return expr_utils.sort_objects(variables, attrgetter('name'), methodcaller('get_var_make'))
  File "/usr/local/lib/python3/dist-packages/gnuradio/grc/core/utils/expr_utils.py", line 74, in sort_objects
    id2expr = {get_id(obj): get_expr(obj) for obj in objects}
  File "/usr/local/lib/python3/dist-packages/gnuradio/grc/core/utils/expr_utils.py", line 74, in <dictcomp>
    id2expr = {get_id(obj): get_expr(obj) for obj in objects}
  File "/usr/local/lib/python3/dist-packages/gnuradio/grc/core/blocks/block.py", line 393, in get_var_make
    return self.templates.render('var_make')
  File "/usr/local/lib/python3/dist-packages/gnuradio/grc/core/blocks/_templates.py", line 77, in render
    raise TemplateError(error, text)
gnuradio.grc.core.errors.TemplateError: (SyntaxError('unexpected EOF while parsing', ('<unknown>', 0, 0, '')), '<%\n    import ast\n    # Sanitize\n    graph_args = ast.literal_eval(dev_addr.strip())\n    dev_args_s = ast.literal_eval(dev_args.strip())\n    clock_source_s = ast.literal_eval(clock_source.strip())\n    time_source_s = ast.literal_eval(time_source.strip())\n    # Build full dev args\n    if dev_args_s:\n        graph_args += f",{clock_source_s}"\n    if clock_source_s:\n        graph_args += f",clock_source={clock_source_s}"\n    if time_source_s:\n        graph_args += f",time_source={time_source_s}"\n%>\nself.rfnoc_graph = ${id} = ettus.rfnoc_graph(uhd.device_addr("${graph_args}")))\n')


I am able to generate the python by removing the extra ")" in the .py file and running it through python3. I am unable to find anyone this issue and have followed this guide
https://www.linkedin.com/pulse/installation-uhd-40-gnu-radio-38-rfnoc-ubuntu-2004-murthy-s?trk=pulse-article_more-articles_related-content-card

I would appreciate it anyone else has figured out this issue or knows if I am doing anything wrong! 


Thank you in advanced,
Taylor Clark

reply via email to

[Prev in Thread] Current Thread [Next in Thread]