Impossible to execute flow graph

Hello,
I installed gnuradio 3.6.2 on Ubunto 12.04LTS.
I always get errors when I execute the flow graph.
Example if I take ~ / gnuradio / gr-audio / examples / grc /
dial_tone.grc
Sev despite hours of research I have not been able to find out why it
does
not work.
I find the problemme throughout the examples given.
Thank you for your help
Pascal

Following error messages:

Generating: “/home/pascal/gnuradio/gr-audio/examples/grc/dial_tone.py”
Executing: “/home/pascal/gnuradio/gr-audio/examples/grc/dial_tone.py”
Traceback (most recent call last):
File “/home/pascal/gnuradio/gr-audio/examples/grc/dial_tone.py”, line
127, in
tb = dial_tone()
File “/home/pascal/gnuradio/gr-audio/examples/grc/dial_tone.py”, line
45,
in init
proportion=0,
File
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/forms/forms.py”,
line 234, in init
self._add_widget(self._text_box, label)
File
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/forms/forms.py”,
line 113, in _add_widget
update(self[INT_KEY])
File
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/forms/forms.py”,
line 101, in
update = lambda x: wx.PostEvent(widget, DataEvent(x))
File
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/forms/forms.py”,
line 53, in init
wx.PyEvent.init(self, wx.NewId(), EVT_DATA.typeId)
AttributeError: ‘PyEventBinder’ object has no attribute ‘typeId’

Looks like maybe you have a problem with your wxPython installation.
EVT_DATA should be of type wx._core.PyEventBinder, which has a typeId
property (wxPython API Documentation — wxPython Phoenix 4.2.1 documentation).

How did you install wxPython?

Tom

Hello Tom,
I have not installed wxPython.
I used build-gnuradio script to install gnuradio:
$ Wget http://www.sbrac.org/files/build-gnuradio && chmod a + x. /
Build-gnuradio &&. / Build-gnuradio

wxPython is not installed with this script?
How to check if wxPython is installed?
thank you
Pascal

How to check if wxPython is installed?

In a terminal window:

$ python
Python 2.7.3 (default, Jun 15 2012, 16:17:03)
[GCC 4.5.2] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.

import wx

else Python will complain.
John

On Fri, Nov 2, 2012 at 9:58 AM, pascal m [email protected] wrote:

proportion=0,

101, in
update = lambda x: wx.PostEvent(widget, DataEvent(x))
File
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/forms/forms.py”, line
53, in init
wx.PyEvent.init(self, wx.NewId(), EVT_DATA.typeId)
AttributeError: ‘PyEventBinder’ object has no attribute ‘typeId’

Looks like maybe you have a problem with your wxPython installation.
EVT_DATA should be of type wx._core.PyEventBinder, which has a typeId
property (wxPython API Documentation — wxPython Phoenix 4.2.1 documentation).

How did you install wxPython?

Tom

On Sun, Nov 4, 2012 at 3:52 PM, pascal m [email protected] wrote:

import wx
Python 2.7.3 (default, Aug 1 2012, 05:16:07)

Is this the correct version of python for gnuradio 3.6.2?
Thank you for your help :slight_smile:

Pascal

Pascal,

If you used build-gnuradio with 12.04, you should be fine with the
dependencies, so I’m not sure what’s going wrong with your
installation. And that version of Python is definitely fine.

Just to be absolutely clear, what you are doing is opening
dial_tone.grc in GNU Radio Companion and running “execute” from there?

What if you try something simpler, like creating a signal source, a
throttle block, and a WX FFT sink and run that?

Tom

What if you try something simpler, like creating a signal source, a
throttle block, and a WX FFT sink and run that?

Tom

Hello,
Well, I always error :frowning:
Tom, I created a new flow graph as you tell me, I set piece attached.
The steps that I do:

  1. I create the flow graph
  2. I generates the flow graph -> Build / Generate (F5)
  3. I execute the flow graph ->Build/execute (F6)

Now the error is:

Generating: “/home/pascal/SDR/Exemple-pascal/top_block.py”

Executing: “/home/pascal/SDR/Exemple-pascal/top_block.py”

Using Volk machine: ssse3_32
Traceback (most recent call last):
File “/home/pascal/SDR/Exemple-pascal/top_block.py”, line 70, in

tb = top_block()
File “/home/pascal/SDR/Exemple-pascal/top_block.py”, line 47, in
init
peak_hold=False,
File
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/fftsink_gl.py”,
line
123, in init
persist_alpha=persist_alpha,
File
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/fft_window.py”,
line
284, in init
self.control_panel = control_panel(self)
File
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/fft_window.py”,
line
71, in init
control_box.AddStretchSpacer()
AttributeError: ‘BoxSizer’ object has no attribute ‘AddStretchSpacer’

