On 6/18/06, Eric Blossom <[EMAIL PROTECTED]> wrote:
On Sun, Jun 18, 2006 at 02:18:01PM -0500, Michael Ford wrote:
> after setting the PYTHONPATH variable to point to ~/gr-build/gr-usrp/src/
> (where usrp1.py is located), I ran my python test script, and got the
> following error:
>
>
> $ python test_sender.py Traceback (most recent call last):
> File "test_sender.py", line 22, in ?
> import usrp1
> File "/home/mford1/gr-build/gr-usrp/src/usrp1.py", line 4, in ?
> import _usrp1
> ImportError: No module named _usrp1
>
> After searching my computer, I find that there is in fact no module called
> _usrp1, only a libtool file in the ~/gr-build/gr-usrp/src/ directory called
> usrp1.la. I'm guessing there might be something wrong with my installation.
>
> -Michael Ford-
Don't do it that way ;)
Just install gr-usrp as usual, then write your test script someplace
else. To import the usrp code, do like all of the examples:
from gnuradio import usrp
u = usrp.source_c (...)
You may want to take a look at the code in gnuradio-examples/python/usrp
Eric
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio