discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] gr_modtool makexml bugs


From: Martin Braun
Subject: Re: [Discuss-gnuradio] gr_modtool makexml bugs
Date: Sun, 09 Feb 2014 09:19:18 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

On 08.02.2014 23:38, Activecat wrote:
Dear guru,
This happens intermittently. Is this a bug?

Probably. That said, makexml is the most tricky part of modtool. This might be triggered by invalid code, although the error message suggests otherwise.

Can you please post GNU Radio version, the include file and the _impl.cc file that triggers this.

MB

Command:  gr_modtool makexml integer_sink2
Output: as below

Regards,
activecat


$ gr_modtool makexml integer_sink2
GNU Radio module name identified: activecat
Warning: This is an experimental feature. Don't expect any magic.
Searching for matching files in lib/:
Making GRC bindings for lib/integer_sink2_impl.cc...
Traceback (most recent call last):
   File "/usr/local/bin/gr_modtool", line 41, in <module>
     main()
   File "/usr/local/bin/gr_modtool", line 37, in main
     modtool.run()
   File
"/usr/local/lib/python2.7/dist-packages/gnuradio/modtool/modtool_makexml.py",
line 66, in run
     (params, iosig, blockname) = self._parse_cc_h(f)
   File
"/usr/local/lib/python2.7/dist-packages/gnuradio/modtool/modtool_makexml.py",
line 157, in _parse_cc_h
     return (parser.read_params(), parser.read_io_signature(), blockname)
   File
"/usr/local/lib/python2.7/dist-packages/gnuradio/modtool/parser_cc_block.py",
line 82, in read_io_signature
     iosig_match.group('intype'))
   File
"/usr/local/lib/python2.7/dist-packages/gnuradio/modtool/parser_cc_block.py",
line 47, in _figure_out_iotype_and_vlen
     return {'type': [_typestr_to_iotype(x) for x in typestr.split(',')],
   File
"/usr/local/lib/python2.7/dist-packages/gnuradio/modtool/parser_cc_block.py",
line 55, in _typestr_to_iotype
     return self.type_trans(type_match.group(1))
   File
"/usr/local/lib/python2.7/dist-packages/gnuradio/modtool/modtool_makexml.py",
line 132, in _type_translate
     if p_type in ('int',) and default_v[:2].lower() == '0x':
TypeError: 'NoneType' object has no attribute '__getitem__'



_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio





reply via email to

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