[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Problem with dial_tone.py
From: |
Muhammad Rosli |
Subject: |
Re: [Discuss-gnuradio] Problem with dial_tone.py |
Date: |
Sat, 3 Dec 2011 08:43:12 +1300 |
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/<python version>/dist-packages
or
export PYTHONPATH=/usr/local/lib/<python version>/site-packages
where <python version> 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
On Sat, Dec 3, 2011 at 7:54 AM, Cyril Cavel
<address@hidden> wrote:
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 :
address@hidden:/usr/local/share/gnuradio/examples/audio$ python dial_tone.py
to test correct installation of Gnuradio. I got the following error :
address@hidden:/usr/local/share/gnuradio/examples/audio$ python dial_tone.py
Traceback (most recent call last):
File "dial_tone.py", line 23, in <module>
from gnuradio import gr
File "/usr/local/lib/python2.6/dist-packages/gnuradio/gr/__init__.py", line 43, in <module>
from gnuradio_core import *
File "/usr/local/lib/python2.6/dist-packages/gnuradio/gr/gnuradio_core.py", line 23, in <module>
from gnuradio_core_runtime import *
File "/usr/local/lib/python2.6/dist-packages/gnuradio/gr/gnuradio_core_runtime.py", line 24, in <module>
_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
_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
--
Regards,Muhammad b Rosli
StudentBachelor of Electrical and Electronic
University of Canterbury