Package: gnuradio Version: 3.10.5.1-3 Severity: normal Dear Maintainer,
*** Reporter, please consider answering these questions, where appropriate *** * What led up to the situation? Under GNURadio companion (Debian 12), I want to use the "RFNoC Graph (Device)" block. * What exactly did you do (or not do) that was effective (or ineffective)? Drag the "RFNoc Graph (Device)" menu entry and drop it on the flowgraph window. * What was the outcome of this action? The block does not appear in the flowgraph window. The following error messages are printed in the terminal: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/gnuradio/grc/core/blocks/_templates.py", line 77, in render return template.render(**namespace) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/mako/template.py", line 439, in render return runtime._render(self, self.callable_, args, data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/mako/runtime.py", line 874, in _render _render_context( File "/usr/lib/python3/dist-packages/mako/runtime.py", line 916, in _render_context _exec_template(inherit, lclcontext, args=args, kwargs=kwargs) File "/usr/lib/python3/dist-packages/mako/runtime.py", line 943, in _exec_template callable_(context, *args, **kwargs) File "memory:0x7f3068b802d0", line 43, in render_body File "/usr/lib/python3.11/ast.py", line 64, in literal_eval node_or_string = parse(node_or_string.lstrip(" \t"), mode='eval') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/ast.py", line 50, in parse return compile(source, filename, mode, flags, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<unknown>", line 0 SyntaxError: invalid syntax During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/gnuradio/grc/gui/Application.py", line 409, in _handle_action flow_graph_update() File "/usr/lib/python3/dist-packages/gnuradio/grc/gui/Application.py", line 110, in flow_graph_update fg.update() File "/usr/lib/python3/dist-packages/gnuradio/grc/gui/canvas/flowgraph.py", line 192, in update self.rewrite() File "/usr/lib/python3/dist-packages/gnuradio/grc/core/FlowGraph.py", line 232, in rewrite self.renew_namespace() File "/usr/lib/python3/dist-packages/gnuradio/grc/core/FlowGraph.py", line 284, in renew_namespace for variable_block in self.get_variables(): ^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/gnuradio/grc/core/FlowGraph.py", line 73, in get_variables return expr_utils.sort_objects(variables, attrgetter('name'), methodcaller('get_var_make')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/gnuradio/grc/core/utils/expr_utils.py", line 61, in sort_objects id2expr = {get_id(obj): get_expr(obj) for obj in objects} ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/gnuradio/grc/core/utils/expr_utils.py", line 61, in <dictcomp> id2expr = {get_id(obj): get_expr(obj) for obj in objects} ^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/gnuradio/grc/core/blocks/block.py", line 396, in get_var_make return self.templates.render('var_make') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/gnuradio/grc/core/blocks/_templates.py", line 79, in render raise TemplateError(error, text) gnuradio.grc.core.errors.TemplateError: (SyntaxError('invalid syntax', ('<unknown>', 0, 0, '', 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} = uhd.rfnoc_graph(uhd.device_addr("${graph_args}"))\n') * What outcome did you expect instead? *** End of the template - remove these template lines *** -- System Information: Debian Release: 12.1 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 6.1.0-12-amd64 (SMP w/4 CPU threads; PREEMPT) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages gnuradio depends on: ii gnome-terminal [x-terminal-emulator] 3.46.8-1 ii libboost-program-options1.74.0 1.74.0+ds1-21 ii libc6 2.36-9+deb12u1 ii libfmt9 9.1.0+ds1-2 ii libgcc-s1 12.2.0-14 ii libgmp10 2:6.2.1+dfsg1-1.1 ii libgnuradio-analog3.10.5 3.10.5.1-3 ii libgnuradio-audio3.10.5 3.10.5.1-3 ii libgnuradio-blocks3.10.5 3.10.5.1-3 ii libgnuradio-channels3.10.5 3.10.5.1-3 ii libgnuradio-digital3.10.5 3.10.5.1-3 ii libgnuradio-dtv3.10.5 3.10.5.1-3 ii libgnuradio-fec3.10.5 3.10.5.1-3 ii libgnuradio-fft3.10.5 3.10.5.1-3 ii libgnuradio-filter3.10.5 3.10.5.1-3 ii libgnuradio-iio3.10.5 3.10.5.1-3 ii libgnuradio-network3.10.5 3.10.5.1-3 ii libgnuradio-pdu3.10.5 3.10.5.1-3 ii libgnuradio-pmt3.10.5 3.10.5.1-3 ii libgnuradio-qtgui3.10.5 3.10.5.1-3 ii libgnuradio-runtime3.10.5 3.10.5.1-3 ii libgnuradio-soapy3.10.5 3.10.5.1-3 ii libgnuradio-trellis3.10.5 3.10.5.1-3 ii libgnuradio-uhd3.10.5 3.10.5.1-3 ii libgnuradio-video-sdl3.10.5 3.10.5.1-3 ii libgnuradio-vocoder3.10.5 3.10.5.1-3 ii libgnuradio-wavelet3.10.5 3.10.5.1-3 ii libgnuradio-zeromq3.10.5 3.10.5.1-3 ii libjs-mathjax 2.7.9+dfsg-1 ii libqt5core5a 5.15.8+dfsg-11 ii libqt5widgets5 5.15.8+dfsg-11 ii libsoapysdr0.8 0.8.1-3 ii libspdlog1.10 [libspdlog1.10-fmt9] 1:1.10.0+ds-0.4 ii libstdc++6 12.2.0-14 ii libuhd4.3.0 4.3.0.0+ds1-5 ii libvolk2-bin 2.5.2-3 ii libvolk2.5 2.5.2-3 ii python3 3.11.2-1+b1 ii python3-click 8.1.3-2 ii python3-click-plugins 1.1.1-4 ii python3-gi 3.42.2-3+b1 ii python3-gi-cairo 3.42.2-3+b1 ii python3-jsonschema 4.10.3-1 ii python3-lxml 4.9.2-1+b1 ii python3-mako 1.2.4+ds-1 ii python3-numpy [python3-numpy-abi9] 1:1.24.2-1 ii python3-opengl 3.1.6+dfsg-3 ii python3-packaging 23.0-1 ii python3-pygccxml 2.2.1-1 ii python3-pyqt5 5.15.9+dfsg-1 ii python3-pyqtgraph 0.13.1-4 ii python3-schema 0.7.5-1 ii python3-sip 4.19.25+dfsg-5+b1 ii python3-thrift 0.17.0-2+b2 ii python3-yaml 6.0-3+b2 ii python3-zmq 24.0.1-4+b1 ii xterm [x-terminal-emulator] 379-1 Versions of packages gnuradio recommends: ii gnuradio-dev 3.10.5.1-3 ii python3-matplotlib 3.6.3-1+b1 ii python3-networkx 2.8.8-1 ii python3-pygccxml 2.2.1-1 ii python3-pyqt5.qwt 1.02.02-2+b4 ii python3-scipy 1.10.1-2 ii soapysdr-tools 0.8.1-3 Versions of packages gnuradio suggests: pn gqrx-sdr <none> pn gr-fosphor <none> pn gr-osmosdr <none> pn rtl-sdr <none> pn uhd-host <none> -- no debconf information