Using uhd_fft with USRP N210

Hi,

I’m trying to run uhd_fft with usrp N210, my machine run ubuntu desktop
12.04.4 LTS.

When I try to run uhd_fft which is located in
/usr/local/src/gnuradio-3.7.2.1/gr-uhd/apps directory, i’ve got the
following message:
root@openlab:/usr/local/src/gnuradio-3.7.2.1/gr-uhd/apps# ./uhd_fft
Traceback (most recent call last):
File “./uhd_fft”, line 23, in
from gnuradio import gr, gru
ImportError: No module named gnuradio

This is the message i’ve got when installing gnuradio with command:
cmake
-DENABLE_VOLK=FALSE …/
######################################################
– # Gnuradio enabled components
– ######################################################
– * python-support
– * testing-support

– ######################################################
– # Gnuradio disabled components
– ######################################################
– * volk
– * doxygen
– * sphinx
– * gnuradio-runtime
– * gr-ctrlport
– * gr-blocks
– * gnuradio-companion
– * gr-fec
– * gr-fft
– * gr-filter
– * gr-analog
– * gr-digital
– * gr-atsc
– * gr-audio
– * gr-comedi
– * gr-channels
– * gr-noaa
– * gr-pager
– * gr-qtgui
– * gr-trellis
– * gr-uhd
– * gr-utils
– * gr-video-sdl
– * gr-vocoder
– * gr-fcd
– * gr-wavelet
– * gr-wxgui

– Using install prefix: /usr/local
– Building for version: 3.7.2.1 / 3.7.2.1
– Configuring done
– Generating done
– Build files have been written to:
/usr/local/src/gnuradio-3.7.2.1/build

Can anyone help to solve this issue

Thanks,
sammy

Hi Sammy,
when building, basically everything was not built, so you don’t really
have GNU Radio installed.
This is usually due to missing a crucial dependency of GNU Radio.
How did you install?
I recommend using pyBOMBs, if you didn’t, because that should take care
of installing dependencies:
http://gnuradio.org/redmine/projects/pybombs/wiki/QuickStart

Greetings,
Marcus

Ah, missed that. You should not disable VOLK - almost all of GNU Radio
uses that by now.