Joreen Tan wrote:
> 
> I'm totally new to gnuradio.. i installed gnuradio via fedora 6 and the
> installation was successful. however, i get the ImportError when i tried
> to run a program. Below are the exact codes i typed.
>  
> [EMAIL PROTECTED] ~]# cd gnuradio-3.1.2/gnuradio-examples/python/usrp
> [EMAIL PROTECTED] usrp]# python usrp_spectrum_sense.py
> Traceback (most recent call last):
>      File "usrp_spectrum_sense.py", line 23, in?
>           from gnuradio import gr, gru, eng_notation, optfir, window
> ImportError: No module named gnuradio
>  
> I did try to search for possible solutions but i really don't understand
> how should i do it as in the codes to type as i'm really totally new to
> this. can anyone please help me with this? 
> 

This problem has to do with the python interpreter not being able to find
where certain gnu radio files were installed. You can fix this by creating a
file that points python in the right direction. To do this you can run these
commands:

su
echo "/usr/local/lib/python2.4/site-packages" | tee
/usr/lib/python2.4/site-packages/gnuradio.pth
exit

This might change depending on your python installation. The first directory
is the location of gnu radio's python files, the second is a location where
python already looks for files.
-- 
View this message in context: 
http://www.nabble.com/comedilib-question-tp18958726p18970529.html
Sent from the GnuRadio mailing list archive at Nabble.com.



_______________________________________________
Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to