HF explorer

Hi All,
I have been trying to run the HF explorer example that was provide
with gnuradio with a basic RX board in the USRP, by I continually get
this error.

/usr/share/gnuradio/examples/hf_explorer$ ./hfx2.py -R B -c 3.697e6 >>> gr_fir_ccc: using SSE Traceback (most recent call last): File "./hfx2.py", line 799, in app = MyApp(0) File "/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7935, in __init__ self._BootstrapApp() File "/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7509, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs) File "./hfx2.py", line 794, in OnInit frame = MyFrame(None, -1, "HF Explorer 2") File "./hfx2.py", line 371, in __init__ em.eventManager.Register(self.Mouse, wx.EVT_MOTION, self.fft.win) File "/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/lib/evtmgr.py", line 103, in Register if not self.__haveMessageAdapter(listener, topic): File "/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/lib/evtmgr.py", line 290, in __haveMessageAdapter return self.messageAdapterDict[topicPattern].has_key(eventHandler) TypeError: unhashable type: 'fft_window' aU

No gui comes up and I have to kill the program with ctl-C.

I am guessing from what is says that there is something wrong with the
gui.

I have not been able to find any info on google as yet (am still
looking though) if someone on this list has some more information that
would be great!

Thanks :slight_smile:
Andrew Gilbett
[email protected]

Andrew

yes, I see the same thing running against svn head at the time of
writing - rev 11564.

Just comment out lines 371 and 373 of hfx2.py and all seems to work.
Guess we lose some functionality but at least it does run up. Suppose we
should debug that really :-;

I’ve been having too much fun getting jack audio and griffin powermate
usb thingy going over IP so I can run the USRP on a more powerful remote
machine and access it from my laptop via nxclient over LAN. Just about
works now. What’s really cool is it’s easy to hack gnu radio companion
to include a jack audio sink. I have to say I’m impressed by GRC. Jack
audio does a great job too.

svn diff
Index: hfx2.py

— hfx2.py (revision 11525)
+++ hfx2.py (working copy)
@@ -368,9 +368,9 @@
self.tb.start()

      # for mouse position reporting on fft display
  •    em.eventManager.Register(self.Mouse, wx.EVT_MOTION, 
    

self.fft.win)

  •    #em.eventManager.Register(self.Mouse, wx.EVT_MOTION, 
    

self.fft.win)
# and left click to re-tune

  •    em.eventManager.Register(self.Click, wx.EVT_LEFT_DOWN,
    

self.fft.win)

  •    #em.eventManager.Register(self.Click, wx.EVT_LEFT_DOWN,
    

self.fft.win)

      # start a timer to check for web commands
      if WEB_CONTROL:

cheers

John
G4RDC, Reading, UK

Thanks for that it started working immediately after removing those
lines!

Thanks :slight_smile:
Andrew

2009/8/11 John G. [email protected]:

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