Forum: GNU Radio gr_modtool error Adding file .h

Posted by gong zhang (Guest)
on 2012-11-05 03:27
(Received via mailing list)
I'm newbie to gnuradio.I got a problem when i use the latest
gr_modtool to check the howto_square_ff example.I work with
Ubuntu10.04,python2.6 and Cheetah2.4.4. When i excute 'gr_modtool add'
I got the following:
Add Python QA code? [Y/n] n
Add C++ QA code? [Y/n] n
Traversing lib...
Adding file 'howto_square_ff.h'...
Traceback (most recent call last):
  File "/home/zg/gr-modtool/src/gr_modtool.py", line 46, in <module>
    main()
  File "/home/zg/gr-modtool/src/gr_modtool.py", line 40, in main
    modtool.run()
  File "/home/zg/gr-modtool/src/modtool_add.py", line 130, in run
    self._run_lib()
  File "/home/zg/gr-modtool/src/modtool_add.py", line 162, in _run_lib
    self._write_tpl('block_h', 'include', fname_h)
  File "/home/zg/gr-modtool/src/modtool_add.py", line 125, in _write_tpl
    open(os.path.join(path, fname), 'w').write(get_template(tpl, 
**self._info))
  File "/home/zg/gr-modtool/src/code_generator.py", line 43, in 
get_template
    return str(GRMTemplate(Templates[tpl_id], searchList=kwargs))
  File "/usr/lib/pymodules/python2.6/Cheetah/Template.py", line 981, in 
__str__
    def __str__(self): return getattr(self, mainMethName)()
  File "DynamicallyCompiledCheetahTemplate.py", line 88, in respond
NameMapper.NotFound: cannot find 'str_to_fancyc_comment'
Thanks.
Posted by Martin Braun (CEL) (Guest)
on 2012-11-05 09:27
(Received via mailing list)
I accidentally pushed a buggy version somewhere along the line, you must
have caught that.
Just get a new version, it should work. Which branch are you on, master
of format37?

M

On Mon, Nov 05, 2012 at 10:27:08AM +0800, gong zhang wrote:
>     main()
>   File "/usr/lib/pymodules/python2.6/Cheetah/Template.py", line 981, in __str__
>     def __str__(self): return getattr(self, mainMethName)()
>   File "DynamicallyCompiledCheetahTemplate.py", line 88, in respond
> NameMapper.NotFound: cannot find 'str_to_fancyc_comment'
> Thanks.
>
> _______________________________________________
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

--
Karlsruhe Institute of Technology (KIT)
Communications Engineering Lab (CEL)

Dipl.-Ing. Martin Braun
Research Associate

Kaiserstraße 12
Building 05.01
76131 Karlsruhe

Phone: +49 721 608-43790
Fax: +49 721 608-46071
www.cel.kit.edu

KIT -- University of the State of Baden-Württemberg and
National Laboratory of the Helmholtz Association
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.