# GRC issues with GNU Radio 3.7

**URL:** <https://www.ruby-forum.com/t/grc-issues-with-gnu-radio-3-7/239774>\
**Category:** GNU Radio\
**Created:** [March 13, 2014, 10:21pm UTC](https://www.ruby-forum.com/t/grc-issues-with-gnu-radio-3-7/239774 "2014-03-13T22:21:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [March 13, 2014, 10:21pm UTC](https://www.ruby-forum.com/t/grc-issues-with-gnu-radio-3-7/239774/1 "2014-03-13T22:21:37Z")

</div>

Hello GR,

I just installed GR 3.7 on my Centos 6.5 machine, everything I done is  
ok (I  
set the env. var. after accordingly).  
But when I run gnuradio-companion I got a bunch of errors appearing in  
the  
terminal:

_Error: ‘DrawingArea’ object has no attribute ‘set\_can\_focus’_

> > > Failure  
> > > Traceback (most recent call last):  
> > > File  
> > > “~/gnuradio-3.7\_install/lib64/python2.6/site-packages/gnuradio/grc/gui/MainWindow.py”,  
> > > line 188, in new\_page  
> > > file\_path=file\_path,  
> > > File  
> > > “~/gnuradio-3.7\_install/lib64/python2.6/site-packages/gnuradio/grc/gui/NotebookPage.py”,  
> > > line 82, in **init**  
> > > self.drawing\_area = DrawingArea(self.get\_flow\_graph())  
> > > File  
> > > “~/gnuradio-3.7\_install/lib64/python2.6/site-packages/gnuradio/grc/gui/DrawingArea.py”,  
> > > line 66, in **init**  
> > > self.set\_can\_focus(True)  
> > > _AttributeError: ‘DrawingArea’ object has no attribute ‘set\_can\_focus’_  
> > > Traceback (most recent call last):  
> > > File  
> > > “~/gnuradio-3.7\_install/lib64/python2.6/site-packages/gnuradio/grc/gui/ActionHandler.py”,  
> > > line 357, in \_handle\_action  
> > > self.main\_window.reports\_scrolled\_window.set\_visible(visible)  
> > > AttributeError: ‘gtk.ScrolledWindow’ object has no attribute  
> > > ‘set\_visible’  
> > > Traceback (most recent call last):  
> > > File  
> > > “~/gnuradio-3.7\_install/lib64/python2.6/site-packages/gnuradio/grc/gui/ActionHandler.py”,  
> > > line 361, in \_handle\_action  
> > > self.main\_window.btwin.set\_visible(visible)  
> > > AttributeError: ‘BlockTreeWindow’ object has no attribute ‘set\_visible’  
> > > Traceback (most recent call last):  
> > > File  
> > > “~/gnuradio-3.7\_install/lib64/python2.6/site-packages/gnuradio/grc/gui/ActionHandler.py”,  
> > > line 489, in \_handle\_action  
> > > Actions.ERRORS\_WINDOW\_DISPLAY.set\_sensitive(not  
> > > self.get\_flow\_graph().is\_valid())  
> > > File  
> > > “~/gnuradio-3.7\_install/lib64/python2.6/site-packages/gnuradio/grc/gui/MainWindow.py”,  
> > > line 304, in get\_flow\_graph  
> > > return self.get\_page().get\_flow\_graph()  
> > > \*AttributeError: ‘NoneType’ object has no attribute ‘get\_flow\_graph’  
> > > \*^CTraceback (most recent call last):  
> > > File “~/gnuradio-3.7\_install/bin/gnuradio-companion”, line 72, in  
> > >   
> > > ActionHandler(args, Platform())  
> > > File  
> > > “~/gnuradio-3.7\_install/lib64/python2.6/site-packages/gnuradio/grc/gui/ActionHandler.py”,  
> > > line 72, in **init**  
> > > gtk.main()

And the window of grc appears but empty nothing inside just gray.  
BTW the menu bar appears but the blocks, output and the main windows  
does  
not.  
Trying to click close or click on any button of the menu bar give no  
result.  
One need to close the graph by Ctl+C in the terminal.

Any hints or help is well appreciated.

Regards,  
Ruecan

–  
View this message in context:  
[http://gnuradio.4.n7.nabble.com/GRC-issues-with-GNU-Radio-3-7-tp46935.html](http://gnuradio.4.n7.nabble.com/GRC-issues-with-GNU-Radio-3-7-tp46935.html)  
Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![naeo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/57b2e6/32.png) [@naeo](https://www.ruby-forum.com/u/naeo)\
**Post date:** [March 14, 2014, 9:55am UTC](https://www.ruby-forum.com/t/grc-issues-with-gnu-radio-3-7/239774/2 "2014-03-14T09:55:55Z")

</div>

Hi,

looks like a version issue. Try updating to PyGTK 2.22 or above.

Sebastian

–  
Karlsruhe Institute of Technology (KIT)  
Communications Engineering Lab (CEL)

Dipl.-Ing. Sebastian Koslowski  
Research Associate

Kaiserstrae 12  
Building 05.01  
76131 Karlsruhe, Germany

Phone: +49 721 608-46275  
Fax: +49 721 608-46071  
Email: removed\_email\_address@domain.invalid  
Web: [http://www.cel.kit.edu/](http://www.cel.kit.edu/)

KIT University of the State of Baden-Wuerttemberg and National  
Research Center of the Helmholtz Association

---

<div class="post-metadata">

**Author:** ![naeo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/57b2e6/32.png) [@naeo](https://www.ruby-forum.com/u/naeo)\
**Post date:** [March 14, 2014, 11:39am UTC](https://www.ruby-forum.com/t/grc-issues-with-gnu-radio-3-7/239774/3 "2014-03-14T11:39:13Z")

</div>

I opened an issue on [gnuradio.org](http://gnuradio.org) for this.

[http://gnuradio.org/redmine/issues/653](http://gnuradio.org/redmine/issues/653)

You can pull a fix from:

[https://github.com/gnuradio/gnuradio-wg-grc/tree/grc\_pygtk\_backw\_compat\_fixes](https://github.com/gnuradio/gnuradio-wg-grc/tree/grc_pygtk_backw_compat_fixes)

Let me know if that works for you.

Sebastian

–  
Karlsruhe Institute of Technology (KIT)  
Communications Engineering Lab (CEL)

Dipl.-Ing. Sebastian Koslowski  
Research Associate

Kaiserstrae 12  
Building 05.01  
76131 Karlsruhe, Germany

Phone: +49 721 608-46275  
Fax: +49 721 608-46071  
Email: removed\_email\_address@domain.invalid  
Web: [http://www.cel.kit.edu/](http://www.cel.kit.edu/)

KIT University of the State of Baden-Wuerttemberg and National  
Research Center of the Helmholtz Association

---

<div class="post-metadata">

**Author:** ![naeo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/57b2e6/32.png) [@naeo](https://www.ruby-forum.com/u/naeo)\
**Post date:** [March 14, 2014, 8:09pm UTC](https://www.ruby-forum.com/t/grc-issues-with-gnu-radio-3-7/239774/4 "2014-03-14T20:09:13Z")

</div>

Thank you Sebastian for your reply,

I pulled your grc fixing, proceed to a clean make then did everything  
again  
however I got some error:

[29%] Building CXX object  
gr-blocks/lib/CMakeFiles/gnuradio-blocks.dir/message\_strobe\_random\_impl.cc.o  
In file included from  
/raid/nae/gnuradio/gr-blocks/lib/message\_strobe\_random\_impl.cc:27:  
/raid/nae/gnuradio/gr-blocks/lib/message\_strobe\_random\_impl.h:48: error:  
‘mt19937’ in namespace ‘boost::random’ does not name a type  
/raid/nae/gnuradio/gr-blocks/lib/message\_strobe\_random\_impl.cc: In  
constructor  
‘gr::blocks::message\_strobe\_random\_impl::message\_strobe\_random\_impl(pmt::pmt\_t,  
gr::blocks::message\_strobe\_random\_distribution\_t, float, float)’:  
/raid/nae/gnuradio/gr-blocks/lib/message\_strobe\_random\_impl.cc:57:  
error:  
class ‘gr::blocks::message\_strobe\_random\_impl’ does not have any field  
named  
‘d\_rng’  
/raid/nae/gnuradio/gr-blocks/lib/message\_strobe\_random\_impl.cc: In  
member  
function ‘void gr::blocks::message\_strobe\_random\_impl::update\_dist()’:  
/raid/nae/gnuradio/gr-blocks/lib/message\_strobe\_random\_impl.cc:89:  
error:  
‘d\_rng’ was not declared in this scope  
make[2]: \*\*\*  
[gr-blocks/lib/CMakeFiles/gnuradio-blocks.dir/message\_strobe\_random\_impl.cc.o]  
Error 1  
make[1]: \*\*\* [gr-blocks/lib/CMakeFiles/gnuradio-blocks.dir/all] Error 2

The point is those errors I got them before so to fix them (at that  
time) I  
just went to someone’s gnuradio branch, clone it and it did work for my  
machine instead of the master branch of gnuradio which issue thoses  
errors.  
Actually, I had already stated that matter here, but issue was not  
fixed:  
[http://gnuradio.4.n7.nabble.com/Issue-while-installing-GR-3-7-td46435.html#a46466](http://gnuradio.4.n7.nabble.com/Issue-while-installing-GR-3-7-td46435.html#a46466)

Regards,  
Naceur

–  
View this message in context:  
[http://gnuradio.4.n7.nabble.com/GRC-issues-with-GNU-Radio-3-7-tp46935p46962.html](http://gnuradio.4.n7.nabble.com/GRC-issues-with-GNU-Radio-3-7-tp46935p46962.html)  
Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![naeo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/57b2e6/32.png) [@naeo](https://www.ruby-forum.com/u/naeo)\
**Post date:** [March 15, 2014, 9:18am UTC](https://www.ruby-forum.com/t/grc-issues-with-gnu-radio-3-7/239774/5 "2014-03-15T09:18:50Z")

</div>

On Fri, Mar 14, 2014 at 8:03 PM, Ruecan [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ‘mt19937’ in namespace ‘boost::random’ does not name a type  
> ‘d\_rng’ was not declared in this scope
> 
> Regards,  
> Naceur

Naceur,

This issue was due to a mistaken #ifndef in the header file and was  
fixed a few weeks ago.

Tom
