# Grc icon issue and not saving python script after executing

**URL:** <https://www.ruby-forum.com/t/grc-icon-issue-and-not-saving-python-script-after-executing/242377>\
**Category:** GNU Radio\
**Created:** [June 19, 2015, 3:38pm UTC](https://www.ruby-forum.com/t/grc-icon-issue-and-not-saving-python-script-after-executing/242377 "2015-06-19T15:38:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [June 19, 2015, 3:38pm UTC](https://www.ruby-forum.com/t/grc-icon-issue-and-not-saving-python-script-after-executing/242377/1 "2015-06-19T15:38:05Z")

</div>

Hello List,

I have updated my gnu radio from 3.7.2.1 to 3.7.7.1.

After the update when i am typing the “gnuradio-companion” it is getting  
open but the propriety icon is missing. I tried to make the new flow  
graph and i am successfully able to execute the graph.

The results are coming out, but When i am trying to see that grc file  
it is getting open as “Xml” file. However, the extension of the graph is  
.grc only.

Also, after the successful execution of the graph the python script is  
not getting generated at all. And i am not able to directly open the  
built grc file by double click on that one.

Kindly suggest, What I have done wrong. Any help is appreciated.

Thank you

---

<div class="post-metadata">

**Author:** ![alok\_ranjan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/94ad74/32.png) [@alok\_ranjan](https://www.ruby-forum.com/u/alok_ranjan)\
**Post date:** [June 19, 2015, 4:09pm UTC](https://www.ruby-forum.com/t/grc-icon-issue-and-not-saving-python-script-after-executing/242377/2 "2015-06-19T16:09:04Z")

</div>

On Fri, Jun 19, 2015 at 9:36 AM, alok ranjan [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> is getting open as “Xml” file. However, the extension of the graph is .grc  
> Thank you

I’m not sure what you mean about the icon missing. What icon? We did  
change  
some of the toolbar icons since 3.7.2.1, though, so they might be  
different. I’m just not sure what you mean by missing.

Are you sure that you’re looking for the right Python file name? The ID  
in  
the Options block will set what that file is named as, so by default  
“ID=top\_block,” and so it’ll produce top\_block.py. Any chance you don’t  
have write permission in the directory?

Tom

---

<div class="post-metadata">

**Author:** ![alok\_ranjan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/94ad74/32.png) [@alok\_ranjan](https://www.ruby-forum.com/u/alok_ranjan)\
**Post date:** [June 19, 2015, 4:14pm UTC](https://www.ruby-forum.com/t/grc-icon-issue-and-not-saving-python-script-after-executing/242377/3 "2015-06-19T16:14:54Z")

</div>

On 06/19/2015 03:36 PM, alok ranjan wrote:

> it is getting open as “Xml” file. However, the extension of the graph  
> Thank you

Sounds like the freedesktop integration wasn’t setup correctly. Try  
running

YOUR\_INSTALL\_PREFIX/libexec/gnuradio/grc\_setup\_freedesktop install

Sebastian

---

<div class="post-metadata">

**Author:** ![alok\_ranjan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/94ad74/32.png) [@alok\_ranjan](https://www.ruby-forum.com/u/alok_ranjan)\
**Post date:** [June 19, 2015, 4:16pm UTC](https://www.ruby-forum.com/t/grc-icon-issue-and-not-saving-python-script-after-executing/242377/4 "2015-06-19T16:16:39Z")

</div>

Hello Tom,

Thank you for your prompt reply. I have fixed the python script issue.

Icon means after saving the grc flowgraph it is showing as xml file in  
browser where it is located (But it should open in gnuradio companion  
UI). There is no signal block icon. The file is getting saved as  
application/xml format ☹

Also, the flow graph dont have signal blocks icon as it was in earlier  
version.

Thank you for your reply.  
From: removed\_email\_address@domain.invalid  
Date: Fri, 19 Jun 2015 10:06:24 -0400  
Subject: Re: [Discuss-gnuradio] Grc icon issue and not saving python  
script after executing  
To: removed\_email\_address@domain.invalid  
CC: removed\_email\_address@domain.invalid

On Fri, Jun 19, 2015 at 9:36 AM, alok ranjan [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

Hello List,

I have updated my gnu radio from 3.7.2.1 to 3.7.7.1.

After the update when i am typing the “gnuradio-companion” it is getting  
open but the propriety icon is missing. I tried to make the new flow  
graph and i am successfully able to execute the graph.

The results are coming out, but When i am trying to see that grc file  
it is getting open as “Xml” file. However, the extension of the graph is  
.grc only.

Also, after the successful execution of the graph the python script is  
not getting generated at all. And i am not able to directly open the  
built grc file by double click on that one.

Kindly suggest, What I have done wrong. Any help is appreciated.

Thank you

I’m not sure what you mean about the icon missing. What icon? We did  
change some of the toolbar icons since 3.7.2.1, though, so they might be  
different. I’m just not sure what you mean by missing.  
Are you sure that you’re looking for the right Python file name? The ID  
in the Options block will set what that file is named as, so by default  
“ID=top\_block,” and so it’ll produce top\_block.py. Any chance you don’t  
have write permission in the directory?  
Tom

---

<div class="post-metadata">

**Author:** ![alok\_ranjan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/94ad74/32.png) [@alok\_ranjan](https://www.ruby-forum.com/u/alok_ranjan)\
**Post date:** [June 20, 2015, 3:50pm UTC](https://www.ruby-forum.com/t/grc-icon-issue-and-not-saving-python-script-after-executing/242377/5 "2015-06-20T15:50:01Z")

</div>

Well, yes, this is the source directory containing the unexpanded script  
and resource files.  
To run the comand you have to replace YOUR\_INSTALL\_PREFIX with the path  
prefix you installed gnuradio to, e.g. /usr/local

Also, please keep the list in cc.

Sebastian

---

<div class="post-metadata">

**Author:** ![alok\_ranjan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/94ad74/32.png) [@alok\_ranjan](https://www.ruby-forum.com/u/alok_ranjan)\
**Post date:** [June 22, 2015, 7:19am UTC](https://www.ruby-forum.com/t/grc-icon-issue-and-not-saving-python-script-after-executing/242377/6 "2015-06-22T07:19:31Z")

</div>

Hello Sebastian,

Thank you for your kind details on the issues .

Happy to share that I have fixed that problem. Also, I have configured  
the python script problem.

Thank you once again for help and your suggestions.

Regards,

Alok  
Subject: RE: [Discuss-gnuradio] Grc icon issue and not saving python  
script after executing  
From: removed\_email\_address@domain.invalid  
Date: Fri, 19 Jun 2015 22:45:51 +0200  
To: removed\_email\_address@domain.invalid; removed\_email\_address@domain.invalid

Well, yes, this is the source directory containing the unexpanded script  
and resource files.

To run the comand you have to replace YOUR\_INSTALL\_PREFIX with the path  
prefix you installed gnuradio to, e.g. /usr/local

Also, please keep the list in cc.

Sebastian

On June 19, 2015 4:31:29 PM CEST, alok ranjan  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

Hello Sebastian,

Thankk you for your prompt reply and help on the issue.

I tried with the command you suggested but it is saying no directory or  
install missing operand.

Please find the below details of my directory and guide me what command  
may fix the problem.

/home/alok/Downloads/gnuradio/gnuradio-3.7.7.1/grc/freedesktop

Thanks,

Date: Fri, 19 Jun 2015 16:13:02 +0200  
From: removed\_email\_address@domain.invalid  
To: removed\_email\_address@domain.invalid; removed\_email\_address@domain.invalid  
Subject: Re: [Discuss-gnuradio] Grc icon issue and not saving python  
script after executing

```
On 06/19/2015 03:36 PM, alok ranjan
  wrote:

  Hello List,

    I have updated my gnu radio from 3.7.2.1 to 3.7.7.1.

    After the update when i am typing the "gnuradio-companion" it is
    getting open but the propriety icon is missing. I tried to make
    the new flow graph and i am successfully able to execute the
    graph.

    The results are coming out, but When i am trying to see that
    grc file it is getting open as "Xml" file. However, the
    extension of the graph is .grc only.

    Also, after the successful execution of the graph the python
    script is not getting generated at all. And i am not able to
    directly open the built grc file by double click on that one.

    Kindly suggest, What I have done wrong. Any help is appreciated.

    Thank you

Sounds like the freedesktop integration wasn't setup correctly. Try
running

YOUR_INSTALL_PREFIX/libexec/gnuradio/grc_setup_freedesktop install

Sebastian

```

–

Sent from my Android device with K-9 Mail. Please excuse my brevity.
