# COST-TERRA examples need gnuradio from 'next' branch?

**URL:** <https://www.ruby-forum.com/t/cost-terra-examples-need-gnuradio-from-next-branch/229616>\
**Category:** GNU Radio\
**Created:** [February 7, 2013, 11:10pm UTC](https://www.ruby-forum.com/t/cost-terra-examples-need-gnuradio-from-next-branch/229616 "2013-02-07T23:10:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Timo\_Juhani\_Lindfor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/c5a1d2/32.png) [@Timo\_Juhani\_Lindfor](https://www.ruby-forum.com/u/Timo_Juhani_Lindfor)\
**Post date:** [February 7, 2013, 11:10pm UTC](https://www.ruby-forum.com/t/cost-terra-examples-need-gnuradio-from-next-branch/229616/1 "2013-02-07T23:10:12Z")

</div>

Hi,

the “COST-TERRA Summer School, Dublin, Ireland” slides at  
[GR Tutorial — Rondeau Research](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\_scripts\_3\_6.tar.gz](http://www.trondeau.com/storage/tutorial/mpsk_scripts_3_6.tar.gz)  
$ 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   
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?

---

<div class="post-metadata">

**Author:** ![Timo\_Juhani\_Lindfor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/c5a1d2/32.png) [@Timo\_Juhani\_Lindfor](https://www.ruby-forum.com/u/Timo_Juhani_Lindfor)\
**Post date:** [February 7, 2013, 11:47pm UTC](https://www.ruby-forum.com/t/cost-terra-examples-need-gnuradio-from-next-branch/229616/2 "2013-02-07T23:47:36Z")

</div>

On Thu, Feb 7, 2013 at 5:09 PM, Timo Juhani Lindfors  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)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

---

<div class="post-metadata">

**Author:** ![Timo\_Juhani\_Lindfor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/c5a1d2/32.png) [@Timo\_Juhani\_Lindfor](https://www.ruby-forum.com/u/Timo_Juhani_Lindfor)\
**Post date:** [February 8, 2013, 10:18am UTC](https://www.ruby-forum.com/t/cost-terra-examples-need-gnuradio-from-next-branch/229616/3 "2013-02-08T10:18:56Z")

</div>

Tom R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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

> **[Index of /lindi/gnuradio/mpsk\_scripts](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
