# GNU Radio Companion v3.7.0-1-g2c05acc1 python name-spaces not working

**URL:** <https://www.ruby-forum.com/t/gnu-radio-companion-v3-7-0-1-g2c05acc1-python-name-spaces-not-working/235636>\
**Category:** GNU Radio\
**Created:** [July 4, 2013, 10:59pm UTC](https://www.ruby-forum.com/t/gnu-radio-companion-v3-7-0-1-g2c05acc1-python-name-spaces-not-working/235636 "2013-07-04T22:59:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![alcina](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a587f6/32.png) [@alcina](https://www.ruby-forum.com/u/alcina)\
**Post date:** [July 4, 2013, 10:59pm UTC](https://www.ruby-forum.com/t/gnu-radio-companion-v3-7-0-1-g2c05acc1-python-name-spaces-not-working/235636/1 "2013-07-04T22:59:20Z")

</div>

Hello all,

I’m using Xubuntu 13.04 and compiled from 3.7git, when I try to run GRC  
almost any block that uses constants from the updates name-spaces GRC  
fails  
with:

> Value “firdes.WIN\_HAMMING” cannot be evaluated:  
> name ‘firdes’ is not defined

or for signal source and related:

> Value “analog.GR\_SIN\_WAVE” cannot be evaluated:  
> name ‘analog’ is not defined

I’m not sure where in GRC these are defined but I will continue to look  
for  
a fix.

Thank you  
~Andrew

---

<div class="post-metadata">

**Author:** ![andrewdon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e9bcb4/32.png) [@andrewdon](https://www.ruby-forum.com/u/andrewdon)\
**Post date:** [July 4, 2013, 11:14pm UTC](https://www.ruby-forum.com/t/gnu-radio-companion-v3-7-0-1-g2c05acc1-python-name-spaces-not-working/235636/2 "2013-07-04T23:14:32Z")

</div>

On Thu, Jul 4, 2013 at 4:58 PM, Andrew D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > Value “analog.GR\_SIN\_WAVE” cannot be evaluated:  
> > name ‘analog’ is not defined
> 
> I’m not sure where in GRC these are defined but I will continue to look for  
> a fix.
> 
> Thank you  
> ~Andrew

Have you removed all other GNU Radio versions from your machine?

Also, if these are your own GRC files, might just try typing it in  
again as the state might be a bit confused after an update.

The specific cases you’ve mentioned have been tested for in the 3.7  
release, so I think it’s something local and/or a confusion after an  
upgrade (the latter are bound to happen).

Tom

---

<div class="post-metadata">

**Author:** ![andrewdon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e9bcb4/32.png) [@andrewdon](https://www.ruby-forum.com/u/andrewdon)\
**Post date:** [July 4, 2013, 11:18pm UTC](https://www.ruby-forum.com/t/gnu-radio-companion-v3-7-0-1-g2c05acc1-python-name-spaces-not-working/235636/3 "2013-07-04T23:18:37Z")

</div>

I had the same problem, but realized I was using the GRC .xml  
definitions  
from the previous version (in /usr/local/share/gnuradio/blocks).

---

<div class="post-metadata">

**Author:** ![andrewdon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e9bcb4/32.png) [@andrewdon](https://www.ruby-forum.com/u/andrewdon)\
**Post date:** [July 6, 2013, 12:32am UTC](https://www.ruby-forum.com/t/gnu-radio-companion-v3-7-0-1-g2c05acc1-python-name-spaces-not-working/235636/4 "2013-07-06T00:32:34Z")

</div>

Thanks for the suggestion, I removed every trace of GNU Radio off this  
machine and re-installed, it did not fix the problem. After further  
investigation the problem appears to be related to another problem I  
have  
been having, when I would run any block using filters I would get:

> ImportError: /usr/lib/libgnuradio-filter-3.7.1git.so.0.0.0: undefined  
> symbol: volk\_32f\_x2\_dot\_prod\_16i\_a

And now when I manual pull in ‘analog’ in python I get:

> ImportError: /usr/lib/libgnuradio-blocks-3.7.1git.so.0.0.0: undefined  
> symbol: volk\_64u\_byteswap\_u

So this link problem is what is keeping ‘analog’ undefined.

When I run ‘readelf -d /usr/lib/libgnuradio-filter-3.7.1git.so.0.0.0’ I  
get:

> 0x0000000000000001 (NEEDED) Shared library: [libvolk.so.0.0.0]

So I think It is being linked, and when I run ‘nm -D  
/usr/lib/libvolk.so.0.0.0’ I get:

> 00000000002d69f0 D volk\_32f\_x2\_dot\_prod\_16i  
> 00000000002d6a10 D volk\_32f\_x2\_dot\_prod\_16i\_a \<---------------  
> 0000000000042130 T volk\_32f\_x2\_dot\_prod\_16i\_get\_func\_desc

So I think libvolk exports it ( although i’m not sure why the ‘D’ is  
there  
).

What else could I check to see why VOLK functions are not getting  
linked?

Thank you  
-Andrew

On Thu, Jul 4, 2013 at 5:17 PM, Stephen Harrison

---

<div class="post-metadata">

**Author:** ![andrewdon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e9bcb4/32.png) [@andrewdon](https://www.ruby-forum.com/u/andrewdon)\
**Post date:** [July 8, 2013, 4:42am UTC](https://www.ruby-forum.com/t/gnu-radio-companion-v3-7-0-1-g2c05acc1-python-name-spaces-not-working/235636/5 "2013-07-08T04:42:22Z")

</div>

OK, it appears a previous install hid an extra libvolk in  
/usr/lib/x86\_64-linux-gnu, removing that everything is working well so  
far,  
thank you for the help everyone.

-Andrew

---

<div class="post-metadata">

**Author:** ![andrewdon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e9bcb4/32.png) [@andrewdon](https://www.ruby-forum.com/u/andrewdon)\
**Post date:** [July 7, 2013, 10:17am UTC](https://www.ruby-forum.com/t/gnu-radio-companion-v3-7-0-1-g2c05acc1-python-name-spaces-not-working/235636/6 "2013-07-07T10:17:09Z")

</div>

On Fri, Jul 5, 2013 at 6:31 PM, Andrew D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > ImportError: /usr/lib/libgnuradio-blocks-3.7.1git.so.0.0.0: undefined
> 
> -Andrew  
> Ok, that clears up the import error. Have you just tried running  
> ‘ldconfig’ to see if that fixes your linking problems?

Tom
