# Failed to create xml files

**URL:** <https://www.ruby-forum.com/t/failed-to-create-xml-files/231480>\
**Category:** GNU Radio\
**Created:** [August 10, 2014, 8:07pm UTC](https://www.ruby-forum.com/t/failed-to-create-xml-files/231480 "2014-08-10T20:07:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [August 10, 2014, 8:07pm UTC](https://www.ruby-forum.com/t/failed-to-create-xml-files/231480/1 "2014-08-10T20:07:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![NguySSSn\_VSSn\_LS\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/9fc29f/32.png) [@NguySSSn\_VSSn\_LS\_S](https://www.ruby-forum.com/u/NguySSSn_VSSn_LS_S)\
**Post date:** [August 10, 2014, 8:34pm UTC](https://www.ruby-forum.com/t/failed-to-create-xml-files/231480/2 "2014-08-10T20:34:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![NguySSSn\_VSSn\_LS\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/9fc29f/32.png) [@NguySSSn\_VSSn\_LS\_S](https://www.ruby-forum.com/u/NguySSSn_VSSn_LS_S)\
**Post date:** [August 11, 2014, 6:11am UTC](https://www.ruby-forum.com/t/failed-to-create-xml-files/231480/3 "2014-08-11T06:11:04Z")

</div>

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. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![NguySSSn\_VSSn\_LS\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/9fc29f/32.png) [@NguySSSn\_VSSn\_LS\_S](https://www.ruby-forum.com/u/NguySSSn_VSSn_LS_S)\
**Post date:** [August 13, 2014, 12:07pm UTC](https://www.ruby-forum.com/t/failed-to-create-xml-files/231480/4 "2014-08-13T12:07:55Z")

</div>

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
