No module named gnuradio

Hello,
I have recently installed gnuradio-3.1.3 on Red Hat Enterprise Linux
4.I can even load the firmware on the usrp using ./test_usrp_standard_tx
.But after the loading of the firmware whenever i try to run the
./usrp.oscope.py program I get the “No module named gnuradio” error.

[root@localhost python]# ./usrp_oscope.py
Traceback (most recent call last):
File “./usrp_oscope.py”, line 25, in ?
from gnuradio import gr, gru
ImportError: No module named gnuradio

I have even set the PYTHONPATH to desired directory.I get the following
result whenever i print the sys.path in python :

[root@localhost python]# python
Python 2.4.6 (#1, Mar 30 2009, 13:30:46)
[GCC 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.

import sys
sys.path
[’’, ‘/usr/local/lib/python2.4/site-packages’,
‘/usr/local/lib/python24.zip’, ‘/usr/local/lib/python2.4’,
‘/usr/local/lib/python2.4/plat-linux2’,
‘/usr/local/lib/python2.4/lib-tk’,
‘/usr/local/lib/python2.4/lib-dynload’,
‘/usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-ansi’]

I am very new to gnuradio .So kindly help me out.

Thanks

Jay K. wrote am 2009-03-31 09:08:

Hello,
I have recently installed gnuradio-3.1.3 on Red Hat Enterprise Linux
4.

Did you install via the package management system or did you compile
yourself? Please provide the sommand sequence you used.

Patrick

Engineers motto: cheap, good, fast: choose any two
Patrick S.
Student of Telematik, Techn. University Graz, Austria

Jay K. wrote am 2009-03-31 09:08:

Hello,
I have recently installed gnuradio-3.1.3 on Red Hat Enterprise Linux
4.I can even […]

For better readability, please consider following rules:

  • never a space before punctuation (,;:.!?).
  • always a space after punctuation.
  • For better readability it is common, but not compulsory, to add a
    second space after sentences. See this sentence as example. But only
    after full stops (.).

Patrick

ps: Would have sent this as private mail, but could not find one…

Engineers motto: cheap, good, fast: choose any two
Patrick S.
Student of Telematik, Techn. University Graz, Austria

Hello ,
I am through that problem .The fault was in pkg-config version.Now i am
stucked in running any of the gr-utils examples.Whenever i try to run
./usrp_oscope.py i get the following error:

[root@localhost python]# ./usrp_test_loopback.py
Traceback (most recent call last):
File “./usrp_test_loopback.py”, line 65, in ?
main ()
File “./usrp_test_loopback.py”, line 58, in main
tb = build_graph ()
File “./usrp_test_loopback.py”, line 46, in build_graph
tb.connect (data_src, usrp_tx)
File
“/usr/local/lib/python2.4/site-packages/gnuradio/gr/top_block.py”, line
7 0, in connect
self._connect(points[i-1], points[i])
File
“/usr/local/lib/python2.4/site-packages/gnuradio/gr/top_block.py”, line
7 6, in _connect
dst_block.basic_block(), dst_port)
File
“/usr/local/lib/python2.4/site-packages/gnuradio/gr/gnuradio_swig_py_runt
ime.py”, line 1469, in connect
return _gnuradio_swig_py_runtime.gr_top_block_sptr_connect(*args)
NotImplementedError: Wrong number of arguments for overloaded function
‘gr_top_b lock_sptr_connect’.
Possible C/C++ prototypes are:
connect(boost::shared_ptr< gr_top_block > *,gr_basic_block_sptr)
connect(boost::shared_ptr< gr_top_block >
*,gr_basic_block_sptr,int,gr_basic _block_sptr,int)

I really dont know why is this happening.Plz kindly help me out.

Thanks

Jay K. <lists ruby-forum.com> writes:

I am very new to gnuradio .So kindly help me out.

Thanks
Your PATH looks like if there is some PATH
missing. Try to add the PATH with:
sys.path.append(‘directories to gnuradio python libs’)

But you should know that your system seems to be missconfigured.
Are you really using Python2.4 ???
And what shall the ‘’ in your PATH ?

My PATH looks like this,
[‘/home/markus/Documents/gnuradio-projekt/versuche/usrp-AM’,
‘/usr/lib/python26.zip’,
‘/usr/lib/python2.6’,
‘/usr/lib/python2.6/plat-linux2’,
‘/usr/lib/python2.6/lib-tk’,
‘/usr/lib/python2.6/lib-old’,
‘/usr/lib/python2.6/lib-dynload’,
‘/usr/lib/python2.6/site-packages’,
‘/usr/lib/python2.6/site-packages/Numeric’,
‘/usr/local/lib/python2.6/site-packages’,
‘/usr/lib/python2.6/site-packages/gtk-2.0’,
‘/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode’]

In my python PATH i installed my gnuradio python modules.
Maybe search for my name to get more information on installation
and reinstall gnuradio correctly.

Regards markus