Problem in installing gnuradio

Hi

I was trying to install the gnuradio in one of the wireless nodes
available
in my college lab. I followed the steps given in the link;

http://gnuradio.org/redmine/projects/gnuradio/wiki/UbuntuInstall

I installed the image successfully, but when I tried to run some
benchmark
programs in the folder gr-digital/examples/narrowband, I got the error
saying

ImportError: cannot import name uhd

I have not done this type of build process before and this is the first
time I am doing it. Can anyone please help me out with this?

Thank you


Regards

Shantharam Balasubramanian
MS in Electrical and Computer Engineering
Rutgers University
Ph:732-543-6863
Email:[email protected]

Shantharam,

Will you please give us more details of your setup? What type of USRP?
What
Ubuntu OS version?

This will help us further assist you!

Sincerely,

TVZ
RF-SDR-ASIC-SOC-DSP-FPGA-DMR Dev Team

On Sat, Nov 19, 2011 at 9:36 PM, shantharam balasubramanian <

On 11/19/2011 08:36 PM, shantharam balasubramanian wrote:

ImportError: cannot import name uhd

Basically, install uhd from source or binary installer:
http://code.ettus.com/redmine/ettus/projects/uhd/wiki#Source-code
http://code.ettus.com/redmine/ettus/projects/uhd/wiki#Binary-downloads

And some instructions about configuring gnuradio w/ support:
http://code.ettus.com/redmine/ettus/projects/uhd/wiki#Gnuradio-UHD

-josh

Hi

I was installing the gnuradio in ubuntu 10.04, and the nodes have USRP2.

After installing gnuradio from the website link,

http://gnuradio.org/redmine/projects/gnuradio/wiki/UbuntuInstall

I then installed the UHD from the instructions given in the

http://cegt201.bradley.edu/projects/proj2011/sdr/update_files/install_gnuradio_uhd.pdf

which is given at steps 3 and 4. After doing these steps, I saw that
there
are two different folders gnruadio, and uhd. And then I tried to run the
benchmark programs from the gr-digital folder inside gnuradio. But it
didnt
work.

Can you point out the mistakes I made here?

Thank you

http://cegt201.bradley.edu/projects/proj2011/sdr/update_files/install_gnuradio_uhd.pdf

which is given at steps 3 and 4. After doing these steps, I saw that
there are two different folders gnruadio, and uhd. And then I tried to
run the benchmark programs from the gr-digital folder inside gnuradio.
But it didnt work.

Can you point out the mistakes I made here?

Thank you
“And then I tried to run the benchmark programs, but they didn’t work”.
Isn’t a terribly-useful error report for anyone to do anything with.
Did you receive error messages? Did large, unfriendly, aliens
descend rapidly from the now-torn-asunder ceiling and begin babbling
loudly?
Did a small, annoying, dog start urinating on your shoes? Did the
ghost of Marilyn Monroe start dancing on your keyboard? Did you
suddenly
find yourself craving a beverage you hadn’t tasted since you were a
child?

What, exactly, happened when you ran the gr-digital examples, other
than “they didn’t work”???


Marcus L.
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org

On 11/20/2011 11:18 AM, Josh B. wrote:

programs in the folder gr-digital/examples/narrowband, I got the error

-josh


Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Or (tired advertisement mode=ON) use:

http://www.sbrac.org/files/build-gnuradio

Which for Fedora and Ubuntu will take care of everything for you


Marcus L.
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org

I have actually mentioned that error in the first mail itself.

I have mentioned that it gave me the error,

ImportError: cannot import name uhd

I have actually mentioned that error in the first mail itself.

I have mentioned that it gave me the error,

ImportError: cannot import name uhd

It wasn’t clear in your second e-mail that your errors were the same.

What is your PYTHONPATH set to?

And also, I will, once again, encourage you to use:

http://www.sbrac.org/files/build-gnuradio

Which takes care of installing prerequisites, downloading and building
UHD and Gnu Radio, doing the necessary post-install tasks,
and also figuring out what your PYTHONPATH should be, and telling
you.

Hi Shantharam,

Your e-mail seems to indicate that you built Gnuradio before building
UHD. UHD needs to be built before Gnuradio because the Gnuradio package
“gr-uhd” depends on it. Try re-running Marcus’ script:

http://www.sbrac.org/files/build-gnuradio

Sean

From: [email protected]n.invalid
[mailto:[email protected]n.invalid] On
Behalf Of Marcus D. Leech
Sent: Sunday, November 20, 2011 10:27 PM
To: shantharam balasubramanian
Cc: [email protected]
Subject: Re: [Discuss-gnuradio] problem in installing gnuradio

I have actually mentioned that error in the first mail itself.

I have mentioned that it gave me the error,

ImportError: cannot import name uhd

It wasn’t clear in your second e-mail that your errors were the same.

What is your PYTHONPATH set to?

And also, I will, once again, encourage you to use:

http://www.sbrac.org/files/build-gnuradio

Which takes care of installing prerequisites, downloading and building
UHD and Gnu Radio, doing the necessary post-install tasks,
and also figuring out what your PYTHONPATH should be, and telling you.

Marcus L.

Principal Investigator

Shirleys Bay Radio Astronomy Consortium

http://www.sbrac.org

On 21/11/2011 10:07 AM, S Haque wrote:

to use Marcus’ build script in full, but used its “gitfetch” function,
(cd to GNU radio directory)
possible to roll back (UHD, GnuRadio) to whatever version we wish to
But, may I ask the developers to explain the reasoning for this

