# Usrp\_prims python module missing

**URL:** <https://www.ruby-forum.com/t/usrp-prims-python-module-missing/116891>\
**Category:** GNU Radio\
**Created:** [October 10, 2007, 10:03pm UTC](https://www.ruby-forum.com/t/usrp-prims-python-module-missing/116891 "2007-10-10T22:03:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bbe5ce/32.png) [@paul](https://www.ruby-forum.com/u/paul)\
**Post date:** [October 10, 2007, 10:03pm UTC](https://www.ruby-forum.com/t/usrp-prims-python-module-missing/116891/1 "2007-10-10T22:03:20Z")

</div>

When I attempt to run any python example script or utility that includes  
usrp.py, I get the following error message:

Traceback (most recent call last):  
File “./usrp\_fft.py”, line 24, in ?  
from gnuradio import usrp  
File “/usr/lib/python2.4/site-packages/gnuradio/usrp.py”, line 24, in  
?  
import usrp\_prims  
ImportError: No module named usrp\_prims

Indeed usrp\_prims.py is nowhere to be found on my system. Neither is  
usrp\_dbid, the next module called in usrp.py. I searched the mailing  
list archive and found similar problems mentioned, but found no  
solution. Where might I find these missing modules?

I’m running Debian, and installed the GNU Radio package via apt-get.

Thanks,  
Paul

---

<div class="post-metadata">

**Author:** ![paul](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bbe5ce/32.png) [@paul](https://www.ruby-forum.com/u/paul)\
**Post date:** [October 10, 2007, 10:56pm UTC](https://www.ruby-forum.com/t/usrp-prims-python-module-missing/116891/2 "2007-10-10T22:56:42Z")

</div>

On Wed, Oct 10, 2007 at 04:02:45PM -0400, Paul C. wrote:

> Indeed usrp\_prims.py is nowhere to be found on my system. Neither is  
> usrp\_dbid, the next module called in usrp.py. I searched the mailing  
> list archive and found similar problems mentioned, but found no  
> solution. Where might I find these missing modules?
> 
> I’m running Debian, and installed the GNU Radio package via apt-get.
> 
> Thanks,  
> Paul

Looks like the current Debian packages are out of date.  
Johnathan C. can give an update in a bit. I know he’s busy during  
the day for the rest of the week.

If you like, you could build from svn. It’s known to work 😉

Eric

---

<div class="post-metadata">

**Author:** ![paul](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bbe5ce/32.png) [@paul](https://www.ruby-forum.com/u/paul)\
**Post date:** [October 11, 2007, 1:54am UTC](https://www.ruby-forum.com/t/usrp-prims-python-module-missing/116891/3 "2007-10-11T01:54:19Z")

</div>

Paul C. wrote:

> Indeed usrp\_prims.py is nowhere to be found on my system. Neither is  
> usrp\_dbid, the next module called in usrp.py. I searched the mailing  
> list archive and found similar problems mentioned, but found no  
> solution. Where might I find these missing modules?
> 
> I’m running Debian, and installed the GNU Radio package via apt-get.

Just to clarify, you installed GNU Radio packages versioned 3.0.2 from  
the official Debian archive?

3.0.2 doesn’t have the usrpm module in it (that was introduced on the  
trunk post-3.0.2.) So the question then would be, where are you getting  
a usrp.py installed from that imports usrpm? Is it possible you have  
stuff “left over” from a previous installation of a newer release?

–  
Johnathan C.  
Corgan Enterprises LLC  
[http://corganenterprises.com](http://corganenterprises.com)

---

<div class="post-metadata">

**Author:** ![paul](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bbe5ce/32.png) [@paul](https://www.ruby-forum.com/u/paul)\
**Post date:** [October 11, 2007, 1:56am UTC](https://www.ruby-forum.com/t/usrp-prims-python-module-missing/116891/4 "2007-10-11T01:56:40Z")

</div>

Eric B. wrote:

> Looks like the current Debian packages are out of date.

The “current” Debian packages are 3.0.2. The uber-secret location of  
the release 3.1 experimental Debian packages has not yet been disclosed  
🙂

> Johnathan C. can give an update in a bit. I know he’s busy during  
> the day for the rest of the week.

–  
Johnathan C.  
Corgan Enterprises LLC  
[http://corganenterprises.com](http://corganenterprises.com)

---

<div class="post-metadata">

**Author:** ![paul](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bbe5ce/32.png) [@paul](https://www.ruby-forum.com/u/paul)\
**Post date:** [October 11, 2007, 3:12am UTC](https://www.ruby-forum.com/t/usrp-prims-python-module-missing/116891/5 "2007-10-11T03:12:13Z")

</div>

Paul C. wrote:

> The only package I’ve ever installed was 3.0.2. I’ve done so once with  
> Synaptic Package Manager and once with apt-get.
> 
> I see no mention of usrpm. Specifically, usrp\_fft.py imports usrp.py,  
> and usrp.py imports usrp\_prims and usrp\_dbid, neither of which exist in  
> my installation.

I am sorry–I was mistaken on my end (long day…)

I just downloaded and looked through the 3.0.2 packages–the two files  
you need are both located in the ‘python-usrp’ package, so make sure  
that is installed.

–  
Johnathan C.  
Corgan Enterprises LLC  
[http://corganenterprises.com](http://corganenterprises.com)

---

<div class="post-metadata">

**Author:** ![paul](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bbe5ce/32.png) [@paul](https://www.ruby-forum.com/u/paul)\
**Post date:** [October 11, 2007, 2:43am UTC](https://www.ruby-forum.com/t/usrp-prims-python-module-missing/116891/6 "2007-10-11T02:43:32Z")

</div>

The only package I’ve ever installed was 3.0.2. I’ve done so once with  
Synaptic Package Manager and once with apt-get.

I see no mention of usrpm. Specifically, usrp\_fft.py imports usrp.py,  
and usrp.py imports usrp\_prims and usrp\_dbid, neither of which exist in  
my installation.

–Paul

---

<div class="post-metadata">

**Author:** ![paul](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bbe5ce/32.png) [@paul](https://www.ruby-forum.com/u/paul)\
**Post date:** [October 12, 2007, 6:01pm UTC](https://www.ruby-forum.com/t/usrp-prims-python-module-missing/116891/7 "2007-10-12T18:01:40Z")

</div>

Johnathan C. wrote:

> I am sorry–I was mistaken on my end (long day…)
> 
> I just downloaded and looked through the 3.0.2 packages–the two files  
> you need are both located in the ‘python-usrp’ package, so make sure  
> that is installed.

Problem solved. My Debian installation did not by default include one  
of the very critical Debian package download mirrors in apt-get’s  
sources.list file, so I was indeed missing python-usrp, among other  
things.

For the record, to allow apt-get to find all necessary GNU Radio/USRP  
packages, I added

deb [http://http.us.debian.org/debian](http://http.us.debian.org/debian) sid main contrib

to /etc/apt/sources.list

–Paul
