discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] legacy application problem


From: engin karabulut
Subject: [Discuss-gnuradio] legacy application problem
Date: Wed, 16 Apr 2008 11:49:07 +0300
User-agent: KNode/0.10.5

according to eric's "gr.flow_graph and friends are gone" message,
legacy applications using gr.flow_graph is no longer supported.
but I wanna use
gnuradiogui(http://funwithelectronics.com/sdr/gnuradiogui.py) which is
based "gr.flow_graph". Then I converted it to "stdgui2.std_top_block"
interface. but it gives me error given below.

address@hidden:~/workspace-py/radiogui/src$ sudo python gnuradiogui.py
Traceback (most recent call last):
  File "gnuradiogui.py", line 992, in <module>
    app = stdgui2.stdapp(vindu,"GNURadio Control GUI")
  File "/usr/local/lib/python2.5/site-packages/gnuradio/wxgui/stdgui2.py",
line 36, in __init__
    wx.App.__init__ (self, redirect=False)
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 7757, in __init__
    self._BootstrapApp()
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 7354, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "/usr/local/lib/python2.5/site-packages/gnuradio/wxgui/stdgui2.py",
line 39, in OnInit
    frame = stdframe (self.top_block_maker, self.title, self._nstatus)
  File "/usr/local/lib/python2.5/site-packages/gnuradio/wxgui/stdgui2.py",
line 60, in __init__
    self.panel = stdpanel (self, self, top_block_maker)
  File "/usr/local/lib/python2.5/site-packages/gnuradio/wxgui/stdgui2.py",
line 81, in __init__
    self.top_block = top_block_maker (frame, self, vbox, sys.argv)
  File "gnuradiogui.py", line 67, in __init__
    self.fft = fftsink2.fft_sink_c(self,panel,title="Spectrum display",
fft_size=512, sample_rate=self.samplerate,fft_rate=10)
  File "/usr/local/lib/python2.5/site-packages/gnuradio/wxgui/fftsink2.py",
line 175, in __init__
    self.win = fft_window(self, parent, size=size)
  File "/usr/local/lib/python2.5/site-packages/gnuradio/wxgui/fftsink2.py",
line 229, in __init__
    plot.PlotCanvas.__init__ (self, parent, id, pos, size, style, name)
  File "/usr/local/lib/python2.5/site-packages/gnuradio/wxgui/plot.py", line
428, in __init__
    wx.Window.__init__(self, parent, id, pos, size, style, name)
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 8157, in __init__
    _core_.Window_swiginit(self,_core_.new_Window(*args, **kwargs))
TypeError: in method 'new_Window', expected argument 1 of type 'wxWindow *'

using old gnuradio codes is suggested to me, but I wanna use the latest
trunk code. could you help me? you can download it from here,

http://rapidshare.com/files/107901280/gnuradiogui.py.html






reply via email to

[Prev in Thread] Current Thread [Next in Thread]