USRP - Radio Astronomy

Hi,I am running UBUNTU 7.10 and gnuradio-3.1.1. for USRP. The fm radio
works fine. However, when I try running ‘invoke_ra script’ I receive
the following. Can someone help please?Thank you,FrankTraceback (most
recent call last): File “/usr/local/bin/usrp_ra_receiver.py”, line
1089, in main () File “/usr/local/bin/usrp_ra_receiver.py”,
line 1085, in main app = stdgui2.stdapp(app_flow_graph, “RADIO
ASTRONOMY SPECTRAL/CONTINUUM RECEIVER: $Revision: 7045 $”, nstatus=1)
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.6-gtk2-unicode/wx/_core.py”, line
7700, in init self._BootstrapApp() File
“/usr/lib/python2.5/site-packages/wx-2.6-gtk2-unicode/wx/_core.py”, line
7352, 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 “/usr/local/bin/usrp_ra_receiver.py”, line 258, in
init ofunc=self.fft_outfunc, xydfunc=self.xydfunc) File
“/usr/local/lib/python2.5/site-packages/gnuradio/wxgui/ra_fftsink.py”,
line 166, in init self.win = fft_window(self, parent, size=size)
File
“/usr/local/lib/python2.5/site-packages/gnuradio/wxgui/ra_fftsink.py”,
line 220, 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.6-gtk2-unicode/wx/_core.py”, line
8069, in init newobj = core.new_Window(*args,
**kwargs)TypeError: argument number 1: a ‘wxWindow *’ is expected,
‘PySwigObject(��Ϸ��Ϸ)’ is received


Fancy some celeb spotting?

Yes Lars, I’m sure you are correct, it’s something to do with our
version of Python.

When I downloaded and installed a required package ‘wxWidgets
(wx-common)’ and ‘wxPython (python-wxgtx2.6)’
I had a message to say wx----- was previously named ‘wxWindows’.

Guess what? The last line of my fault listing states ‘wxWindow’ is
expected. All other lines refer to wx something or other.

Just hope Marcus turns up soon.

Regards,

Frank

Frank Rawlins wrote:

Just hope Marcus turns up soon.

Regards,

Frank

I haven’t seen this error before.

I’m running Fedora Core 7, with all the updates. I built and tested
from the Gnu Radio developer tree a couple of weeks ago,
and everything was fine.

I’ll give you some more tutorials on the startup scripts later.

On 12/20/2007 12:04 PM, Lars E. Pettersson wrote:

On 12/19/2007 09:49 PM, Marcus L. wrote:

I’m running Fedora Core 7, with all the updates. I built and tested
from the Gnu Radio developer tree a couple of weeks ago,
and everything was fine.

Ah, then it should work here also, fully updated Fedora 7 here also,
strange… What relevant compat-packages do you have installed? Could
perhaps be a difference there?

I looked around some more and finally got it working, see attached
patch.

Lars

Lars E. Pettersson wrote:

I looked around some more and finally got it working, see attached patch.

Lars
Hmmmm. That’s strange. I’m going to pull the latest SVN
developer tree, and re-build from scratch on my F7 updated
system (it’s an X86_64, but I also use an x86 system).

On 12/19/2007 09:49 PM, Marcus L. wrote:

I’m running Fedora Core 7, with all the updates. I built and tested
from the Gnu Radio developer tree a couple of weeks ago,
and everything was fine.

Ah, then it should work here also, fully updated Fedora 7 here also,
strange… What relevant compat-packages do you have installed? Could
perhaps be a difference there?

I tried installing the compat-wxPythonGTK2 but that did not help, and
only created problems for the other scripts, that worked before.

The only relevant compat-package that I have installed at the moment is
compat-wxGTK26 (with associated devel package)

Is your installation i386 or x86_64? (not sure if that matters in this
case though)

Lars

Lars E. Pettersson [email protected]
http://www.sm6rpz.se/

Marcus L. wrote:

Hmmmm. That’s strange. I’m going to pull the latest SVN
developer tree, and re-build from scratch on my F7 updated
system (it’s an X86_64, but I also use an x86 system).

OK, so the developer tree as of a few weeks ago was working fine, but
indeed when I tried the latest SVN
developer tree, the program bails as seen by Lars and Frank.

I’ll apply the patches and checkin fixes.

Hi Marcus,

Sorry to trouble you again.

I am at a loss as to what I need to download/install to put things
right!

Regards,

Frank

On 12/20/07, Marcus L. [email protected] wrote:

OK, so the developer tree as of a few weeks ago was working fine, but
indeed when I tried the latest SVN
developer tree, the program bails as seen by Lars and Frank.

Mea culpa. I’ve been going through the trunk and converting the
remainder of the code to use gr.top_block and gr.hier_block2, and
missed this.


Johnathan C.
Corgan Enterprises LLC
http://corganenterprises.com/