The build-gnuradio script explicitly was designed to fetch and build the
current git master branches. It has no facility for fetching any
particular instance. If you want that behaviour, then manual use GIT
to fetch/checkout the instance you want, and build it by hand.

Or, alternatively, I’m happy to accept patches that allow you to build
particular instances.

Keep in mind that UHD recently changed the API between gr-uhd, and UHD
proper, which means that you can’t mix-and-match older
Gnu Radio with newer UHD, etc. Josh talked about this in his
announcement of a week or two ago.

I originally wrote build-gnuradio for me and some of my customers, to
allow us to keep up with the current development code in
a reasonably-easy-to-use way. It works just fine for that, and most
of the people who use it don’t have any particular version that
they’re aiming for. They just want to press the “go” button and have
a working Gnu Radio + UHD installation an hour later.

I have a comment and a question about this advice, but probably I am
parsing
too much as a new user.

I recently tried to “sync” my development workstations (in my lab): Gnu
Radio 3.5.0rc0 and UHD 3.3.1 which is installed and working very well on
my
principal development machine.

A few days later on another system totally different than my own, I
tried to
install new development environments and initially chose NOT to use
Marcus’
build script in full, but used its “gitfetch” function, followed by:

(cd to UHD directory)

(git checkout tag release_003_003_001)

(build-gnuradio with options to build only the UHD)

And then,

(cd to GNU radio directory)

(git checkout tag 3.5.0rc0)

(build-gnuradio with options to build only the GNU Radio)

All of these were on a updated Ubuntu 10.04 LTS. And while the UHD 3.3.1
system worked initially (uhd_find_device worked great), it broke
immediately
after gnu-radio was installed … with a segmentation fault as the UHD
installed now showed UHD_003.004.000 instead of UHD_003_003_001. This
IMHO
is not what I expected, it should be possible to roll back (UHD,
GnuRadio)
to whatever version we wish to have, to test out older scripts…

Based upon a suggestion from a colleague, I later ran the build-gnuradio
script in full and all is fine for now, albeit two different foundation
framework.

3.5.0rc0 + UHD 3.3.1

3.5.0rc0 + UHD 3.4.0

But, may I ask the developers to explain the reasoning for this behavior
of
an install script that was run on two similar machines separated by only
four days? What can we do, explicitly, to choose particular
distributions of Gnuradio and UHD, so we don’t end up having several
versions of the codebase which may have different classes of bugs. What
is
your recommended strategy for regression testing, or synching the
various
development environments ?

Regards

s

From: Nowlan, Sean [mailto:[email protected]]
Sent: Monday, November 21, 2011 9:56 AM
To: Marcus D. Leech; shantharam balasubramanian
Cc: [email protected]
Subject: Re: [Discuss-gnuradio] problem in installing gnuradio

Hi Shantharam,

Your e-mail seems to indicate that you built Gnuradio before building
UHD.
UHD needs to be built before Gnuradio because the Gnuradio package
“gr-uhd”
depends on it. Try re-running Marcus’ script:

http://www.sbrac.org/files/build-gnuradio

Sean

From: [email protected]n.invalid
[mailto:[email protected]n.invalid] On
Behalf Of Marcus D. Leech
Sent: Sunday, November 20, 2011 10:27 PM
To: shantharam balasubramanian
Cc: [email protected]
Subject: Re: [Discuss-gnuradio] problem in installing gnuradio

I have actually mentioned that error in the first mail itself.

I have mentioned that it gave me the error,

ImportError: cannot import name uhd

It wasn’t clear in your second e-mail that your errors were the same.

What is your PYTHONPATH set to?

And also, I will, once again, encourage you to use:

http://www.sbrac.org/files/build-gnuradio

Which takes care of installing prerequisites, downloading and building
UHD
and Gnu Radio, doing the necessary post-install tasks,
and also figuring out what your PYTHONPATH should be, and telling you.

Download it… chmod 755 , then ./ to run it. That’s general
knowledge more than it is USRP/gnuradio specific. I suggest that you
read up on BASH and using a command prompt…

From: shantharam balasubramanian [mailto:[email protected]]
Sent: Monday, November 21, 2011 4:48 PM
To: Nowlan, Sean
Subject: Re: [Discuss-gnuradio] problem in installing gnuradio

Hi Sean,

I am very new to this process of running the scripts and such things.
Can you tell me how to run the script which you and marcus have posted
in this email?

thank you

Download it… chmod 755 , then ./ to run it. That’s
general knowledge more than it is USRP/gnuradio specific. I suggest
that you read up on BASH and using a command prompt…

Which is talked about here:

http://gnuradio.org/redmine/projects/gnuradio/wiki/InstallingGR

On 21/11/2011 10:07 AM, S Haque wrote:

to use Marcus’ build script in full, but used its “gitfetch” function,
(cd to GNU radio directory)
possible to roll back (UHD, GnuRadio) to whatever version we wish to
But, may I ask the developers to explain the reasoning for this

The “build” parts of build-gnuradio assume that the source directories
are a totally-virgin “clone”, so they don’t bother doing a
“make clean” before doing the rest of it, which probably explains why
you ended up with 003_004_000 instead of the expected
003_003_001.

But if you’re going to go to the trouble of doing a “git checkout” by
hand, then you can simply “cd” to the “build” directory, then
do a:

make clean; make; sudo make install

Without the build-gnuradio script at all.

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