Problem with dial_tone.py

Hello,

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

Everything seems to be ok until I try :
[email protected]:/usr/local/share/gnuradio/examples/audio$ python
dial_tone.py

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

[email protected]:/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

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

Hi Muhammad,

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

Regards,
Cyril

2011/12/2 Muhammad R. [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs