# Problem with dial\_tone.py

**URL:** <https://www.ruby-forum.com/t/problem-with-dial-tone-py/214480>\
**Category:** GNU Radio\
**Created:** [December 2, 2011, 7:55pm UTC](https://www.ruby-forum.com/t/problem-with-dial-tone-py/214480 "2011-12-02T19:55:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [December 2, 2011, 7:55pm UTC](https://www.ruby-forum.com/t/problem-with-dial-tone-py/214480/1 "2011-12-02T19:55:25Z")

</div>

Hello,

I installed Gnuradio on Ubuntu 10\_04, following instructions on :  
[http://gnuradio.org/redmine/projects/gnuradio/wiki/UbuntuInstall](http://gnuradio.org/redmine/projects/gnuradio/wiki/UbuntuInstall)

Everything seems to be ok until I try :  
sat-ais@sat-ais-laptop:/usr/local/share/gnuradio/examples/audio$ python  
dial\_tone.py

to test correct installation of Gnuradio. I got the following error :

sat-ais@sat-ais-laptop:/usr/local/share/gnuradio/examples/audio$ python  
dial\_tone.py  
Traceback (most recent call last):  
File “dial\_tone.py”, line 23, in   
from gnuradio import gr  
File “/usr/local/lib/python2.6/dist-packages/gnuradio/gr/ **init**.py”,  
line 43, in   
from gnuradio\_core import \*  
File  
“/usr/local/lib/python2.6/dist-packages/gnuradio/gr/gnuradio\_core.py”,  
line  
23, in   
from gnuradio\_core\_runtime import \*  
File  
“/usr/local/lib/python2.6/dist-packages/gnuradio/gr/gnuradio\_core\_runtime.py”,  
line 24, in   
\_gnuradio\_core\_runtime = swig\_import\_helper()  
File  
“/usr/local/lib/python2.6/dist-packages/gnuradio/gr/gnuradio\_core\_runtime.py”,  
line 20, in swig\_import\_helper  
\_mod = imp.load\_module(‘\_gnuradio\_core\_runtime’, fp, pathname,  
description)  
ImportError: libgnuradio-core-3.5.0rc0.so.0: cannot open shared object  
file: No such file or directory

Does anybody know what the problem is please ?  
I have to say that I’m a beginner on Linux, I already successfully built  
Gnuradio on Windows using Cygwin, and now I need to install it on  
Ubuntu.

Thanks a million for your help.

Cyril

---

<div class="post-metadata">

**Author:** ![cguirguis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f08c70/32.png) [@cguirguis](https://www.ruby-forum.com/u/cguirguis)\
**Post date:** [December 2, 2011, 8:44pm UTC](https://www.ruby-forum.com/t/problem-with-dial-tone-py/214480/2 "2011-12-02T20:44:15Z")

</div>

Hi,

It’s because gnuradio cannot find your share file. Try to set  
environment  
variable of LD\_LIBRARY\_PATH and PYTHONPATH. For example, if you are  
installing gnuradio using default setting, you can setup the environment  
path in terminal as follow

export LD\_LIBRARY\_PATH=/usr/local/lib  
export PYTHONPATH=/usr/local/lib//dist-packages  
or  
export PYTHONPATH=/usr/local/lib//site-packages

where depends on what python version is installed.

Before you set the environment path, please check  
that libgnuradio-core-3.5.0rc0.so.0 is in /usr/local/lib and there are  
gnuradio folder inside the python path.

Regards,  
Muhammad

---

<div class="post-metadata">

**Author:** ![cguirguis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f08c70/32.png) [@cguirguis](https://www.ruby-forum.com/u/cguirguis)\
**Post date:** [December 4, 2011, 3:44pm UTC](https://www.ruby-forum.com/t/problem-with-dial-tone-py/214480/3 "2011-12-04T15:44:20Z")

</div>

Hi Muhammad,

You’re right, now it’s working.  
Thank you so much.

Regards,  
Cyril

2011/12/2 Muhammad R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
