Usrp_prims python module missing

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

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 :wink:

Eric

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

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
:slight_smile:

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

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

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

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 sid main contrib

to /etc/apt/sources.list

–Paul

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs