I installed new version of gr_modtool script and it won't work. The error is following:
address@hidden gr-test]$ gr_modtool.py add -N rx_tx_message -t hier -l python
Using Python < 2.7 possibly buggy. Ahem. Please send all complaints to /dev/null.
Operating in directory .
GNU Radio module name identified: test
Language: Python
Block/code identifier: rx_tx_message
Enter valid argument list, including default arguments:
Add Python QA code? [Y/n] n
Traversing python...
Adding file 'rx_tx_message.py'...
Traceback (most recent call last):
File "/usr/local/bin/gr_modtool.py", line 3369, in <module>
main()
File "/usr/local/bin/gr_modtool.py", line 3362, in main
modtool.run()
File "/usr/local/bin/gr_modtool.py", line 1339, in run
self._run_python()
File "/usr/local/bin/gr_modtool.py", line 1479, in _run_python
self._write_tpl('block_python', 'python', fname_py)
File "/usr/local/bin/gr_modtool.py", line 1324, in _write_tpl
open(os.path.join(path, fname), 'w').write(get_template(tpl, **self._info))
File "/usr/local/bin/gr_modtool.py", line 870, in get_template
return str(GRMTemplate(Templates[tpl_id], searchList=kwargs))
File "/usr/local/bin/gr_modtool.py", line 865, in __init__
Cheetah.Template.Template.__init__(self, src, searchList=searchList)
File "/usr/lib64/python2.6/site-packages/Cheetah/Template.py", line 1257, in __init__
self._compile(source, file, compilerSettings=compilerSettings)
File "/usr/lib64/python2.6/site-packages/Cheetah/Template.py", line 1551, in _compile
keepRefToGeneratedCode=True)
File "/usr/lib64/python2.6/site-packages/Cheetah/Template.py", line 795, in compile
raise parseError
Cheetah.Parser.ParseError:
Error in the Python code which Cheetah generated for this template:
================================================================================
expected an indented block (DynamicallyCompiledCheetahTemplate.py, line 122)
Line|Python Code
----|-------------------------------------------------------------
120 | deciminterp = ''
121 | else: # generated from line 42, col 1
122 | write(u'''from gnuradio import gr
^
123 |class ''')
124 | _v = VFFSL(SL,"blockname",True) # u'${blockname}' on line 46, col 7
125 | if _v is not None: write(_filter(_v, rawExpr=u'${blockname}')) # from line 46, col 7.
================================================================================
Here is the corresponding Cheetah code.
** I had to guess the line & column numbers, so they are probably incorrect:
Line 42, column 1
Line|Cheetah Code
----|-------------------------------------------------------------
39 |#else if $blocktype == 'decimator'
40 |#set $deciminterp = ', <+decimation+>'
41 |#set $deciminterp = ''
42 |#else
^
43 |#end if
44 |from gnuradio import gr
45 |
Any suggestions how to ovecome this except using older version which worked perfectly?