Gr_modtool makexml bugs

Dear guru,
This happens intermittently. Is this a bug?

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
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

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

Dear Martin,

Let’s refer related files as attached, thanks.

List of attached files:
integer_source.h
integer_source_impl.h
integer_source_impl.cc
error_message (text file)

Regards,
activecat

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs