# Question on using USRP sink/sources in GNU Radio recent release

**URL:** <https://www.ruby-forum.com/t/question-on-using-usrp-sink-sources-in-gnu-radio-recent-release/213858>\
**Category:** GNU Radio\
**Created:** [November 14, 2011, 4:50pm UTC](https://www.ruby-forum.com/t/question-on-using-usrp-sink-sources-in-gnu-radio-recent-release/213858 "2011-11-14T16:50:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [November 14, 2011, 4:50pm UTC](https://www.ruby-forum.com/t/question-on-using-usrp-sink-sources-in-gnu-radio-recent-release/213858/1 "2011-11-14T16:50:38Z")

</div>

Hello, as some of you may know I recently installed a fresh GNURADIO  
package, after a manual install of a UHD package on my Ubuntu 10.04 LTS  
workstation.

dpkg -i UUHD-003.003.001-Ubuntu-10.04-x86\_64.deb

(from git)  
cat version.sh  
MAJOR\_VERSION=3  
API\_COMPAT=5  
MINOR\_VERSION=0rc0  
MAINT\_VERSION=0

So far so good, Gnu Radio Companion works etc., uhd\_fft.py, Audio  
examples  
work etc.

My test setup: USRP/TVRX2 – USB – USB (UHD) – HOST

However, as I had attempted earlier installs, some old files remain. My  
question is: are the files provided in the following list already  
deprecated? The majority of them include “from gnuradio import usrp” or  
“from gnuradio import usrp2” string in their header, and I have  
confirmed  
even the most basic example listed in [http://www.joshknows.com/gnuradio](http://www.joshknows.com/gnuradio)  
(See USRP Examples) fails. So, is there a recommended way to modify  
these  
python files to use the UHD driver instead of (missing?) USRP or USRP2  
blocks? If these files will not be needed anymore (as UHD supercedes  
USRP), why keep them around on public websites? But if they have any  
educational value, then why not keep a “stub” usrp entry that spits out  
an  
error message to the calling script with a blurb of something like  
“feature deprecated, please use UHD”… so that old code examples can be  
ported to newer coding standards?

Traceback (most recent call last):  
File “foo.py”, line 2, in   
from gnuradio import usrp  
ImportError: cannot import name usrp

Now a general question for the archive-maintainers, is there a handy  
reference of the supported/tested status of each of these files? I see  
that (I believe…) none of the files have a timestamp or author  
information, or even a specification block as to the exact test  
environment this code was executed in. Is that information available  
elsewhere as a release note accompanying the package or only available  
through a git log entry?

Regards,

Samudra N3RDX

usrp2\_fft.py  
usrp\_oscope.py  
usrp\_rx\_nogui.py  
usrp\_siggen\_gui.py  
usrp\_siggen.py  
usrp\_fft.py  
usrp\_sounder.py  
qt\_digital\_window.ui  
usrp\_display\_qtgui.ui  
usrp\_psr\_receiver.py  
usrp\_ra\_receiver.py  
usrp\_radar\_mono.py  
file\_rx\_lrit.py  
usrp\_rx\_lrit.py  
gpio\_rx\_sfile.py  
gpio\_usrp\_fft.py  
gpio\_usrp\_siggen.py  
usrp2\_probe  
usrp2\_rx\_cfile.py  
usrp\_probe  
lsusrp  
usrp\_print\_db.py  
usrp\_rx\_cfile.py  
usrp\_test\_counting.py  
usrp\_test\_loopback.py  
usrp2\_burn\_mac\_addr  
find\_usrps  
usrp2\_socket\_opener  
usrp\_cal\_dc\_offset  
usrper  
bitbake

---

<div class="post-metadata">

**Author:** ![Samudra\_E\_Haque](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b3f665/32.png) [@Samudra\_E\_Haque](https://www.ruby-forum.com/u/Samudra_E_Haque)\
**Post date:** [November 14, 2011, 6:28pm UTC](https://www.ruby-forum.com/t/question-on-using-usrp-sink-sources-in-gnu-radio-recent-release/213858/2 "2011-11-14T18:28:31Z")

</div>

> However, as I had attempted earlier installs, some old files remain. My

I recommend cleaning out old installations before reinstalling gnuradio.  
Not doing so has caused many problems.

> question is: are the files provided in the following list already  
> deprecated? The majority of them include “from gnuradio import usrp” or  
> “from gnuradio import usrp2” string in their header, and I have confirmed  
> even the most basic example listed in [Josh Knows | Introductory Tour of the GNU Radio Project](http://www.joshknows.com/gnuradio)

I will update my website. That page is very “stale”.

> (See USRP Examples) fails. So, is there a recommended way to modify these  
> python files to use the UHD driver instead of (missing?) USRP or USRP2

I believe all USRP1 examples have been modified for UHD in the current  
master.

> blocks? If these files will not be needed anymore (as UHD supercedes  
> USRP), why keep them around on public websites? But if they have any

Well, I can only update my website and the gnuradio wiki. Theres a lot  
of websites out there…

Cheers!  
-Josh
