# Run-time error while executing a simple flowgraph in GNU Radio companion

**URL:** <https://www.ruby-forum.com/t/run-time-error-while-executing-a-simple-flowgraph-in-gnu-radio-companion/234625>\
**Category:** GNU Radio\
**Created:** [March 18, 2015, 12:37pm UTC](https://www.ruby-forum.com/t/run-time-error-while-executing-a-simple-flowgraph-in-gnu-radio-companion/234625 "2015-03-18T12:37:21Z")\
**Posts on this page:** 14\
**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:** [March 18, 2015, 12:37pm UTC](https://www.ruby-forum.com/t/run-time-error-while-executing-a-simple-flowgraph-in-gnu-radio-companion/234625/1 "2015-03-18T12:37:21Z")

</div>

Hey all,

Just to start experimenting with GNU Radio and companion I just created  
a simple flowgraph consisting of a Signal Source Block and a WX GUI FFT  
Sink connected to it, to see if the diagram will be generated. I get a  
run-time error, namely:

Executing: “/home/nikos/top\_block.py”

Traceback (most recent call last):  
File “/home/nikos/top\_block.py”, line 12, in   
from gnuradio import wxgui  
File  
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/ **init**.py”,  
line 32, in   
from wxgui\_swig import \*  
File  
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/wxgui\_swig.py”,  
line 28, in   
\_wxgui\_swig = swig\_import\_helper()  
File  
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/wxgui\_swig.py”,  
line 24, in swig\_import\_helper  
\_mod = imp.load\_module(’\_wxgui\_swig’, fp, pathname, description)  
ImportError: libgnuradio-wxgui-3.7.6.1.so.0.0.0: cannot open shared  
object file: No such file or directory

What could be wrong here?

Thank you,  
Nikos

---

<div class="post-metadata">

**Author:** ![NIKOS\_BIZANIS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/dc4da7/32.png) [@NIKOS\_BIZANIS](https://www.ruby-forum.com/u/NIKOS_BIZANIS)\
**Post date:** [March 18, 2015, 12:50pm UTC](https://www.ruby-forum.com/t/run-time-error-while-executing-a-simple-flowgraph-in-gnu-radio-companion/234625/2 "2015-03-18T12:50:58Z")

</div>

Hi Nikos,

you said earlier you were able to use WX widgets. Did you do something  
in between that and your system now not being able to find the  
libgnuradio-wxgui library?

Greetings,  
Marcus

---

<div class="post-metadata">

**Author:** ![NIKOS\_BIZANIS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/dc4da7/32.png) [@NIKOS\_BIZANIS](https://www.ruby-forum.com/u/NIKOS_BIZANIS)\
**Post date:** [March 18, 2015, 1:03pm UTC](https://www.ruby-forum.com/t/run-time-error-while-executing-a-simple-flowgraph-in-gnu-radio-companion/234625/3 "2015-03-18T13:03:52Z")

</div>

Hi Marcus,

What I meant by “able to use”, was that I was able to find the blocks  
using the search facility and put the block to a flowgraph. I had not  
actually tried to build and execute a flowgraph containing any of these  
blocks, and now that I tried this was the result.

Greetings,  
Nikos

* * *

From: discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid  
[discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid] on  
behalf of Marcus M. [removed\_email\_address@domain.invalid]  
Sent: Wednesday, March 18, 2015 12:48 PM  
To: removed\_email\_address@domain.invalid  
Subject: Re: [Discuss-gnuradio] Run-time error while executing a simple  
flowgraph in GNU Radio companion

Hi Nikos,

you said earlier you were able to use WX widgets. Did you do something  
in between that and your system now not being able to find the  
libgnuradio-wxgui library?

Greetings,  
Marcus

On 03/18/2015 12:34 PM, NIKOS BIZANIS wrote:  
Hey all,

Just to start experimenting with GNU Radio and companion I just created  
a simple flowgraph consisting of a Signal Source Block and a WX GUI FFT  
Sink connected to it, to see if the diagram will be generated. I get a  
run-time error, namely:

Executing: “/home/nikos/top\_block.py”

Traceback (most recent call last):  
File “/home/nikos/top\_block.py”, line 12, in   
from gnuradio import wxgui  
File  
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/ **init**.py”,  
line 32, in   
from wxgui\_swig import \*  
File  
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/wxgui\_swig.py”,  
line 28, in   
\_wxgui\_swig = swig\_import\_helper()  
File  
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/wxgui\_swig.py”,  
line 24, in swig\_import\_helper  
\_mod = imp.load\_module(’\_wxgui\_swig’, fp, pathname, description)  
ImportError: libgnuradio-wxgui-3.7.6.1.so.0.0.0: cannot open shared  
object file: No such file or directory

What could be wrong here?

Thank you,  
Nikos

---

<div class="post-metadata">

**Author:** ![NIKOS\_BIZANIS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/dc4da7/32.png) [@NIKOS\_BIZANIS](https://www.ruby-forum.com/u/NIKOS_BIZANIS)\
**Post date:** [March 18, 2015, 1:10pm UTC](https://www.ruby-forum.com/t/run-time-error-while-executing-a-simple-flowgraph-in-gnu-radio-companion/234625/4 "2015-03-18T13:10:40Z")

</div>

Ah well, in that case: it seems like you’ve successfully installed the  
block definition XML files to a place GRC can find them, but that does  
not apply to the library you’re missing now. If “sudo ldconfig” doesn’t  
help, make sure that  
make install

inside your gnuradio/build directory actually is successful. If you get  
errors about missing permissions, you might want to run the command via  
sudo:  
sudo make install

You might also want to have a look at  
gnuradio/build/install\_manifest.txt, which should list all the files  
that were installed. look for a line containing the library you’re  
missing – where did it get installed to? Where did, for example,  
gnuradio-companion get installed to? Is that the same as what “which  
gnuradio-companion” is telling you?

Best regards,  
Marcus

---

<div class="post-metadata">

**Author:** ![NIKOS\_BIZANIS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/dc4da7/32.png) [@NIKOS\_BIZANIS](https://www.ruby-forum.com/u/NIKOS_BIZANIS)\
**Post date:** [March 18, 2015, 1:28pm UTC](https://www.ruby-forum.com/t/run-time-error-while-executing-a-simple-flowgraph-in-gnu-radio-companion/234625/5 "2015-03-18T13:28:33Z")

</div>

After running ldconfig I still get an error, but a somewhat different  
one:

Warning: failed to XInitThreads()  
Traceback (most recent call last):  
File “/home/nikos/top\_block.py”, line 105, in   
tb = top\_block()  
File “/home/nikos/top\_block.py”, line 56, in **init**  
self.GetWin(),  
File  
“/usr/local/lib/python2.7/dist-packages/gnuradio/gr/hier\_block2.py”,  
line 93, in **getattr**  
return getattr(self.\_impl, name)  
AttributeError: ‘top\_block\_sptr’ object has no attribute ‘GetWin’

Is it still the case that I am missing some library, or it is installed  
elsewhere than it should?

Thank you again,  
Nikos

* * *

From: discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid  
[discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid] on  
behalf of Marcus M. [removed\_email\_address@domain.invalid]  
Sent: Wednesday, March 18, 2015 1:08 PM  
To: removed\_email\_address@domain.invalid  
Subject: Re: [Discuss-gnuradio] Run-time error while executing a simple  
flowgraph in GNU Radio companion

Ah well, in that case: it seems like you’ve successfully installed the  
block definition XML files to a place GRC can find them, but that does  
not apply to the library you’re missing now. If “sudo ldconfig” doesn’t  
help, make sure that  
make install

inside your gnuradio/build directory actually is successful. If you get  
errors about missing permissions, you might want to run the command via  
sudo:  
sudo make install

You might also want to have a look at  
gnuradio/build/install\_manifest.txt, which should list all the files  
that were installed. look for a line containing the library you’re  
missing – where did it get installed to? Where did, for example,  
gnuradio-companion get installed to? Is that the same as what “which  
gnuradio-companion” is telling you?

Best regards,  
Marcus

On 03/18/2015 01:01 PM, NIKOS BIZANIS wrote:  
Hi Marcus,

What I meant by “able to use”, was that I was able to find the blocks  
using the search facility and put the block to a flowgraph. I had not  
actually tried to build and execute a flowgraph containing any of these  
blocks, and now that I tried this was the result.

Greetings,  
Nikos

* * *

From:  
discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid[mailto:discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+n.bizanis=removed_email_address@domain.invalid)  
[discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid[mailto:discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+n.bizanis=removed_email_address@domain.invalid)]  
on behalf of Marcus M.  
[removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]  
Sent: Wednesday, March 18, 2015 12:48 PM  
To: removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: [Discuss-gnuradio] Run-time error while executing a simple  
flowgraph in GNU Radio companion

Hi Nikos,

you said earlier you were able to use WX widgets. Did you do something  
in between that and your system now not being able to find the  
libgnuradio-wxgui library?

Greetings,  
Marcus

On 03/18/2015 12:34 PM, NIKOS BIZANIS wrote:  
Hey all,

Just to start experimenting with GNU Radio and companion I just created  
a simple flowgraph consisting of a Signal Source Block and a WX GUI FFT  
Sink connected to it, to see if the diagram will be generated. I get a  
run-time error, namely:

Executing: “/home/nikos/top\_block.py”

Traceback (most recent call last):  
File “/home/nikos/top\_block.py”, line 12, in   
from gnuradio import wxgui  
File  
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/ **init**.py”,  
line 32, in   
from wxgui\_swig import \*  
File  
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/wxgui\_swig.py”,  
line 28, in   
\_wxgui\_swig = swig\_import\_helper()  
File  
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/wxgui\_swig.py”,  
line 24, in swig\_import\_helper  
\_mod = imp.load\_module(‘\_wxgui\_swig’, fp, pathname, description)  
ImportError: libgnuradio-wxgui-3.7.6.1.so.0.0.0: cannot open shared  
object file: No such file or directory

What could be wrong here?

Thank you,  
Nikos

* * *

Discuss-gnuradio mailing list  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[https://lists.gnu.org/mailman/listinfo/discuss-gnuradio](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

---

<div class="post-metadata">

**Author:** ![NIKOS\_BIZANIS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/dc4da7/32.png) [@NIKOS\_BIZANIS](https://www.ruby-forum.com/u/NIKOS_BIZANIS)\
**Post date:** [March 18, 2015, 2:31pm UTC](https://www.ruby-forum.com/t/run-time-error-while-executing-a-simple-flowgraph-in-gnu-radio-companion/234625/6 "2015-03-18T14:31:41Z")

</div>

As an update, I realized that in the “Options” block, “Generate Options”  
was not set to WX GUI so i set it. Now the WX GUI FFT Sink opens the Top  
Block, but nothing is displayed there, I can’t see any plot and it  
quickly fails. The only error message that I get is:

Warning: failed to XInitThreads()  
Using Volk machine: avx\_32\_mmx

Any ideas?

Thank you again,  
Nikos

* * *

From: discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid  
[discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid] on  
behalf of NIKOS BIZANIS [removed\_email\_address@domain.invalid]  
Sent: Wednesday, March 18, 2015 1:25 PM  
To: removed\_email\_address@domain.invalid  
Subject: Re: [Discuss-gnuradio] Run-time error while executing a simple  
flowgraph in GNU Radio companion

After running ldconfig I still get an error, but a somewhat different  
one:

Warning: failed to XInitThreads()  
Traceback (most recent call last):  
File “/home/nikos/top\_block.py”, line 105, in   
tb = top\_block()  
File “/home/nikos/top\_block.py”, line 56, in **init**  
self.GetWin(),  
File  
“/usr/local/lib/python2.7/dist-packages/gnuradio/gr/hier\_block2.py”,  
line 93, in **getattr**  
return getattr(self.\_impl, name)  
AttributeError: ‘top\_block\_sptr’ object has no attribute ‘GetWin’

Is it still the case that I am missing some library, or it is installed  
elsewhere than it should?

Thank you again,  
Nikos

* * *

From: discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid  
[discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid] on  
behalf of Marcus M. [removed\_email\_address@domain.invalid]  
Sent: Wednesday, March 18, 2015 1:08 PM  
To: removed\_email\_address@domain.invalid  
Subject: Re: [Discuss-gnuradio] Run-time error while executing a simple  
flowgraph in GNU Radio companion

Ah well, in that case: it seems like you’ve successfully installed the  
block definition XML files to a place GRC can find them, but that does  
not apply to the library you’re missing now. If “sudo ldconfig” doesn’t  
help, make sure that  
make install

inside your gnuradio/build directory actually is successful. If you get  
errors about missing permissions, you might want to run the command via  
sudo:  
sudo make install

You might also want to have a look at  
gnuradio/build/install\_manifest.txt, which should list all the files  
that were installed. look for a line containing the library you’re  
missing – where did it get installed to? Where did, for example,  
gnuradio-companion get installed to? Is that the same as what “which  
gnuradio-companion” is telling you?

Best regards,  
Marcus

On 03/18/2015 01:01 PM, NIKOS BIZANIS wrote:  
Hi Marcus,

What I meant by “able to use”, was that I was able to find the blocks  
using the search facility and put the block to a flowgraph. I had not  
actually tried to build and execute a flowgraph containing any of these  
blocks, and now that I tried this was the result.

Greetings,  
Nikos

* * *

From:  
discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid[mailto:discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+n.bizanis=removed_email_address@domain.invalid)  
[discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid[mailto:discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+n.bizanis=removed_email_address@domain.invalid)]  
on behalf of Marcus M.  
[removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]  
Sent: Wednesday, March 18, 2015 12:48 PM  
To: removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: [Discuss-gnuradio] Run-time error while executing a simple  
flowgraph in GNU Radio companion

Hi Nikos,

you said earlier you were able to use WX widgets. Did you do something  
in between that and your system now not being able to find the  
libgnuradio-wxgui library?

Greetings,  
Marcus

On 03/18/2015 12:34 PM, NIKOS BIZANIS wrote:  
Hey all,

Just to start experimenting with GNU Radio and companion I just created  
a simple flowgraph consisting of a Signal Source Block and a WX GUI FFT  
Sink connected to it, to see if the diagram will be generated. I get a  
run-time error, namely:

Executing: “/home/nikos/top\_block.py”

Traceback (most recent call last):  
File “/home/nikos/top\_block.py”, line 12, in   
from gnuradio import wxgui  
File  
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/ **init**.py”,  
line 32, in   
from wxgui\_swig import \*  
File  
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/wxgui\_swig.py”,  
line 28, in   
\_wxgui\_swig = swig\_import\_helper()  
File  
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/wxgui\_swig.py”,  
line 24, in swig\_import\_helper  
\_mod = imp.load\_module(‘\_wxgui\_swig’, fp, pathname, description)  
ImportError: libgnuradio-wxgui-3.7.6.1.so.0.0.0: cannot open shared  
object file: No such file or directory

What could be wrong here?

Thank you,  
Nikos

* * *

Discuss-gnuradio mailing list  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[https://lists.gnu.org/mailman/listinfo/discuss-gnuradio](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

---

<div class="post-metadata">

**Author:** ![NIKOS\_BIZANIS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/dc4da7/32.png) [@NIKOS\_BIZANIS](https://www.ruby-forum.com/u/NIKOS_BIZANIS)\
**Post date:** [March 18, 2015, 2:36pm UTC](https://www.ruby-forum.com/t/run-time-error-while-executing-a-simple-flowgraph-in-gnu-radio-companion/234625/7 "2015-03-18T14:36:51Z")

</div>

It seems you solved the issue yourself.  
Hm, that is strange. You’re not running this via SSH or something of the  
like?

Greetings,  
Marcus

---

<div class="post-metadata">

**Author:** ![NIKOS\_BIZANIS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/dc4da7/32.png) [@NIKOS\_BIZANIS](https://www.ruby-forum.com/u/NIKOS_BIZANIS)\
**Post date:** [March 18, 2015, 2:33pm UTC](https://www.ruby-forum.com/t/run-time-error-while-executing-a-simple-flowgraph-in-gnu-radio-companion/234625/8 "2015-03-18T14:33:24Z")

</div>

That is a good sign! This looks like you’re using WX widgets, but you  
haven’t set the build options to WX GUI (could be “No GUI” or “QT GUI”)  
in the options block in your GRC flow graph.

Greetings,  
Marcus

---

<div class="post-metadata">

**Author:** ![NIKOS\_BIZANIS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/dc4da7/32.png) [@NIKOS\_BIZANIS](https://www.ruby-forum.com/u/NIKOS_BIZANIS)\
**Post date:** [March 18, 2015, 2:41pm UTC](https://www.ruby-forum.com/t/run-time-error-while-executing-a-simple-flowgraph-in-gnu-radio-companion/234625/9 "2015-03-18T14:41:07Z")

</div>

Yes, that was the reason I was getting the run-time error. I did set the  
build options to WX GUI in the options block (it was set to QT GUI)  
previously, and now it runs. The problem is that when the window opens I  
can’t see any FFT plot, it is just a blank window, and I get the  
message:

Warning: failed to XInitThreads()  
Using Volk machine: avx\_32\_mmx

Greetings,  
Nikos

* * *

From: discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid  
[discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid] on  
behalf of Marcus M. [removed\_email\_address@domain.invalid]  
Sent: Wednesday, March 18, 2015 2:31 PM  
To: removed\_email\_address@domain.invalid  
Subject: Re: [Discuss-gnuradio] Run-time error while executing a simple  
flowgraph in GNU Radio companion

That is a good sign! This looks like you’re using WX widgets, but you  
haven’t set the build options to WX GUI (could be “No GUI” or “QT GUI”)  
in the options block in your GRC flow graph.

Greetings,  
Marcus

On 03/18/2015 01:25 PM, NIKOS BIZANIS wrote:  
After running ldconfig I still get an error, but a somewhat different  
one:

Warning: failed to XInitThreads()  
Traceback (most recent call last):  
File “/home/nikos/top\_block.py”, line 105, in   
tb = top\_block()  
File “/home/nikos/top\_block.py”, line 56, in **init**  
self.GetWin(),  
File  
“/usr/local/lib/python2.7/dist-packages/gnuradio/gr/hier\_block2.py”,  
line 93, in **getattr**  
return getattr(self.\_impl, name)  
AttributeError: ‘top\_block\_sptr’ object has no attribute ‘GetWin’

Is it still the case that I am missing some library, or it is installed  
elsewhere than it should?

Thank you again,  
Nikos

* * *

From:  
discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid[mailto:discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+n.bizanis=removed_email_address@domain.invalid)  
[discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid[mailto:discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+n.bizanis=removed_email_address@domain.invalid)]  
on behalf of Marcus M.  
[removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]  
Sent: Wednesday, March 18, 2015 1:08 PM  
To: removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: [Discuss-gnuradio] Run-time error while executing a simple  
flowgraph in GNU Radio companion

Ah well, in that case: it seems like you’ve successfully installed the  
block definition XML files to a place GRC can find them, but that does  
not apply to the library you’re missing now. If “sudo ldconfig” doesn’t  
help, make sure that  
make install

inside your gnuradio/build directory actually is successful. If you get  
errors about missing permissions, you might want to run the command via  
sudo:  
sudo make install

You might also want to have a look at  
gnuradio/build/install\_manifest.txt, which should list all the files  
that were installed. look for a line containing the library you’re  
missing – where did it get installed to? Where did, for example,  
gnuradio-companion get installed to? Is that the same as what “which  
gnuradio-companion” is telling you?

Best regards,  
Marcus

On 03/18/2015 01:01 PM, NIKOS BIZANIS wrote:  
Hi Marcus,

What I meant by “able to use”, was that I was able to find the blocks  
using the search facility and put the block to a flowgraph. I had not  
actually tried to build and execute a flowgraph containing any of these  
blocks, and now that I tried this was the result.

Greetings,  
Nikos

* * *

From:  
discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid[mailto:discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+n.bizanis=removed_email_address@domain.invalid)  
[discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid[mailto:discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+n.bizanis=removed_email_address@domain.invalid)]  
on behalf of Marcus M.  
[removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]  
Sent: Wednesday, March 18, 2015 12:48 PM  
To: removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: [Discuss-gnuradio] Run-time error while executing a simple  
flowgraph in GNU Radio companion

Hi Nikos,

you said earlier you were able to use WX widgets. Did you do something  
in between that and your system now not being able to find the  
libgnuradio-wxgui library?

Greetings,  
Marcus

On 03/18/2015 12:34 PM, NIKOS BIZANIS wrote:  
Hey all,

Just to start experimenting with GNU Radio and companion I just created  
a simple flowgraph consisting of a Signal Source Block and a WX GUI FFT  
Sink connected to it, to see if the diagram will be generated. I get a  
run-time error, namely:

Executing: “/home/nikos/top\_block.py”

Traceback (most recent call last):  
File “/home/nikos/top\_block.py”, line 12, in   
from gnuradio import wxgui  
File  
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/ **init**.py”,  
line 32, in   
from wxgui\_swig import \*  
File  
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/wxgui\_swig.py”,  
line 28, in   
\_wxgui\_swig = swig\_import\_helper()  
File  
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/wxgui\_swig.py”,  
line 24, in swig\_import\_helper  
\_mod = imp.load\_module(‘\_wxgui\_swig’, fp, pathname, description)  
ImportError: libgnuradio-wxgui-3.7.6.1.so.0.0.0: cannot open shared  
object file: No such file or directory

What could be wrong here?

Thank you,  
Nikos

* * *

Discuss-gnuradio mailing list  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[https://lists.gnu.org/mailman/listinfo/discuss-gnuradio](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

* * *

Discuss-gnuradio mailing list  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[https://lists.gnu.org/mailman/listinfo/discuss-gnuradio](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

---

<div class="post-metadata">

**Author:** ![NIKOS\_BIZANIS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/dc4da7/32.png) [@NIKOS\_BIZANIS](https://www.ruby-forum.com/u/NIKOS_BIZANIS)\
**Post date:** [March 18, 2015, 2:42pm UTC](https://www.ruby-forum.com/t/run-time-error-while-executing-a-simple-flowgraph-in-gnu-radio-companion/234625/10 "2015-03-18T14:42:51Z")

</div>

No I am running it in my machine, using a VM in VMWare player.

Greetings,  
Nikos

* * *

From: discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid  
[discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid] on  
behalf of NIKOS BIZANIS [removed\_email\_address@domain.invalid]  
Sent: Wednesday, March 18, 2015 2:38 PM  
To: removed\_email\_address@domain.invalid  
Subject: Re: [Discuss-gnuradio] Run-time error while executing a simple  
flowgraph in GNU Radio companion

Yes, that was the reason I was getting the run-time error. I did set the  
build options to WX GUI in the options block (it was set to QT GUI)  
previously, and now it runs. The problem is that when the window opens I  
can’t see any FFT plot, it is just a blank window, and I get the  
message:

Warning: failed to XInitThreads()  
Using Volk machine: avx\_32\_mmx

Greetings,  
Nikos

* * *

From: discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid  
[discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid] on  
behalf of Marcus M. [removed\_email\_address@domain.invalid]  
Sent: Wednesday, March 18, 2015 2:31 PM  
To: removed\_email\_address@domain.invalid  
Subject: Re: [Discuss-gnuradio] Run-time error while executing a simple  
flowgraph in GNU Radio companion

That is a good sign! This looks like you’re using WX widgets, but you  
haven’t set the build options to WX GUI (could be “No GUI” or “QT GUI”)  
in the options block in your GRC flow graph.

Greetings,  
Marcus

On 03/18/2015 01:25 PM, NIKOS BIZANIS wrote:  
After running ldconfig I still get an error, but a somewhat different  
one:

Warning: failed to XInitThreads()  
Traceback (most recent call last):  
File “/home/nikos/top\_block.py”, line 105, in   
tb = top\_block()  
File “/home/nikos/top\_block.py”, line 56, in **init**  
self.GetWin(),  
File  
“/usr/local/lib/python2.7/dist-packages/gnuradio/gr/hier\_block2.py”,  
line 93, in **getattr**  
return getattr(self.\_impl, name)  
AttributeError: ‘top\_block\_sptr’ object has no attribute ‘GetWin’

Is it still the case that I am missing some library, or it is installed  
elsewhere than it should?

Thank you again,  
Nikos

* * *

From:  
discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid[mailto:discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+n.bizanis=removed_email_address@domain.invalid)  
[discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid[mailto:discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+n.bizanis=removed_email_address@domain.invalid)]  
on behalf of Marcus M.  
[removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]  
Sent: Wednesday, March 18, 2015 1:08 PM  
To: removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: [Discuss-gnuradio] Run-time error while executing a simple  
flowgraph in GNU Radio companion

Ah well, in that case: it seems like you’ve successfully installed the  
block definition XML files to a place GRC can find them, but that does  
not apply to the library you’re missing now. If “sudo ldconfig” doesn’t  
help, make sure that  
make install

inside your gnuradio/build directory actually is successful. If you get  
errors about missing permissions, you might want to run the command via  
sudo:  
sudo make install

You might also want to have a look at  
gnuradio/build/install\_manifest.txt, which should list all the files  
that were installed. look for a line containing the library you’re  
missing – where did it get installed to? Where did, for example,  
gnuradio-companion get installed to? Is that the same as what “which  
gnuradio-companion” is telling you?

Best regards,  
Marcus

On 03/18/2015 01:01 PM, NIKOS BIZANIS wrote:  
Hi Marcus,

What I meant by “able to use”, was that I was able to find the blocks  
using the search facility and put the block to a flowgraph. I had not  
actually tried to build and execute a flowgraph containing any of these  
blocks, and now that I tried this was the result.

Greetings,  
Nikos

* * *

From:  
discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid[mailto:discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+n.bizanis=removed_email_address@domain.invalid)  
[discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid[mailto:discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+n.bizanis=removed_email_address@domain.invalid)]  
on behalf of Marcus M.  
[removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]  
Sent: Wednesday, March 18, 2015 12:48 PM  
To: removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: [Discuss-gnuradio] Run-time error while executing a simple  
flowgraph in GNU Radio companion

Hi Nikos,

you said earlier you were able to use WX widgets. Did you do something  
in between that and your system now not being able to find the  
libgnuradio-wxgui library?

Greetings,  
Marcus

On 03/18/2015 12:34 PM, NIKOS BIZANIS wrote:  
Hey all,

Just to start experimenting with GNU Radio and companion I just created  
a simple flowgraph consisting of a Signal Source Block and a WX GUI FFT  
Sink connected to it, to see if the diagram will be generated. I get a  
run-time error, namely:

Executing: “/home/nikos/top\_block.py”

Traceback (most recent call last):  
File “/home/nikos/top\_block.py”, line 12, in   
from gnuradio import wxgui  
File  
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/ **init**.py”,  
line 32, in   
from wxgui\_swig import \*  
File  
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/wxgui\_swig.py”,  
line 28, in   
\_wxgui\_swig = swig\_import\_helper()  
File  
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/wxgui\_swig.py”,  
line 24, in swig\_import\_helper  
\_mod = imp.load\_module(‘\_wxgui\_swig’, fp, pathname, description)  
ImportError: libgnuradio-wxgui-3.7.6.1.so.0.0.0: cannot open shared  
object file: No such file or directory

What could be wrong here?

Thank you,  
Nikos

* * *

Discuss-gnuradio mailing list  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[https://lists.gnu.org/mailman/listinfo/discuss-gnuradio](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

* * *

Discuss-gnuradio mailing list  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[https://lists.gnu.org/mailman/listinfo/discuss-gnuradio](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

---

<div class="post-metadata">

**Author:** ![NIKOS\_BIZANIS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/dc4da7/32.png) [@NIKOS\_BIZANIS](https://www.ruby-forum.com/u/NIKOS_BIZANIS)\
**Post date:** [March 18, 2015, 3:46pm UTC](https://www.ruby-forum.com/t/run-time-error-while-executing-a-simple-flowgraph-in-gnu-radio-companion/234625/11 "2015-03-18T15:46:47Z")

</div>

Hm, then the empty window usually indicates there’s not enough samples  
that have reached your graphical sink at all, _or_ there’s something odd  
with OpenGL in your VM.

---

<div class="post-metadata">

**Author:** ![NIKOS\_BIZANIS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/dc4da7/32.png) [@NIKOS\_BIZANIS](https://www.ruby-forum.com/u/NIKOS_BIZANIS)\
**Post date:** [March 18, 2015, 3:57pm UTC](https://www.ruby-forum.com/t/run-time-error-while-executing-a-simple-flowgraph-in-gnu-radio-companion/234625/12 "2015-03-18T15:57:48Z")

</div>

Well I made some tests and I can verify that there seems to be nothing  
wrong with OpenGL in my VM, so I don’t have a clue why I can’t see any  
results.

* * *

From: discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid  
[discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid] on  
behalf of Marcus M. [removed\_email\_address@domain.invalid]  
Sent: Wednesday, March 18, 2015 3:44 PM  
To: removed\_email\_address@domain.invalid  
Subject: Re: [Discuss-gnuradio] Run-time error while executing a simple  
flowgraph in GNU Radio companion

Hm, then the empty window usually indicates there’s not enough samples  
that have reached your graphical sink at all, _or_ there’s something odd  
with OpenGL in your VM.

On 03/18/2015 02:41 PM, NIKOS BIZANIS wrote:  
No I am running it in my machine, using a VM in VMWare player.

Greetings,  
Nikos

* * *

From:  
discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid[mailto:discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+n.bizanis=removed_email_address@domain.invalid)  
[discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid[mailto:discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+n.bizanis=removed_email_address@domain.invalid)]  
on behalf of NIKOS BIZANIS  
[removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]  
Sent: Wednesday, March 18, 2015 2:38 PM  
To: removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: [Discuss-gnuradio] Run-time error while executing a simple  
flowgraph in GNU Radio companion

Yes, that was the reason I was getting the run-time error. I did set the  
build options to WX GUI in the options block (it was set to QT GUI)  
previously, and now it runs. The problem is that when the window opens I  
can’t see any FFT plot, it is just a blank window, and I get the  
message:

Warning: failed to XInitThreads()  
Using Volk machine: avx\_32\_mmx

Greetings,  
Nikos

* * *

From:  
discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid[mailto:discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+n.bizanis=removed_email_address@domain.invalid)  
[discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid[mailto:discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+n.bizanis=removed_email_address@domain.invalid)]  
on behalf of Marcus M.  
[removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]  
Sent: Wednesday, March 18, 2015 2:31 PM  
To: removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: [Discuss-gnuradio] Run-time error while executing a simple  
flowgraph in GNU Radio companion

That is a good sign! This looks like you’re using WX widgets, but you  
haven’t set the build options to WX GUI (could be “No GUI” or “QT GUI”)  
in the options block in your GRC flow graph.

Greetings,  
Marcus

On 03/18/2015 01:25 PM, NIKOS BIZANIS wrote:  
After running ldconfig I still get an error, but a somewhat different  
one:

Warning: failed to XInitThreads()  
Traceback (most recent call last):  
File “/home/nikos/top\_block.py”, line 105, in   
tb = top\_block()  
File “/home/nikos/top\_block.py”, line 56, in **init**  
self.GetWin(),  
File  
“/usr/local/lib/python2.7/dist-packages/gnuradio/gr/hier\_block2.py”,  
line 93, in **getattr**  
return getattr(self.\_impl, name)  
AttributeError: ‘top\_block\_sptr’ object has no attribute ‘GetWin’

Is it still the case that I am missing some library, or it is installed  
elsewhere than it should?

Thank you again,  
Nikos

* * *

From:  
discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid[mailto:discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+n.bizanis=removed_email_address@domain.invalid)  
[discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid[mailto:discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+n.bizanis=removed_email_address@domain.invalid)]  
on behalf of Marcus M.  
[removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]  
Sent: Wednesday, March 18, 2015 1:08 PM  
To: removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: [Discuss-gnuradio] Run-time error while executing a simple  
flowgraph in GNU Radio companion

Ah well, in that case: it seems like you’ve successfully installed the  
block definition XML files to a place GRC can find them, but that does  
not apply to the library you’re missing now. If “sudo ldconfig” doesn’t  
help, make sure that  
make install

inside your gnuradio/build directory actually is successful. If you get  
errors about missing permissions, you might want to run the command via  
sudo:  
sudo make install

You might also want to have a look at  
gnuradio/build/install\_manifest.txt, which should list all the files  
that were installed. look for a line containing the library you’re  
missing – where did it get installed to? Where did, for example,  
gnuradio-companion get installed to? Is that the same as what “which  
gnuradio-companion” is telling you?

Best regards,  
Marcus

On 03/18/2015 01:01 PM, NIKOS BIZANIS wrote:  
Hi Marcus,

What I meant by “able to use”, was that I was able to find the blocks  
using the search facility and put the block to a flowgraph. I had not  
actually tried to build and execute a flowgraph containing any of these  
blocks, and now that I tried this was the result.

Greetings,  
Nikos

* * *

From:  
discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid[mailto:discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+n.bizanis=removed_email_address@domain.invalid)  
[discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid[mailto:discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+n.bizanis=removed_email_address@domain.invalid)]  
on behalf of Marcus M.  
[removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]  
Sent: Wednesday, March 18, 2015 12:48 PM  
To: removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: [Discuss-gnuradio] Run-time error while executing a simple  
flowgraph in GNU Radio companion

Hi Nikos,

you said earlier you were able to use WX widgets. Did you do something  
in between that and your system now not being able to find the  
libgnuradio-wxgui library?

Greetings,  
Marcus

On 03/18/2015 12:34 PM, NIKOS BIZANIS wrote:  
Hey all,

Just to start experimenting with GNU Radio and companion I just created  
a simple flowgraph consisting of a Signal Source Block and a WX GUI FFT  
Sink connected to it, to see if the diagram will be generated. I get a  
run-time error, namely:

Executing: “/home/nikos/top\_block.py”

Traceback (most recent call last):  
File “/home/nikos/top\_block.py”, line 12, in   
from gnuradio import wxgui  
File  
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/ **init**.py”,  
line 32, in   
from wxgui\_swig import \*  
File  
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/wxgui\_swig.py”,  
line 28, in   
\_wxgui\_swig = swig\_import\_helper()  
File  
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/wxgui\_swig.py”,  
line 24, in swig\_import\_helper  
\_mod = imp.load\_module(‘\_wxgui\_swig’, fp, pathname, description)  
ImportError: libgnuradio-wxgui-3.7.6.1.so.0.0.0: cannot open shared  
object file: No such file or directory

What could be wrong here?

Thank you,  
Nikos

* * *

Discuss-gnuradio mailing list  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[https://lists.gnu.org/mailman/listinfo/discuss-gnuradio](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

* * *

Discuss-gnuradio mailing list  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[https://lists.gnu.org/mailman/listinfo/discuss-gnuradio](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

* * *

Discuss-gnuradio mailing list  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[https://lists.gnu.org/mailman/listinfo/discuss-gnuradio](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

---

<div class="post-metadata">

**Author:** ![NIKOS\_BIZANIS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/dc4da7/32.png) [@NIKOS\_BIZANIS](https://www.ruby-forum.com/u/NIKOS_BIZANIS)\
**Post date:** [March 18, 2015, 4:15pm UTC](https://www.ruby-forum.com/t/run-time-error-while-executing-a-simple-flowgraph-in-gnu-radio-companion/234625/13 "2015-03-18T16:15:39Z")

</div>

Can you not try the QT sinks?  
If you want to stick with wxgui,  
You can try the old trick of disabling OpenGL. Make and edit  
~/.gnuradio/config.conf and add the lines:

[wxgui]  
style = nongl

Method courtesy of Tom,  
[Re: [Discuss-gnuradio] WX GUI Scope frozen and error-msg gr\_vmcircbuf\_de](http://lists.gnu.org/archive/html//discuss-gnuradio/2013-07/msg00426.html).

Greetings,  
Marcus

---

<div class="post-metadata">

**Author:** ![NIKOS\_BIZANIS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/dc4da7/32.png) [@NIKOS\_BIZANIS](https://www.ruby-forum.com/u/NIKOS_BIZANIS)\
**Post date:** [March 18, 2015, 4:58pm UTC](https://www.ruby-forum.com/t/run-time-error-while-executing-a-simple-flowgraph-in-gnu-radio-companion/234625/14 "2015-03-18T16:58:20Z")

</div>

Well I actually discovered that the Python OpenGL bindings were non  
functional for some reason, so my solution was just to install the  
python-opengl package, and now it works perfectly. Thanks a lot for  
pointing me at the right direction once again Marcus!

Best regards,  
Nikos

* * *

From: discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid  
[discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid] on  
behalf of Marcus M. [removed\_email\_address@domain.invalid]  
Sent: Wednesday, March 18, 2015 4:13 PM  
To: removed\_email\_address@domain.invalid  
Subject: Re: [Discuss-gnuradio] Run-time error while executing a simple  
flowgraph in GNU Radio companion

Can you not try the QT sinks?  
If you want to stick with wxgui,  
You can try the old trick of disabling OpenGL. Make and edit  
~/.gnuradio/config.conf and add the lines:

[wxgui]  
style = nongl

Method courtesy of Tom,  
[Re: [Discuss-gnuradio] WX GUI Scope frozen and error-msg gr\_vmcircbuf\_de](http://lists.gnu.org/archive/html//discuss-gnuradio/2013-07/msg00426.html).

Greetings,  
Marcus  
On 03/18/2015 03:56 PM, NIKOS BIZANIS wrote:  
Well I made some tests and I can verify that there seems to be nothing  
wrong with OpenGL in my VM, so I don’t have a clue why I can’t see any  
results.

* * *

From:  
discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid[mailto:discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+n.bizanis=removed_email_address@domain.invalid)  
[discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid[mailto:discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+n.bizanis=removed_email_address@domain.invalid)]  
on behalf of Marcus M.  
[removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]  
Sent: Wednesday, March 18, 2015 3:44 PM  
To: removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: [Discuss-gnuradio] Run-time error while executing a simple  
flowgraph in GNU Radio companion

Hm, then the empty window usually indicates there’s not enough samples  
that have reached your graphical sink at all, _or_ there’s something odd  
with OpenGL in your VM.

On 03/18/2015 02:41 PM, NIKOS BIZANIS wrote:  
No I am running it in my machine, using a VM in VMWare player.

Greetings,  
Nikos

* * *

From:  
discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid[mailto:discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+n.bizanis=removed_email_address@domain.invalid)  
[discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid[mailto:discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+n.bizanis=removed_email_address@domain.invalid)]  
on behalf of NIKOS BIZANIS  
[removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]  
Sent: Wednesday, March 18, 2015 2:38 PM  
To: removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: [Discuss-gnuradio] Run-time error while executing a simple  
flowgraph in GNU Radio companion

Yes, that was the reason I was getting the run-time error. I did set the  
build options to WX GUI in the options block (it was set to QT GUI)  
previously, and now it runs. The problem is that when the window opens I  
can’t see any FFT plot, it is just a blank window, and I get the  
message:

Warning: failed to XInitThreads()  
Using Volk machine: avx\_32\_mmx

Greetings,  
Nikos

* * *

From:  
discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid[mailto:discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+n.bizanis=removed_email_address@domain.invalid)  
[discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid[mailto:discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+n.bizanis=removed_email_address@domain.invalid)]  
on behalf of Marcus M.  
[removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]  
Sent: Wednesday, March 18, 2015 2:31 PM  
To: removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: [Discuss-gnuradio] Run-time error while executing a simple  
flowgraph in GNU Radio companion

That is a good sign! This looks like you’re using WX widgets, but you  
haven’t set the build options to WX GUI (could be “No GUI” or “QT GUI”)  
in the options block in your GRC flow graph.

Greetings,  
Marcus

On 03/18/2015 01:25 PM, NIKOS BIZANIS wrote:  
After running ldconfig I still get an error, but a somewhat different  
one:

Warning: failed to XInitThreads()  
Traceback (most recent call last):  
File “/home/nikos/top\_block.py”, line 105, in   
tb = top\_block()  
File “/home/nikos/top\_block.py”, line 56, in **init**  
self.GetWin(),  
File  
“/usr/local/lib/python2.7/dist-packages/gnuradio/gr/hier\_block2.py”,  
line 93, in **getattr**  
return getattr(self.\_impl, name)  
AttributeError: ‘top\_block\_sptr’ object has no attribute ‘GetWin’

Is it still the case that I am missing some library, or it is installed  
elsewhere than it should?

Thank you again,  
Nikos

* * *

From:  
discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid[mailto:discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+n.bizanis=removed_email_address@domain.invalid)  
[discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid[mailto:discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+n.bizanis=removed_email_address@domain.invalid)]  
on behalf of Marcus M.  
[removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]  
Sent: Wednesday, March 18, 2015 1:08 PM  
To: removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: [Discuss-gnuradio] Run-time error while executing a simple  
flowgraph in GNU Radio companion

Ah well, in that case: it seems like you’ve successfully installed the  
block definition XML files to a place GRC can find them, but that does  
not apply to the library you’re missing now. If “sudo ldconfig” doesn’t  
help, make sure that  
make install

inside your gnuradio/build directory actually is successful. If you get  
errors about missing permissions, you might want to run the command via  
sudo:  
sudo make install

You might also want to have a look at  
gnuradio/build/install\_manifest.txt, which should list all the files  
that were installed. look for a line containing the library you’re  
missing – where did it get installed to? Where did, for example,  
gnuradio-companion get installed to? Is that the same as what “which  
gnuradio-companion” is telling you?

Best regards,  
Marcus

On 03/18/2015 01:01 PM, NIKOS BIZANIS wrote:  
Hi Marcus,

What I meant by “able to use”, was that I was able to find the blocks  
using the search facility and put the block to a flowgraph. I had not  
actually tried to build and execute a flowgraph containing any of these  
blocks, and now that I tried this was the result.

Greetings,  
Nikos

* * *

From:  
discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid[mailto:discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+n.bizanis=removed_email_address@domain.invalid)  
[discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid[mailto:discuss-gnuradio-bounces+n.bizanis=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+n.bizanis=removed_email_address@domain.invalid)]  
on behalf of Marcus M.  
[removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]  
Sent: Wednesday, March 18, 2015 12:48 PM  
To: removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: [Discuss-gnuradio] Run-time error while executing a simple  
flowgraph in GNU Radio companion

Hi Nikos,

you said earlier you were able to use WX widgets. Did you do something  
in between that and your system now not being able to find the  
libgnuradio-wxgui library?

Greetings,  
Marcus

On 03/18/2015 12:34 PM, NIKOS BIZANIS wrote:  
Hey all,

Just to start experimenting with GNU Radio and companion I just created  
a simple flowgraph consisting of a Signal Source Block and a WX GUI FFT  
Sink connected to it, to see if the diagram will be generated. I get a  
run-time error, namely:

Executing: “/home/nikos/top\_block.py”

Traceback (most recent call last):  
File “/home/nikos/top\_block.py”, line 12, in   
from gnuradio import wxgui  
File  
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/ **init**.py”,  
line 32, in   
from wxgui\_swig import \*  
File  
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/wxgui\_swig.py”,  
line 28, in   
\_wxgui\_swig = swig\_import\_helper()  
File  
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/wxgui\_swig.py”,  
line 24, in swig\_import\_helper  
\_mod = imp.load\_module(‘\_wxgui\_swig’, fp, pathname, description)  
ImportError: libgnuradio-wxgui-3.7.6.1.so.0.0.0: cannot open shared  
object file: No such file or directory

What could be wrong here?

Thank you,  
Nikos

* * *

Discuss-gnuradio mailing list  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[https://lists.gnu.org/mailman/listinfo/discuss-gnuradio](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

* * *

Discuss-gnuradio mailing list  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[https://lists.gnu.org/mailman/listinfo/discuss-gnuradio](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

* * *

Discuss-gnuradio mailing list  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[https://lists.gnu.org/mailman/listinfo/discuss-gnuradio](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

* * *

Discuss-gnuradio mailing list  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[https://lists.gnu.org/mailman/listinfo/discuss-gnuradio](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)
