# Segmentation fault executing gnuradio-companion

**URL:** <https://www.ruby-forum.com/t/segmentation-fault-executing-gnuradio-companion/242509>\
**Category:** GNU Radio\
**Created:** [June 29, 2015, 1:07pm UTC](https://www.ruby-forum.com/t/segmentation-fault-executing-gnuradio-companion/242509 "2015-06-29T13:07:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [June 29, 2015, 1:07pm UTC](https://www.ruby-forum.com/t/segmentation-fault-executing-gnuradio-companion/242509/1 "2015-06-29T13:07:57Z")

</div>

Greetings GnuRadio community  
For a week now i am trying to install gnuradio on Ubuntu 14.04. I use  
the command to fetch the script

wget [http://www.sbrac.org/files/build-gnuradio](http://www.sbrac.org/files/build-gnuradio) && chmod a+x  
./build-gnuradio & ./build-gnuradioand after 5 (!!!) hours it  
finishes succesfully. After that i set the PYTHONPATH as it is directed  
after the completion of the installation  
export PYTHONPATH=/usr/local/lib/python2.7/dist-packages

Then i execute gnuradio-companion and i get a segmentation fault. I  
traced the fault using gdb and the following commands  
gdb --args python $(which gnuradio-companion)(gdb) run  
(gbd) bt  
As a result i get the detailed trace that is attached. Below i pasted  
the lines of the trace that shows the error. It seems that it cannot  
import gnuradio because the because the PYTHONPATH is not correct. This  
drives me crazy because i am sure that the PYTHONPATH is correct.  
#94 0x080a9728 in PyRun\_FileExFlags (fp=fp@entry=0x837bc38,  
filename=filename@entry=0xbffff267 “/usr/local/bin/gnuradio-companion”,  
start=start@entry=257,  
globals=globals@entry={‘GPollableInputStream’: \<type at remote  
0xb7a723dc\>, ‘main’: \<function at remote 0xb6788994\>,  
‘get\_source\_tree\_root’: \<function at remote 0xb678895c\>,  
‘show\_gtk\_error\_dialog’: \<function at remote 0xb7c8ab1c\>,  
‘ **builtins** ’: \<module at remote 0xb7d4311c\>, ‘check\_gnuradio\_import’:  
\<function at remote 0xb678864c\>, ‘ **file** ’:  
‘/usr/local/bin/gnuradio-companion’, ‘gtk’: \<module at remote  
0xb7a4e56c\>, ‘pygtk’: \<module at remote 0xb7c8d9a4\>, ‘ **package** ’:  
None, ‘sys’: \<module at remote 0xb7d432e4\>, ‘optparse’: \<module at  
remote 0xb7c8df2c\>, ‘GR\_IMPORT\_ERROR\_MESSAGE’: ‘Cannot import  
gnuradio.\n\nIs the python path environment variable set correctly?\n  
All OS: PYTHONPATH\n\nIs the library path environment variable set  
correctly?\n Linux: LD\_LIBRARY\_PATH\n Windows: PATH\n  
MacOSX:—Type to continue, or q to quit—  
DYLD\_LIBRARY\_PATH\n’, ‘VERSION\_AND\_DISCLAIMER\_TEMPLATE’: ‘GNU Radio  
Companion %s\n\nThis program is part of GNU Radio\nGRC comes with  
ABSOLUTELY NO WARRANTY.\nThis is free software, and you are welcome to  
redistribute it.\n’, '…(truncated),  
locals=locals@entry={‘GPollableInputStream’: \<type at remote  
0xb7a723dc\>, ‘main’: \<function at remote 0xb6788994\>,  
‘get\_source\_tree\_root’: \<function at remote 0xb678895c\>,  
‘show\_gtk\_error\_dialog’: \<function at remote 0xb7c8ab1c\>,  
‘ **builtins** ’: \<module at remote 0xb7d4311c\>, ‘check\_gnuradio\_import’:  
\<function at remote 0xb678864c\>, ‘ **file** ’:  
‘/usr/local/bin/gnuradio-companion’, ‘gtk’: \<module at remote  
0xb7a4e56c\>, ‘pygtk’: \<module at remote 0xb7c8d9a4\>, ‘ **package** ’:  
None, ‘sys’: \<module at remote 0xb7d432e4\>, ‘optparse’: \<module at  
remote 0xb7c8df2c\>, ‘GR\_IMPORT\_ERROR\_MESSAGE’: ‘Cannot import  
gnuradio.\n\nIs the python path environment variable set correctly?\n  
All OS: PYTHONPATH\n\nIs the library path environment variable set  
correctly?\n Linux: LD\_LIBRARY\_PATH\n Windows: PATH\n MacOSX:  
DYLD\_LIBRARY\_PATH\n’, ‘VERSION\_AND\_DISCLAIMER\_TEMPLATE’: ‘GNU Radio  
Companion %s\n\nThis program is part of GNU Radio\nGRC comes with  
ABSOLUTELY NO WARRANTY.\nThis is free software, and you are welcome to  
redistribute it.\n’, '…(truncated), closeit=closeit@entry=1,  
flags=flags@entry=0xbfffef2c) at …/Python/pythonrun.c:1356  
#95 0x080aa008 in PyRun\_SimpleFileExFlags (fp=0x837bc38,  
filename=, closeit=1, flags=0xbfffef2c)  
at …/Python/pythonrun.c:948  
#96 0x080aa0fb in PyRun\_AnyFileExFlags (fp=fp@entry=0x837bc38,  
filename=,  
filename@entry=0xbffff267 “/usr/local/bin/gnuradio-companion”,  
closeit=closeit@entry=1, flags=flags@entry=0xbfffef2c)  
at …/Python/pythonrun.c:752  
#97 0x080aad65 in Py\_Main (argc=argc@entry=2,  
argv=argv@entry=0xbffff064) at …/Modules/main.c:640  
#98 0x080aae44 in main (argc=2, argv=0xbffff064) at  
…/Modules/python.c:23  
Can anyone help with this? I tried everything i could and i am  
desperate!!

Minas
