# Grc launch failed on MinGW

**URL:** <https://www.ruby-forum.com/t/grc-launch-failed-on-mingw/210617>\
**Category:** GNU Radio\
**Created:** [August 12, 2011, 6:07am UTC](https://www.ruby-forum.com/t/grc-launch-failed-on-mingw/210617 "2011-08-12T06:07:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [August 12, 2011, 6:07am UTC](https://www.ruby-forum.com/t/grc-launch-failed-on-mingw/210617/1 "2011-08-12T06:07:11Z")

</div>

I followed all the instructions on [gnuradio.org](http://gnuradio.org) to build gnuradio+uhd on  
XP+SP3 with MinGW  
Everything went well. uhd\_fft.py shows spectrum window, all well.  
However, when I tried gnuradio-companion, I got the following errors.  
Any  
ideas? I thought someone had success with grc on MinGW.

C:/MinGW/msys/1.0/local/bin/gnuradio-companion:51: GtkWarning: Could not  
find th  
e icon ‘gnuradio-grc’. The ‘hicolor’ theme  
was not found either, perhaps you need to install it.  
You can get a copy from:  
[Index of /releases](http://icon-theme.freedesktop.org/releases)  
try:  
gtk.window\_set\_default\_icon(gtk.IconTheme().load\_icon(‘gnuradio-grc’,  
256  
, 0))  
\<\<\< Welcome to GNU Radio Companion \>\>\>  
Error: ‘options’

> > > Failue  
> > > Traceback (most recent call last):  
> > > File  
> > > "C:\MinGW\msys\1.0\local\lib\site-packages\gnuradio\grc\gui\MainWindow.py  
> > > ", line 171, in new\_page  
> > > flow\_graph = self.\_platform.get\_new\_flow\_graph()  
> > > File  
> > > “C:\MinGW\msys\1.0\local\lib\site-packages\gnuradio\grc\base\Platform.py”  
> > > , line 148, in get\_new\_flow\_graph  
> > > def get\_new\_flow\_graph(self): return self.FlowGraph(platform=self)  
> > > File  
> > > “C:\MinGW\msys\1.0\local\lib\site-packages\gnuradio\grc\python\FlowGraph.  
> > > py”, line 31, in **init**  
> > > \_FlowGraph. **init** (self, \*\*kwargs)  
> > > File  
> > > "C:\MinGW\msys\1.0\local\lib\site-packages\gnuradio\grc\base\FlowGraph.py  
> > > ", line 35, in **init**  
> > > self.import\_data()  
> > > File  
> > > "C:\MinGW\msys\1.0\local\lib\site-packages\gnuradio\grc\base\FlowGraph.py  
> > > ", line 176, in import\_data  
> > > self.\_options\_block = self.get\_parent().get\_new\_block(self,  
> > > ‘options’)  
> > > File  
> > > “C:\MinGW\msys\1.0\local\lib\site-packages\gnuradio\grc\base\Platform.py”  
> > > , line 158, in get\_new\_block  
> > > def get\_new\_block(self, flow\_graph, key): return  
> > > self.Block(flow\_graph,  
> > > n=se  
> > > lf.\_blocks\_n[key])  
> > > File  
> > > “C:\MinGW\msys\1.0\local\lib\site-packages\gnuradio\grc\base\odict.py”,  
> > > l  
> > > ine 34, in **getitem**  
> > > return self.\_data[key]  
> > > KeyError: ‘options’  
> > > Error: ‘options’  
> > > Failue  
> > > Traceback (most recent call last):  
> > > File  
> > > "C:\MinGW\msys\1.0\local\lib\site-packages\gnuradio\grc\gui\MainWindow.py  
> > > ", line 171, in new\_page  
> > > flow\_graph = self.\_platform.get\_new\_flow\_graph()  
> > > File  
> > > “C:\MinGW\msys\1.0\local\lib\site-packages\gnuradio\grc\base\Platform.py”  
> > > , line 148, in get\_new\_flow\_graph  
> > > def get\_new\_flow\_graph(self): return self.FlowGraph(platform=self)  
> > > File  
> > > “C:\MinGW\msys\1.0\local\lib\site-packages\gnuradio\grc\python\FlowGraph.  
> > > py”, line 31, in **init**  
> > > \_FlowGraph. **init** (self, \*\*kwargs)  
> > > File  
> > > "C:\MinGW\msys\1.0\local\lib\site-packages\gnuradio\grc\base\FlowGraph.py  
> > > ", line 35, in **init**  
> > > self.import\_data()  
> > > File  
> > > "C:\MinGW\msys\1.0\local\lib\site-packages\gnuradio\grc\base\FlowGraph.py  
> > > ", line 176, in import\_data  
> > > self.\_options\_block = self.get\_parent().get\_new\_block(self,  
> > > ‘options’)  
> > > File  
> > > “C:\MinGW\msys\1.0\local\lib\site-packages\gnuradio\grc\base\Platform.py”  
> > > , line 158, in get\_new\_block  
> > > def get\_new\_block(self, flow\_graph, key): return  
> > > self.Block(flow\_graph,  
> > > n=se  
> > > lf.\_blocks\_n[key])  
> > > File  
> > > “C:\MinGW\msys\1.0\local\lib\site-packages\gnuradio\grc\base\odict.py”,  
> > > l  
> > > ine 34, in **getitem**  
> > > return self.\_data[key]  
> > > KeyError: ‘options’  
> > > Traceback (most recent call last):  
> > > File  
> > > “C:\MinGW\msys\1.0\local\lib\site-packages\gnuradio\grc\gui\ActionHandler  
> > > .py”, line 310, in \_handle\_action  
> > > Actions.ERRORS\_WINDOW\_DISPLAY.set\_sensitive(not  
> > > self.get\_flow\_graph().is\_val  
> > > id())  
> > > File  
> > > "C:\MinGW\msys\1.0\local\lib\site-packages\gnuradio\grc\gui\MainWindow.py  
> > > ", line 278, in get\_flow\_graph  
> > > return self.get\_page().get\_flow\_graph()  
> > > AttributeError: ‘NoneType’ object has no attribute ‘get\_flow\_graph’

---

<div class="post-metadata">

**Author:** ![Kyle\_Z](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/6f9a4e/32.png) [@Kyle\_Z](https://www.ruby-forum.com/u/Kyle_Z)\
**Post date:** [August 12, 2011, 10:06am UTC](https://www.ruby-forum.com/t/grc-launch-failed-on-mingw/210617/2 "2011-08-12T10:06:42Z")

</div>

On 08/11/2011 09:07 PM, Kyle Z. wrote:

> You can get a copy from:  
> [Index of /releases](http://icon-theme.freedesktop.org/releases)  
> try: gtk.window\_set\_default\_icon(gtk.IconTheme().load\_icon(‘gnuradio-grc’,  
> 256  
> , 0))  
> \<\<\< Welcome to GNU Radio Companion \>\>\>  
> Error: ‘options’

I think this means it cant find the xml block files. Probably some  
mismatch between mingw paths and native windows paths?

This may be of help:  
[http://gnuradio.org/redmine/projects/gnuradio/wiki/GNURadioCompanion#Installing-the-XML-Block-Definition](http://gnuradio.org/redmine/projects/gnuradio/wiki/GNURadioCompanion#Installing-the-XML-Block-Definition)

-josh

---

<div class="post-metadata">

**Author:** ![Kyle\_Z](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/6f9a4e/32.png) [@Kyle\_Z](https://www.ruby-forum.com/u/Kyle_Z)\
**Post date:** [August 12, 2011, 3:47pm UTC](https://www.ruby-forum.com/t/grc-launch-failed-on-mingw/210617/3 "2011-08-12T15:47:27Z")

</div>

On 12 August 2011 18:05, Josh B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Yes, you are so right! I need to create config.conf in ~/.gnuradio  
> [grc]  
> local\_blocks\_path=C:/MinGW/msys/1.0/local/share/gnuradio/grc/blocks

Even though the xml files are all in the default directory. Also  
/usr/local/share/gnuradio/grc/blocks does not work. Must use windows  
style  
path.

Thanks Josh for the prompt support.
