Hi all,
I am building an OOT module. When I run gr_modtool makexml beacon_gen, I
got error:
GNU Radio module name identified: PNC
Warning: This is an experimental feature. Don’t expect any magic.
Searching for matching files in lib/:
Making GRC bindings for lib/beacon_gen_impl.cc…
Traceback (most recent call last):
File “/usr/local/bin/gr_modtool”, line 47, in
main()
File “/usr/local/bin/gr_modtool”, line 39, in main
modtool.run()
File
“/opt/gnuradio-3.7.3/lib/python2.7/dist-packages/gnuradio/modtool/modtool_makexml.py”,
line 66, in run
(params, iosig, blockname) = self._parse_cc_h(f)
File
“/opt/gnuradio-3.7.3/lib/python2.7/dist-packages/gnuradio/modtool/modtool_makexml.py”,
line 165, in _parse_cc_h
return (parser.read_params(), parser.read_io_signature(), blockname)
File
“/opt/gnuradio-3.7.3/lib/python2.7/dist-packages/gnuradio/modtool/parser_cc_block.py”,
line 82, in read_io_signature
iosig_match.group(‘intype’))
File
“/opt/gnuradio-3.7.3/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
“/opt/gnuradio-3.7.3/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
“/opt/gnuradio-3.7.3/lib/python2.7/dist-packages/gnuradio/modtool/modtool_makexml.py”,
line 140, in _type_translate
if p_type in (‘int’,) and default_v[:2].lower() == ‘0x’:
TypeError: ‘NoneType’ object has no attribute ‘getitem’
Can anyone help me with this?
Thank you,
Ly
Van-Ly Nguyen,
Signals and Systems Laboratory - SSL
Faculty of Electronics and Telecommunications - FET
University of Engineering and Technology - UET
Vietnam National University, Hanoi - VNU
Tel: (+84) 978 819 406
On 10.08.2014 20:06, Nguyễn Văn Lý wrote:
Hi all,
I am building an OOT module. When I run gr_modtool makexml beacon_gen, I
got error:
GNU Radio module name identified: PNC
Warning: This is an experimental feature. Don’t expect any magic.
Well, it does warn you about being experimental.
Searching for matching files in lib/:
Making GRC bindings for lib/beacon_gen_impl.cc…
Traceback (most recent call last):
[…]
Can anyone help me with this?
If you post the module somewhere, I can take a look. Don’t expect an
immediate fix, though.
In the meantime, I suggest you write the XML by hand.
Cheers,
Martin
Hi Martin,
I wrote the XML files by hand as you suggested, but when I run a grc
file
to test the blocks, there’s another error that I don’t know.
Traceback (most recent call last): File
“/home/van-ly/sandbox/gnuradio-builds/Test/top_block.py”, line 18, in
import PNC File
“/opt/gnuradio-3.7.3/lib/python2.7/dist-packages/PNC/init.py”, line
45,
in from PNC_swig import * File
“/opt/gnuradio-3.7.3/lib/python2.7/dist-packages/PNC/PNC_swig.py”, line
28,
in _PNC_swig = swig_import_helper() File
“/opt/gnuradio-3.7.3/lib/python2.7/dist-packages/PNC/PNC_swig.py”, line
24,
in swig_import_helper _mod = imp.load_module(‘_PNC_swig’, fp,
pathname,
description)ImportError: /opt/gnuradio-3.7.3/lib/libgnuradio-PNC.so:
undefined symbol:
_ZN2gr3PNC18sync_end_node_impl17shift_window_funcESt6vectorISt7complexIfESaIS4_EES4_i
You can see my module and my grc test file in the enclosed files.
Thank you very much,
Ly
Van-Ly Nguyen,
Signals and Systems Laboratory - SSL
Faculty of Electronics and Telecommunications - FET
University of Engineering and Technology - UET
Vietnam National University, Hanoi - VNU
Tel: (+84) 978 819 406
On Mon, Aug 11, 2014 at 1:33 AM, Martin B. [email protected]
Maybe a SWIG issue (needs cleaning and recompiling), or a virtual
function not declared pure virtual… this can be anything, and you’ll
need to do the usual C++ debugging steps to figure this out.
Good luck,
M