Pascal

else Python will complain.
John

Hello John
I did what you told me and here is the result:
(for information, I am beginner):

Pascal@bureau-ubuntu:~$ python
Python 2.7.3 (default, Aug 1 2012, 05:16:07)
[GCC 4.6.3] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.

import wx

I suppose as I have not had error, wxPython is well installed?
After, i also tried to run gnuradio-companion in another terminal window
but
I still get the error :frowning:

Is this the correct version of python for gnuradio 3.6.2?
Thank you for your help :slight_smile:

Pascal

“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/fft_window.py”, line
71, in init
control_box.AddStretchSpacer()
AttributeError: ‘BoxSizer’ object has no attribute ‘AddStretchSpacer’

Whats the version of WX python?

For some reason I am thinking AddStretchSpacer was added in 2.8, and you
may have 2.6 installed. Just a guess…

-josh

On 11/05/2012 01:45 PM, pascal m wrote:

What if you try something simpler, like creating a signal source, a
  1. I create the flow graph
    Traceback (most recent call last):
    File

Discuss-gnuradio mailing list
[email protected]
Discuss-gnuradio Info Page
Run build-gnuradio again, using the --verbose option, and see if there
were any errors when it was trying to install depends or compile.

On Mon, Nov 5, 2012 at 5:21 PM, pascal m [email protected] wrote:

I still have the same problem :frowning:
I’m not an expert but I have not seen any compilation error or dependence.

Is gnuradio 3.6.2 is compatible with Ubuntu 12.04 LTS?

Yes. Absolutely.

Tom

Run build-gnuradio again, using the --verbose option, and see if there
were
any errors when it was trying to install depends or compile.

[email protected]
Discuss-gnuradio Info Page

Hello Marcus,
I reinstalled gnuradio in verbose mode.
I attach the installation log.
I still have the same problem :frowning:
I’m not an expert but I have not seen any compilation error or
dependence.

Is gnuradio 3.6.2 is compatible with Ubuntu 12.04 LTS?

Pascal

On 11/05/2012 05:21 PM, pascal m wrote:

Pascal
I run it on a 12.04LTS system no problem.

may have 2.6 installed. Just a guess…

-josh


Discuss-gnuradio mailing list
[email protected]
Discuss-gnuradio Info Page

Hi Josh
My version of wxpython that I own is a (2, 6, 3, 2,‘’).
It is possible that it comes from that.
Do you know what version is recommended for gnuradio 3.6.2?
And what is the cleanest method to install on Ubuntu 12.04 LTS
Thank you:-)
Pascal

On 11/05/2012 02:54 PM, Marcus D. Leech wrote:

12.04 LTS should already have much newer versions of those things. Is
this a upgraded-from-much-older system?

There is a python-wxgtk2.8 and 2.6 listed in synaptic on my 12.04
machine. I guess 2.6 is checked. Just uncheck one and check the other.

-josh

Le 5 nov. 2012 à 23:54, “Marcus D. Leech” [email protected] a écrit :


Marcus L.
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org


Discuss-gnuradio mailing list
[email protected]
Discuss-gnuradio Info Page

I install Ubuntu 12.04 two weeks ago on a blank hard disk.
I update regularly.
My version of wxpython that I own is a 2.6.

Le 5 nov. 2012 à 23:59, Josh B. [email protected] a écrit :

-josh

Ok Josh,
I try this tomorrow.
It’s late for me in France, i’m going to bed…
Thank you:-)

On 11/05/2012 05:42 PM, pascal m wrote:

Whats the version of WX python?

For some reason I am thinking AddStretchSpacer was added in 2.8,
and you
may have 2.6 installed. Just a guess...

-josh

12.04 LTS should already have much newer versions of those things. Is
this a upgraded-from-much-older system?

2012/11/6 Immobilier [email protected]

There is a python-wxgtk2.8 and 2.6 listed in synaptic on my 12.04
machine. I guess 2.6 is checked. Just uncheck one and check the other.

-josh

Well done Jost :slight_smile:
your idea is good.
This was the version of wxPython that was not good!
I switched to version 2.8.
To do this I uninstalled python-wxgtk2.6 with synaptic and I reinstalled
python-wxgtk2.8 and all packages available 2.8.12.1-6 (~ 15).

Now all works fine with my key EZCAP EZTV-668 with RTL2832U / E4000 :slight_smile:
:slight_smile:

Now I do not know if there a person to contact to force the installation
package wxpython 2.8 in the installation script Gnuradio3.6.2?

I hope my experience will more than me.

A big thank you to all who helped me find a solution :slight_smile:

For me it was the first time I used a mailing list and especially the
first time
in English language (thank you google translation) :wink:

thank you very much

Pascal