About build USRP on GNURadio

Hi:

I can’t run the ./tx_voice.py or benchmark_rx.py in
/usr/src/gnuradio/gnuradio-examples/python/digital
In fact, I can’t run anything in /…/diital.

If I do, I will got error message, like follows.

But I can run ./benchmark_rx.py in /…/digital-bert

Somebody say maybe my GNU Radio install incomplete.

So, have anything I need to do?

Thank in advance.

[email protected] /usr/src/gnuradio/gnuradio-examples/python/digital
$ ./tx_voice.py -f 2400M
Traceback (most recent call last):
File “./tx_voice.py”, line 38, in
import usrp_transmit_path
File
"/usr/src/gnuradio/gnuradio-examples/python/digital/usrp_transmit_path.py
", line 23, in
import usrp_options
File
“/usr/src/gnuradio/gnuradio-examples/python/digital/usrp_options.py”,
lin
e 30, in
import generic_usrp
File
“/usr/src/gnuradio/gnuradio-examples/python/digital/generic_usrp.py”,
lin
e 36, in
from gnuradio import gr, usrp, usrp2
ImportError: cannot import name usrp2

[email protected] /usr/src/gnuradio/gnuradio-examples/python/digital
$ ./benchmark_tx.py -f 2400M
Traceback (most recent call last):
File “./benchmark_tx.py”, line 32, in
import usrp_transmit_path
File
"/usr/src/gnuradio/gnuradio-examples/python/digital/usrp_transmit_path.py
", line 23, in
import usrp_options
File
“/usr/src/gnuradio/gnuradio-examples/python/digital/usrp_options.py”,
lin
e 30, in
import generic_usrp
File
“/usr/src/gnuradio/gnuradio-examples/python/digital/generic_usrp.py”,
lin
e 36, in
from gnuradio import gr, usrp, usrp2
ImportError: cannot import name usrp2

Li Mei-Wen wrote:

If I do, I will got error message, like follows.

I also faced the same problem before and I found out that it is because
of
the package import missing. so try to type this command each time you
open a
new terminal: export PYTHONPATH=/usr/local/lib/python2.5/site-packages
or
you can put this command in the bash file of your OS. note that i am
using
fedora 9…good luck.

Adib

View this message in context:
http://www.nabble.com/about--test-benchmark_tx.py-%2C-I-got-error-tp25570400p25675251.html
Sent from the GnuRadio mailing list archive at Nabble.com.

Hi:

I got same error message, again

I am use cygwin on windows

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