No module named _gnuradio_swig_python


#1

I have installed gnuaradio-3.0.4 on fedora core7.The installation is
complete and whenever i run make check command inget the following
error:
make[5]: Leaving directory
/home/jay/Desktop/GSM/gnuradio-3.0.2/gnuradio-core/src/lib/reed-solomon' make[4]: Leaving directory/home/jay/Desktop/GSM/gnuradio-3.0.2/gnuradio-core/src/lib/reed-solomon’
Making check in omnithread
make[4]: Entering directory
/home/jay/Desktop/GSM/gnuradio-3.0.2/gnuradio-core/src/lib/omnithread' make[4]: Nothing to be done forcheck’.
make[4]: Leaving directory
/home/jay/Desktop/GSM/gnuradio-3.0.2/gnuradio-core/src/lib/omnithread' Making check in io make[4]: Entering directory/home/jay/Desktop/GSM/gnuradio-3.0.2/gnuradio-core/src/lib/io’
make[4]: Nothing to be done for check'. make[4]: Leaving directory/home/jay/Desktop/GSM/gnuradio-3.0.2/gnuradio-core/src/lib/io’
Making check in .
make[4]: Entering directory
/home/jay/Desktop/GSM/gnuradio-3.0.2/gnuradio-core/src/lib' make[4]: Nothing to be done forcheck-am’.
make[4]: Leaving directory
/home/jay/Desktop/GSM/gnuradio-3.0.2/gnuradio-core/src/lib' Making check in swig make[4]: Entering directory/home/jay/Desktop/GSM/gnuradio-3.0.2/gnuradio-core/src/lib/swig’
make check-am
make[5]: Entering directory
/home/jay/Desktop/GSM/gnuradio-3.0.2/gnuradio-core/src/lib/swig' make[5]: Nothing to be done forcheck-am’.
make[5]: Leaving directory
/home/jay/Desktop/GSM/gnuradio-3.0.2/gnuradio-core/src/lib/swig' make[4]: Leaving directory/home/jay/Desktop/GSM/gnuradio-3.0.2/gnuradio-core/src/lib/swig’
make[3]: Leaving directory
/home/jay/Desktop/GSM/gnuradio-3.0.2/gnuradio-core/src/lib' Making check in tests make[3]: Entering directory/home/jay/Desktop/GSM/gnuradio-3.0.2/gnuradio-core/src/tests’
make check-TESTS
make[4]: Entering directory
`/home/jay/Desktop/GSM/gnuradio-3.0.2/gnuradio-core/src/tests’
/home/jay/Desktop/GSM/gnuradio-3.0.2/gnuradio-core/src/tests/.libs/lt-test_all:
error while loading shared libraries:
/home/jay/Desktop/GSM/gnuradio-3.0.2/gnuradio-core/src/lib/.libs/libgnuradio-core.0:
cannot restore segment prot after reloc: Permission denied
FAIL: test_all

1 of 1 tests failed

gnuradio-3.0.4 is working fine,even i have loaded the firmware on FPGA of the usrp.Its working allright.But when i try to run ./usrp_fft.py
from the directory
/home/jay/Desktop/GSM/gnuradio-3.0.4/gnuradio-examples/python/usrp/ i
get the following error:

Traceback (most recent call last):
File “./usrp_fft.py”, line 23, in ?
from gnuradio import gr, gru
File “/usr/local/lib/python2.4/site-packages/gnuradio/gr/init.py”,
line 27, in ?
from gnuradio_swig_python import *
File
“/usr/local/lib/python2.4/site-packages/gnuradio/gr/gnuradio_swig_python.py”,
line 6, in ?
import _gnuradio_swig_python
ImportError: No module named _gnuradio_swig_python

But however when i manually put the _gnuradio_swig_python.so in the
searching directory ,i get the follwoing error:
Import Error: cannot open libossaudio.so.0 from shared library.No such
file or directory found.

Plz help me.I m very new to gnuradio installation.

Thanks in advance.


#2

On Mon, Mar 09, 2009 at 08:09:32AM +0100, Jaskirat Singh wrote:

I have installed gnuaradio-3.0.4 on fedora core7.The installation is
complete and whenever i run make check command inget the following
error:

First off, is there any reason you’re trying to install ancient GR code?
If not, please start with:

ftp://ftp.gnu.org/gnu/gnuradio/gnuradio-3.1.3.tar.gz

The read and follow these directions:

http://gnuradio.org/trac/wiki/FedoraInstall

See http://gnuradio.org/trac/wiki/ReportingErrors
for suggestions on asking questions, searching for answers, etc.

Eric


#3

Hello Eric,
I have already tried installing gnuradio-3.1.3 but there were certain
bugs in that.So I had to go with gnuradio-3.0.2 and later upgraded to
3.0.4.Even the “Hello World” example is working fine,but when i try to
run any of the usrp examples i.e usrp_fft.py i get the error message of
“No module named _gnuradio_swig_python” .

I have _gnuradio_swig_python.la,_gnuradio_swig_python.so file only .If
i link with _gnuradio_swig.python.so I start getting error message of
“no libossaudio.so.0 file or directory”

Which _gnuradio_swig_python module should be linked inorder to remove
the error message.I am very badly stucked in this problem and also I am
very new to gnuradio.

So,kindly help me out.

Thanks


#4

On Tue, Mar 10, 2009 at 05:59:15AM +0100, Jay K. wrote:

Hello Eric,
I have already tried installing gnuradio-3.1.3 but there were certain
bugs in that.

I definitely wouldn’t go back to anything before 3.1.3.

Are you sure you don’t have some partial GNU Radio installations
laying around? Did you try installing the old GNU Radio Debian
packages? If so remove them. I suggest removing all traces of GNU
Radio from your system, then starting over with a clean installation
of 3.1.3.

Not to belabor a point, but have you actually followed the
instructions in:

http://gnuradio.org/trac/wiki/BuildGuide
http://gnuradio.org/trac/wiki/UbuntuInstall

If you’re not on Ubuntu, see your distribution-specific instructions
linked off of the BuildGuide.

Eric