Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GRC bug when processing a graph containing RFNoC TX Streamer #7313

Open
ptrkrysik opened this issue May 5, 2024 · 2 comments
Open

GRC bug when processing a graph containing RFNoC TX Streamer #7313

ptrkrysik opened this issue May 5, 2024 · 2 comments

Comments

@ptrkrysik
Copy link
Contributor

What happened?

Any graph that contains RFNoC Tx Streamer block causes following error:

Generate Error: Undefined
>>> Failure
Traceback (most recent call last):
  File "/home/user/prefix/lib/python3.11/site-packages/gnuradio/grc/gui/Application.py", line 762, in _handle_action
    generator.write()
  File "/home/user/prefix/lib/python3.11/site-packages/gnuradio/grc/core/generator/top_block.py", line 86, in write
    for filename, data in self._build_python_code_from_template():
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/prefix/lib/python3.11/site-packages/gnuradio/grc/core/generator/top_block.py", line 135, in _build_python_code_from_template
    connections=self._connections(),
                ^^^^^^^^^^^^^^^^^^^
  File "/home/user/prefix/lib/python3.11/site-packages/gnuradio/grc/core/generator/top_block.py", line 328, in _connections
    code = template.render(
           ^^^^^^^^^^^^^^^^
  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:0x7c3000154350", line 32, in render_body
  File "/usr/lib/python3/dist-packages/mako/runtime.py", line 230, in __str__
    raise NameError("Undefined")
NameError: Undefined

Checked on the head of maint-3.10 and main branches. Both have this issue.

System Information

OS: Ubuntu 20.04
GR Installation Method: Source

GNU Radio Version

3.11-git (main)

Specific Version

v3.11.0.0git-717-g72e21b54

Steps to Reproduce the Problem

Create a graph with 'RFNoC Tx Streamer' block.
For example 'Signal Source' -> 'RFNoC Tx Streamer' -> 'RFNoC TX Radio':
rfnoc_tx_streamer_test.grc.zip
Try to translate it into Python with:
grcc <graph.grc>

Relevant log output

No response

@ptrkrysik ptrkrysik changed the title GRC bug when generating processing a graph with RFNoC TX Streamer GRC bug when processing a graph containing RFNoC TX Streamer May 5, 2024
@ptrkrysik
Copy link
Contributor Author

ptrkrysik commented May 5, 2024

After changing default value of 'Wire Format' in 'RFNoC Tx Streamer' block properties from 'Auto' to 'Complex int16' (the only other available option), the graph is compiled correctly.

So the real issue is that auto-detection of connection type doesn't work in this case.

@polhenarejos
Copy link

After changing default value of 'Wire Format' in 'RFNoC Tx Streamer' block properties from 'Auto' to 'Complex int16' (the only other available option), the graph is compiled correctly.

So the real issue is that auto-detection of connection type doesn't work in this case.

This worked to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants