Forum: GNU Radio COST-TERRA examples need gnuradio from 'next' branch?

Posted by Timo Juhani Lindfors (Guest)
on 2013-02-07 23:10
(Received via mailing list)
Hi,

the "COST-TERRA Summer School, Dublin, Ireland" slides at
http://www.trondeau.com/gr-tutorial/ are great. Thanks a lot, Tom!

However, is it possible that some of the examples use features that are
only available in git? If I try

$ wget http://www.trondeau.com/storage/tutorial/mpsk_scri...
$ tar xf mpsk_scripts_3_6.tar.gz
$ mpsk_scripts_3_6/bits_representations.py

on my debian unstable chroot with gnuradio 3.6.1-1 I get

QGtkStyle was unable to detect the current GTK+ theme.
Traceback (most recent call last):
  File "mpsk_scripts_3_6/bits_representations.py", line 103, in <module>
    tb = bits_representations()
  File "mpsk_scripts_3_6/bits_representations.py", line 60, in __init__
    self.qtgui_const_sink_x_0 = qtgui.const_sink_c(
AttributeError: 'module' object has no attribute 'const_sink_c'

I looked around in git and noticed that
gr-qtgui/include/qtgui/const_sink_c.h exists only in the 'next' branch.

Am I missing something here or do the examples really need gnuradio from
git?
Posted by Tom Rondeau (Guest)
on 2013-02-07 23:47
(Received via mailing list)
On Thu, Feb 7, 2013 at 5:09 PM, Timo Juhani Lindfors
<timo.lindfors@iki.fi>wrote:

> $ mpsk_scripts_3_6/bits_representations.py
>
> I looked around in git and noticed that
> gr-qtgui/include/qtgui/const_sink_c.h exists only in the 'next' branch.
>
> Am I missing something here or do the examples really need gnuradio from
> git?
>

Hi Timo, no you're not missing anything. The constellation plotter is a
next/3.7 thing only. It must have slipped past when creating those
examples. That was a real headache, actually, trying to get scripts for
both versions that made sense. I rely so much these days on the features 
of
qtgui that are in next.

You should be able to change that to a normal qtgui.sink_c(...) and it
should work fine. Please let me know if it does and if there are any 
other
files that fail like this. Though, honestly, in the end, that file is 
about
the most uninteresting one in the group.

Tom
Posted by Timo Juhani Lindfors (Guest)
on 2013-02-08 10:18
(Received via mailing list)
Tom Rondeau <tom@trondeau.com> writes:
> Hi Timo, no you're not missing anything. The constellation plotter is a
> next/3.7 thing only. It must have slipped past when creating those
> examples. That was a real headache, actually, trying to get scripts for
> both versions that made sense. I rely so much these days on the features of
> qtgui that are in next.

Ok, good to know. I think I managed to fix all of them now. The
directory

http://lindi.iki.fi/lindi/gnuradio/mpsk_scripts/

has two patches and a revised tarball. The patches were simple:

Subject: [PATCH 1/2] use qtgui_sink_x instead of qtgui_const_sink_x
Subject: [PATCH 2/2] use gr_channel_model instead of channel_model
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.