using the command in terminal:
cd ~/src/op25/python ./audio_p25_rx.py -a
i get this error:
Using Volk machine: ssse3_32 Traceback (most recent call last): File "./audio_p25_rx.py", line 1044, in <module> app = stdgui2.stdapp(p25_rx_block, "APCO P25 Receiver", 3) File "/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/stdgui2.py", line 38, in __init__ wx.App.__init__ (self, redirect=False) File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7981, in __init__ self._BootstrapApp() File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7555, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/stdgui2.py", line 42, in OnInit self._max_noutput_items) File "/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/stdgui2.py", line 64, in __init__ self.panel = stdpanel (self, self, top_block_maker, max_nouts) File "/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/stdgui2.py", line 86, in __init__ self.top_block = top_block_maker (frame, self, vbox, sys.argv) File "./audio_p25_rx.py", line 97, in __init__ self.__init_gui(frame, panel, vbox) File "./audio_p25_rx.py", line 298, in __init_gui self.slicer = op25.fsk4_slicer_fb(levels) AttributeError: 'module' object has no attribute 'fsk4_slicer_fb'
can anybody help me with this error please?
--- In op25-dev@yahoogroups.com, <md123@...> wrote:
AttributeError: 'module' object has no attribute 'fsk4_slicer_fb'
can anybody help me with this error please?
Hi there
Could you please run a quick test for us and report back the results - ideally please paste the entire response starting from entering the python command
So the test is - from the command prompt issue the "python" command with no args - you should receive some messages and then a ">>>" prompt - enter this command : from gnuradio import op25 - then enter this one : dir(op25)
Here's an example of what I'm looking for
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information.
from gnuradio import op25 dir(op25)
['__builtins__', '__doc__', '__file__', '__name__', '__package__', '_newclass', '_object', '_op25', '_swig_getattr', '_swig_property', '_swig_repr', '_swig_setattr', '_swig_setattr_nondynamic', '_swig_setattr_nondynamic_method', 'decoder_bf', 'fsk4_slicer_fb', 'op25_decoder_bf_sptr', 'op25_decoder_bf_sptr_swigregister', 'op25_fsk4_slicer_fb_sptr', 'op25_fsk4_slicer_fb_sptr_swigregister', 'op25_pcap_source_b_sptr', 'op25_pcap_source_b_sptr_swigregister', 'pcap_source_b']
Max
Hi there
Could you please run a quick test for us and report back the results - ideally please paste the entire response starting from entering the python command
Hello! i did what you said and here it is:
from gnuradio import op25 dir(op25)
['__builtins__', '__doc__', '__file__', '__name__', '__package__', '_newclass', '_object', '_op25', '_swig_getattr', '_swig_property', '_swig_repr', '_swig_setattr', '_swig_setattr_nondynamic', '_swig_setattr_nondynamic_method', 'decoder_ff', 'op25_decoder_ff_sptr', 'op25_decoder_ff_sptr_swigregister']
Thanks! ----------------------
--- In op25-dev@yahoogroups.com, <md123@...> wrote:
dir(op25)
['__builtins__', '__doc__', '__file__', '__name__', '__package__', '_newclass', '_object', '_op25', '_swig_getattr', '_swig_property', '_swig_repr', '_swig_setattr', '_swig_setattr_nondynamic', '_swig_setattr_nondynamic_method', 'decoder_ff', 'op25_decoder_ff_sptr', 'op25_decoder_ff_sptr_swigregister']
Indeed - this appears to be from a very ancient version of op25.
Either you have been a very long-time user, or perhaps you've gotten svn to cough up an old version of the software...
You'll need to uninstall and do an install using the current version.
Also Perhaps Stevie has some insight as to how this state of affairs might have come about, not sure...
Max
---- ikj1234i ikj1234i@yahoo.com wrote:
Either you have been a very long-time user, or perhaps you've gotten svn to cough up an old version of the software...
You'll need to uninstall and do an install using the current version.
Also Perhaps Stevie has some insight as to how this state of affairs might have come about, not sure...
Max
i used the osmocom buildinstructions "svn co http://op25.osmocom.org/svn/trunk op25". how should i get the latest?
Indeed - this appears to be from a very ancient version of op25.
Either you have been a very long-time user, or perhaps you've gotten svn to cough up an old version of the software...
You'll need to uninstall and do an install using the current version.
Thank you so much Max! it is now executing without dying. all the weird errors i was getting are GONE. now i can focus on sniffing some signals!
Thanks ALOT, Matt
---- md123@nycap.rr.com wrote:
Indeed - this appears to be from a very ancient version of op25.
Either you have been a very long-time user, or perhaps you've gotten svn to cough up an old version of the software...
You'll need to uninstall and do an install using the current version.
Thank you so much Max! it is now executing without dying. all the weird errors i was getting are GONE. now i can focus on sniffing some signals!
Thanks ALOT, Matt
so everything was running without errors. well not so fast. i turned the computer off (so i could get closer to a tower) and now one of the old errors is killing Op25 again:
Imported legacy fsk4 Using Volk machine: ssse3_32 Traceback (most recent call last): File "/home/matt/op25_grc.py", line 523, in <module> tb = op25_grc() File "/home/matt/op25_grc.py", line 263, in __init__ self.wxgui_fftsink2_0_0.set_callback(wxgui_fftsink2_0_0_callback) File "/usr/local/lib/python2.7/dist-packages/gnuradio/gr/hier_block2.py", line 54, in __getattr__ return getattr(self._hb, name) AttributeError: 'gr_hier_block2_sptr' object has no attribute 'set_callback'
disconcerting to see this error again but by disabling the 'FFT Sink", i can get rid of that error. the scope plot runs but i have no sound. there is some output in terminal:
Found RTL2832 device: ezcap EzTV (tuner: interface not implemented) Sample rate range: 900001 - 3200000 Hz Crystal frequency: 28800000 Hz Wait delay: 196.608 ms Using new decoder_bf Using new fsk4_demod_ff swig/python detected a memory leak of type 'gr_basic_block_sptr *', no destructor found. swig/python detected a memory leak of type 'gr_basic_block_sptr *', no destructor found. swig/python detected a memory leak of type 'gr_basic_block_sptr *', no destructor found. swig/python detected a memory leak of type 'gr_basic_block_sptr *', no destructor found. swig/python detected a memory leak of type 'gr_basic_block_sptr *', no destructor found. swig/python detected a memory leak of type 'gr_basic_block_sptr *', no destructor found. swig/python detected a memory leak of type 'gr_basic_block_sptr *', no destructor found.
gr_fir_ccc: using SSE gr_fir_fff: using SSE
Capture threading starting: 0x9996888 Finished buffering (655360/1048576) [#0]
first: any idea as to how i can get some sound? what should i be looking for in the scope?
second: i have a strong desire to get rid of the "AttributeError: 'gr_hier_block2_sptr' object has no attribute 'set_callback'" without disabling the fft sinks! how is that i was not getting this error with the fft sinks enabled after uninstalling and reinstalling OP25 but after turning the computer off and restarting the error is back?
third: what is this "memory leak" message?
thanks.
On 6 March 2013 07:55, md123@nycap.rr.com wrote:
third: what is this "memory leak" message?
That's because the op25.i isn't declaring any destructors. The minimum fix is to change that for our code but what's really required is to update our for GNURadio 3.6 and that means switching to a cmake build, renaming code, splitting impl/interface, dropping obsolete interfaces and making use of new features. If we go that far then there's a heap of other stuff to do. I am about to write another email about that.
---- Steve Glass stevie.glass@gmail.com wrote:
On 6 March 2013 07:55, md123@nycap.rr.com wrote:
third: what is this "memory leak" message?
That's because the op25.i isn't declaring any destructors. The minimum fix is to change that for our code but what's really required is to update our for GNURadio 3.6 and that means switching to a cmake build, renaming code, splitting impl/interface, dropping obsolete interfaces and making use of new features. If we go that far then there's a heap of other stuff to do. I am about to write another email about that.
Will it still decode with this "memory leak"?
I need a baseband P25 sample file to test and get familiar with the scopes. I am unsure of my ezcap tv tuner and i am unsure of capturing a signal with the discriminator tap (i dont even know what kind of file i should save it as!). I really need a sample that is known to be good so that i can learn what it looks like on the scopes.
for the record id like to say that setting .gnuradio/config.conf to:
[wxgui] style=gl
(instead of 'style=nongl') has killed the 'set callback' and 'swig_pmt.i' attribute errors. Balint brought the opengl issue to my attention. the 'fsk4_slicer_fb' attribute error was fixed by reinstalling op25; apparently somehow i had a very old version of op25 that didnt have the slicer. Max exposed this weirdness by looking at:
from gnuradio import op25 dir(op25)
['__builtins__', '__doc__', '__file__', '__name__', '__package__', '_newclass', '_object', '_op25', '_swig_getattr', '_swig_property', '_swig_repr', '_swig_setattr', '_swig_setattr_nondynamic', '_swig_setattr_nondynamic_method', 'decoder_ff', 'op25_decoder_ff_sptr', 'op25_decoder_ff_sptr_swigregister']
Thanks everybody! Matt
please if anyone has a good sample of baseband P25 please share a file or two with me. ---------------------------------------