Error executing usrp2_wfm_rcv.py

Hello to everybody.

First of all, I am working with Ubuntu 10.10 and GNU Radio 3.4.0. I
tried to
run the usrp2_wfm_rcv.py graph but I got the following error:

Traceback (most recent call last):
File “./usrp2_wfm_rcv.py”, line 289, in
app = stdgui2.stdapp (wfm_rx_block, “USRP2 WFM RX”)
File
“/usr/local/lib/python2.6/dist-packages/gnuradio/wxgui/stdgui2.py”,
line 36, in init
wx.App.init (self, redirect=False)
File
“/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py”,
line 7978, in init
self._BootstrapApp()
File
“/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py”,
line 7552, in _BootstrapApp
return core.PyApp__BootstrapApp(*args, **kwargs)
File
“/usr/local/lib/python2.6/dist-packages/gnuradio/wxgui/stdgui2.py”,
line 39, in OnInit
frame = stdframe (self.top_block_maker, self.title, self._nstatus)
File
“/usr/local/lib/python2.6/dist-packages/gnuradio/wxgui/stdgui2.py”,
line 60, in init
self.panel = stdpanel (self, self, top_block_maker)
File
“/usr/local/lib/python2.6/dist-packages/gnuradio/wxgui/stdgui2.py”,
line 81, in init
self.top_block = top_block_maker (frame, self, vbox, sys.argv)
File “./usrp2_wfm_rcv.py”, line 118, in init
self._build_gui(vbox, usrp_rate, demod_rate, audio_rate)
File “./usrp2_wfm_rcv.py”, line 201, in _build_gui
callback=self.set_gain)
File “/usr/local/lib/python2.6/dist-packages/gnuradio/wxgui/form.py”,
line 225, in init
nsteps = int((self.max-self.min)/self.step_size)
ZeroDivisionError: float division

I read in the mailing list that this problem could be related to the
setting
up of the gain slider control but I don’t know how to fix it. Could
anybody
help me?

A lot of thanks!

Regards.

Eduardo.

On Mon, 2011-06-06 at 18:42 +0200, Eduardo Lloret F. wrote:

“/usr/local/lib/python2.6/dist-packages/gnuradio/wxgui/stdgui2.py”,
File
line 81, in init
self.top_block = top_block_maker (frame, self, vbox, sys.argv)
File “./usrp2_wfm_rcv.py”, line 118, in init
self._build_gui(vbox, usrp_rate, demod_rate, audio_rate)
File “./usrp2_wfm_rcv.py”, line 201, in _build_gui
callback=self.set_gain)
File
“/usr/local/lib/python2.6/dist-packages/gnuradio/wxgui/form.py”, line
225, in init
nsteps = int((self.max-self.min)/self.step_size)
ZeroDivisionError: float division

make the step size of your slider something besides zero

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs