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.
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
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?
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.
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 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