Forum: GNU Radio No module named gnuradio

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F75f393a86b5a518b1f7a8d3ca97cf67?d=identicon&s=25 Jay Kumar (songsfreak)
on 2009-03-31 09:08
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
3e5d1707dd5f4807ed9938d5c37b2649?d=identicon&s=25 Patrick Strasser (Guest)
on 2009-03-31 11:41
(Received via mailing list)
Jay Kumar 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 Strasser <patrick dot strasser at student dot tugraz dot at>
Student of Telematik, Techn. University Graz, Austria
3e5d1707dd5f4807ed9938d5c37b2649?d=identicon&s=25 Patrick Strasser (Guest)
on 2009-03-31 11:46
(Received via mailing list)
Jay Kumar 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 Strasser <patrick dot strasser at student dot tugraz dot at>
Student of Telematik, Techn. University Graz, Austria
F75f393a86b5a518b1f7a8d3ca97cf67?d=identicon&s=25 Jay Kumar (songsfreak)
on 2009-03-31 14:28
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
85ffd97bae0e78056e1d06312744d7d1?d=identicon&s=25 feldmaus (Guest)
on 2009-04-01 15:48
(Received via mailing list)
Jay Kumar <lists <at> 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
This topic is locked and can not be replied to.