# ImportError: cannot import name usrp

**URL:** <https://www.ruby-forum.com/t/importerror-cannot-import-name-usrp/149759>\
**Category:** GNU Radio\
**Created:** [September 29, 2008, 2:11pm UTC](https://www.ruby-forum.com/t/importerror-cannot-import-name-usrp/149759 "2008-09-29T14:11:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![teka\_yemane](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/8797f3/32.png) [@teka\_yemane](https://www.ruby-forum.com/u/teka_yemane)\
**Post date:** [September 29, 2008, 2:11pm UTC](https://www.ruby-forum.com/t/importerror-cannot-import-name-usrp/149759/1 "2008-09-29T14:11:17Z")

</div>

I have installed gnuradio3.1.3 and executed the ‘export  
PYTHONPATH=/usr/local/lib/python2.5/site-packages’ command. Then,  
the command ‘from gnuradio import usrp’ doesn’t result in an error when  
executed from the gnuradio folder  
but when I cd to my custom demodulator block which is also located on  
the gnuradio folder, and execute my python file, it outputs  
the following error:  
[root@localhost python]# ./usrp\_fsk4\_oscope.py  
Traceback (most recent call last):  
Â File “./usrp\_fsk4\_oscope.py”, line 26, in   
Â Â Â from gnuradio import usrp  
ImportError: cannot import name usrp

I have tried several times but it still gives out the same error. I have  
also installed all the dependencies for the gnuradio  
for fedora and used ‘./configure --enable-all-components’ option when I  
install the gnuradio. I don’t have the USRP hardware now  
but I want to take input from local files instead of the usrp.  
Any suggestions please!  
Thanks,  
teka
