Hi All ,
I have just installed gnuradio and it was successful. But when i tried
to run the gnuradio-examples, i get the error message ‘ImportError: No
module named gnuradio’. I have changed the PYTHONPATH to the directory
where python is installed but it is not working. I have installed
gnuradio in a different folder i.e. /usr/Nett/users/fass/gnuradio
whereas the python directory is /usr/lib/python2.5/site-packages. Could
that be a problem ?
Here is the error …
fass@pc521:~$ export PYTHONPATH=/usr/lib/python2.5/site-packages
fass@pc521:~/gnuradio/gnuradio-examples/python/network$
./dial_tone_source.py
Traceback (most recent call last):
File “./dial_tone_source.py”, line 23, in
from gnuradio import gr
ImportError: No module named gnuradio
I am using a 64 bit machine and I have build the gnuradio from the
directory /usr/Nett/users/fass/gnuradio. There is a folder lib64 in
/usr directory but it doesnt contain the python packages.
fass@pc521:~$ export PYTHONPATH=/usr/lib/python2.5/site-packages
fass@pc521:~$ ls -lR $PYTHONPATH/gnuradio/gr
ls: /gnuradio/gr: No such file or directory
fass@pc521:~$
Best ,
Fasika
Eric B. [email protected] wrote: On Fri, Dec 07, 2007 at 08:20:14AM
-0800, Fasika A. wrote:
Hi All ,
I have just installed gnuradio and it was successful. But when i
tried to run the gnuradio-examples, i get the error message
‘ImportError: No module named gnuradio’. I have changed the
PYTHONPATH to the directory where python is installed but it is not
working. I have installed gnuradio in a different folder
i.e. /usr/Nett/users/fass/gnuradio whereas the python directory is
/usr/lib/python2.5/site-packages. Could that be a problem ?
Regards,
Fasika
You need to set PYTHONPATH to reflect the prefix you used during
configuration (default /usr/local). What --prefix did you use?
Did you build from /usr/Nett/users/fass/gnuradio or did you install
into there?
Are you running on a 64-bit machine? If so your python path needs to
contain lib64, not lib.
If you type this command, do you get similar output?
On Fri, Dec 07, 2007 at 08:20:14AM -0800, Fasika A. wrote:
Hi All ,
I have just installed gnuradio and it was successful. But when i
tried to run the gnuradio-examples, i get the error message
‘ImportError: No module named gnuradio’. I have changed the
PYTHONPATH to the directory where python is installed but it is not
working. I have installed gnuradio in a different folder
i.e. /usr/Nett/users/fass/gnuradio whereas the python directory is
/usr/lib/python2.5/site-packages. Could that be a problem ?
Regards,
Fasika
You need to set PYTHONPATH to reflect the prefix you used during
configuration (default /usr/local). What --prefix did you use?
Did you build from /usr/Nett/users/fass/gnuradio or did you install
into there?
Are you running on a 64-bit machine? If so your python path needs to
contain lib64, not lib.
If you type this command, do you get similar output?
I also have got a similar situation. We are building a software defined
radio using GNU radio. We have a receiver front end to test and analyze
the performance of Wireless sensor nodes at 2.5GHz. The module is
similar with USRP but we are studying the differences inorder to
integrate the hardware with the gnuradio. I would really appreciate if I
can find any documentation about the details of the signal transfer
to/from the usrp and the usrp itself so that we can see the difference
between the USRP and our hardware.
On Mon, Dec 10, 2007 at 01:51:16AM -0800, Fasika A. wrote:
I am using a 64 bit machine and I have build the gnuradio from the directory /usr/Nett/users/fass/gnuradio. There is a folder lib64 in /usr directory but it doesnt contain the python packages.
fass@pc521:~$ export PYTHONPATH=/usr/lib/python2.5/site-packages
fass@pc521:~$ ls -lR $PYTHONPATH/gnuradio/gr
ls: /gnuradio/gr: No such file or directory
fass@pc521:~$
Have you looked in /usr/local/lib64/python2.5/site-packages ?
On my 64-bit machine, that’s what I set PYTHONPATH to.
On Mon, Dec 10, 2007 at 01:28:38PM -0800, Fasika A. wrote:
Best ,
Fasika
There is no documentation outside of that in the code on this.
However, it’s pretty straight-forward. We talk to the USRP using 3
USB end points. EP0, the control endpoint, is used to load FX2
firmware and the FPGA .rbf file, low-level control of the
daughterboards, setting control registers in the FPGA, and other misc
operations. The list of operations and the arguments is in
usrp/firmware/include/usrp_commands.h
Received samples are sent from the FPGA via the FX2 over endpoint 6
using USB bulk transfers. Each USB packet is 512 bytes long, and the
data in each packet is interleaved 16-bit little-endian I & Q pairs.
I.e., I0, Q0, I1, Q1,…
Transmit samples are sent in the same format over endpoint 2 using
USB bulk tranfers.
The connection of the hardware( lets say hw) with the radio is as usrp
does. Received samples are sent from the FPGA via the FX2 over endpoint
6 using USB bulk transfers. Endpoint 2 is not yet used since we are
testing the receiver only. The A/D or VCO are configured by the
FPGA(Spartan-3E-500) for the 2402 MHz channel @ 48 MHz sampling. The
decimation is 12x so the data from EP6 is 4 Ms/sec, each sample is 16
bit I and 16 bit Q as with the USRP. ad9863, fx2lp are used in the hw.
My question is whether i can use the gnuradio with some simple
modifications like the vendor id,device id and prodcut id for the hw,
seen by the gnuradio as usrp.
Best ,
Fasika
Eric B. [email protected] wrote: On Thu, Dec 13, 2007 at 12:48:24AM
-0800, Fasika A. wrote:
Thanks for the reply ,
Fasika
Unless you device is identical to the USRP and uses exactly the same
FX2 code and FPGA RBF’s, you’ll probably have to do some work.
Have you looked at the source code for the host side of the interface
to the USRP? usrp/host/lib/legacy/*.{h,cc}
Do you have a specific question? “How do I get my new hardware that’s
sort of like a usrp to work with gnuradio” is a bit open ended.
The receiver front end is similar with the usrp. The data transfer to
and from the hardware using the usb endpoints is similar with that of
the usrp that you mentioned. But the problem is when i tried to contact
the hardware , the response is that there is “failed to find usrp[0]”.
The product id and the vendor id of the usrp and our hardware are
different. How can I solve this problem ? I read on the forum that I
should add the device and vendor id to the list in usrp_ids.h and get
the usrp developers to acknowledge it.
Best ,
Fasika
Eric B. [email protected] wrote: On Mon, Dec 10, 2007 at 01:28:38PM
-0800, Fasika A. wrote:
Best ,
Fasika
There is no documentation outside of that in the code on this.
However, it’s pretty straight-forward. We talk to the USRP using 3
USB end points. EP0, the control endpoint, is used to load FX2
firmware and the FPGA .rbf file, low-level control of the
daughterboards, setting control registers in the FPGA, and other misc
operations. The list of operations and the arguments is in
usrp/firmware/include/usrp_commands.h
Received samples are sent from the FPGA via the FX2 over endpoint 6
using USB bulk transfers. Each USB packet is 512 bytes long, and the
data in each packet is interleaved 16-bit little-endian I & Q pairs.
I.e., I0, Q0, I1, Q1,…
Transmit samples are sent in the same format over endpoint 2 using
USB bulk tranfers.