discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] Creating a Python tagged_stream block


From: amani alshawabkeh
Subject: [Discuss-gnuradio] Creating a Python tagged_stream block
Date: Thu, 17 Jan 2019 17:17:48 -0500

Hi all,

I am trying to create a tagged_stream block in Python using gr_modtool but I am having some trouble. Am using the latest Gnuradio version (3.7.13.4) on Ubuntu 16.04. Below is the error log.

Any suggestions? Adding other block types works fine.

Moreover, if gr_modtool does not support tagged_stream, can you suggest how to create one manually in Python?

Thanks,
Amani
**************************
address@hidden:~/gr-ieee802-11-master$ gr_modtool add
GNU Radio module name identified: ieee802-11
Enter name of block/code (without module name prefix): my_block
Block/code identifier: my_block
('sink', 'source', 'sync', 'decimator', 'interpolator', 'general', 'tagged_stream', 'hier', 'noblock')
Enter block type: tagged_stream
Language (python/cpp): python
Language: Python
Please specify the copyright holder:
Enter valid argument list, including default arguments:
Add Python QA code? [Y/n] n
Adding file 'python/my_block.py'...
Traceback (most recent call last):
  File "/usr/local/bin/gr_modtool", line 46, in <module>
    main()
  File "/usr/local/bin/gr_modtool", line 38, in main
    modtool.run()
  File "/usr/local/lib/python2.7/dist-packages/gnuradio/modtool/modtool_add.py", line 186, in run
    self._run_python()
  File "/usr/local/lib/python2.7/dist-packages/gnuradio/modtool/modtool_add.py", line 331, in _run_python
    self._write_tpl('block_python', self._info['pydir'], fname_py)
  File "/usr/local/lib/python2.7/dist-packages/gnuradio/modtool/modtool_add.py", line 172, in _write_tpl
    open(path_to_file, 'w').write(get_template(tpl, **self._info))
  File "/usr/local/lib/python2.7/dist-packages/gnuradio/modtool/code_generator.py", line 58, in get_template
    return str(GRMTemplate(Templates[tpl_id], searchList=kwargs))
  File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in __str__
    rc = getattr(self, mainMethName)()
  File "cheetah_DynamicallyCompiledCheetahTemplate_1547763062_44_25644.py", line 99, in respond
KeyError: 'tagged_stream'

reply via email to

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