Re: [Discuss-gnuradio] maximum recursion depth exceeded

2010-06-01 Thread Johnathan Corgan
On Tue, Jun 1, 2010 at 07:52, Yan Nie yn...@uwo.ca wrote:

 An runtime error came out when I run my python prgram:
 File /home/john/gnuradio/gr-iono/usrp_source_c.py, line 16, in __init__
     gr.io_signature(1,1,gr.sizeof_gr_complex))    #output signiture
   File /usr/local/lib/python2.5/site-packages/gnuradio/gr/hier_block2.py,
 line 42, in __init__
     self._hb = hier_block2_swig(name, input_signature, output_signature)
 RuntimeError: maximum recursion depth exceeded

This can happen if you create a hierarchical block in Python, but
forget to call the parent Python class __init__ function in your own
__init__ function, or if the arguments to the parent Python class
__init__ function are malformed.

Johnathan

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] maximum recursion depth exceeded

2010-06-01 Thread Eric Blossom
On Tue, Jun 01, 2010 at 09:39:47AM -0700, Johnathan Corgan wrote:
 On Tue, Jun 1, 2010 at 07:52, Yan Nie yn...@uwo.ca wrote:
 
  An runtime error came out when I run my python prgram:
  File /home/john/gnuradio/gr-iono/usrp_source_c.py, line 16, in __init__
      gr.io_signature(1,1,gr.sizeof_gr_complex))    #output signiture
    File /usr/local/lib/python2.5/site-packages/gnuradio/gr/hier_block2.py,
  line 42, in __init__
      self._hb = hier_block2_swig(name, input_signature, output_signature)
  RuntimeError: maximum recursion depth exceeded
 
 This can happen if you create a hierarchical block in Python, but
 forget to call the parent Python class __init__ function in your own
 __init__ function, or if the arguments to the parent Python class
 __init__ function are malformed.
 
 Johnathan

Also, what version of GNU Radio are you using?
(I seem to remember we made a change that produced a more informative
message in this case.)

Eric

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] maximum recursion depth exceeded

2010-06-01 Thread Yan Nie
  Also, what version of GNU Radio are you using?
 (I seem to remember we made a change that produced a more informative
 message in this case.)
 
 Eric


Thank you so much for the reply. I'm using GNU Radio 3.2 svn.

I've another question related to the received data. I'm trying to capture the 
signal just after tunning back to baseband by using 
file_sink_c(gr.sizeof_gr_complex,filename) and reading data in octave. Here is 
a portion of the data I captured:
  0 -2i
  6 +9i
-33 -   52i
 83 +  144i
   -189 -  331i
368 +  663i
   -694 - 1258i
   1365 + 2435i
  -4062 - 6523i
   1164 - 1570i
  -1669 +  550i
  -1177 - 2948i
605 + 1495i
   -320 -  797i
159 +  403i
-70 -  186i
 25 +   70i
 -6 -   18i
  0 +0i
  0 +0i
  0 -1i
  0 +0i
  0 -1i
  0 -1i
  0 +0i
  0 -1i
  0 +0i
 -1 +0i
  0 +0i
 -1 +0i
  0 +0i
  0 +0i
 -1 +0i
  0 +0i
  0 +0i
  0 +0i
  0 +0i
 -1 +0i
  0 +0i
 -1 -1i
I got an info on dealing with the received data, the firest 20 or so samples is 
an artifact of the USRP due to the first time enable, which can be ignored. 
However, How can I figure out how many samples can be ignored in my case? Where 
can be starting sample to collect the data to do analysis?

Thanks for help.

Regards,
Yan

attachment: ynie3.vcf___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Maximum recursion depth exceeded

2009-02-01 Thread Philip Balister
On Sat, Jan 31, 2009 at 12:49 PM, Philip Balister
philip.balis...@gmail.com wrote:

 /home/balister/oe/tmp/staging/x86_64-linux/usr/bin/python: line 1:
  ELF: not found
 /home/balister/oe/tmp/staging/x86_64-linux/usr/bin/python: line 2:
 syntax error: word unexpected (expecting ))

This is obviously an attempt to run python compiled for the build
machine on the Beagle 

Amazing how much clearer things are in the morning.

Philip


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Maximum recursion depth exceeded

2009-02-01 Thread Dimitris Symeonidis
Fedora 11 will indeed most likely have python 2.6:
https://fedoraproject.org/wiki/Features/Python_2.6

Dimitris Symeonidis
If you think you're too small to make a difference, try sleeping with
a mosquito! - Amnesty International



On Sun, Feb 1, 2009 at 16:57, Philip Balister philip.balis...@gmail.com wrote:
 On Sat, Jan 31, 2009 at 12:49 PM, Philip Balister
 philip.balis...@gmail.com wrote:

 /home/balister/oe/tmp/staging/x86_64-linux/usr/bin/python: line 1:
  ELF: not found
 /home/balister/oe/tmp/staging/x86_64-linux/usr/bin/python: line 2:
 syntax error: word unexpected (expecting ))

 This is obviously an attempt to run python compiled for the build
 machine on the Beagle 

 Amazing how much clearer things are in the morning.

 Philip


 ___
 Discuss-gnuradio mailing list
 Discuss-gnuradio@gnu.org
 http://lists.gnu.org/mailman/listinfo/discuss-gnuradio



___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Maximum recursion depth exceeded

2009-01-31 Thread Philip Balister
On Thu, Jan 29, 2009 at 5:51 PM, Johnathan Corgan
jcor...@corganenterprises.com wrote:
 On Wed, Jan 28, 2009 at 7:30 AM, Philip Balister
 philip.balis...@gmail.com wrote:

 r...@beagleboard:~# python /usr/share/gnuradio/examples/audio/dial_tone.py
 Exception RuntimeError: 'maximum recursion depth exceeded while
 calling a Python object' in type 'exceptions.AttributeError' ignored
 gr_vmcircbuf_createfilemapping: createfilemapping is not available
 gr_vmcircbuf_sysv_shm: shmat (3): Invalid argument

 This system runs python 2.6, if that makes a difference/

 It does.  Thanks for the report.  We've put off testing with 2.6 bit
 it's apparent there are some issues.

Do you have any thoughts on when you might start testing against python 2.6?

I'm working out a way to get libtool to do the linking on the build
machine and then running make check on the beagle. I think I am
getting somewhere, but I do see messages like this:

/home/balister/oe/tmp/staging/x86_64-linux/usr/bin/python: line 1:
ELF: not found
/home/balister/oe/tmp/staging/x86_64-linux/usr/bin/python: line 2:
syntax error: word unexpected (expecting ))

Philip


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Maximum recursion depth exceeded

2009-01-31 Thread Eric Blossom
On Sat, Jan 31, 2009 at 12:49:52PM -0500, Philip Balister wrote:
 On Thu, Jan 29, 2009 at 5:51 PM, Johnathan Corgan
 jcor...@corganenterprises.com wrote:
  On Wed, Jan 28, 2009 at 7:30 AM, Philip Balister
  philip.balis...@gmail.com wrote:
 
  r...@beagleboard:~# python /usr/share/gnuradio/examples/audio/dial_tone.py
  Exception RuntimeError: 'maximum recursion depth exceeded while
  calling a Python object' in type 'exceptions.AttributeError' ignored
  gr_vmcircbuf_createfilemapping: createfilemapping is not available
  gr_vmcircbuf_sysv_shm: shmat (3): Invalid argument
 
  This system runs python 2.6, if that makes a difference/
 
  It does.  Thanks for the report.  We've put off testing with 2.6 bit
  it's apparent there are some issues.
 
 Do you have any thoughts on when you might start testing against python 2.6?

Soon.  I want the python 2.6 issue sorted out before the final
release of 3.2.  Johnathan has recently made an rc0 tarball that 
I suspect he'll announce real soon now.

If anybody wants to dive in and sort this out, it would be most
appreciated.  Reading the python docs that explain what's changed
between 2.5 and 2.6 would probably be a good start.

Eric


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Maximum recursion depth exceeded

2009-01-31 Thread Dimitris Symeonidis
Just informing the group that, from what it seems, the default python
version for Ubuntu 9.04 will be the same it was for 8.10, namely
2.5.2: http://packages.ubuntu.com/jaunty/python

Instead, python3 is included in both 8.10 and 9.04. Is the plan to
port gnuradio to python3?

Dimitris Symeonidis
If you think you're too small to make a difference, try sleeping with
a mosquito! - Amnesty International



On Sat, Jan 31, 2009 at 19:05, Eric Blossom e...@comsec.com wrote:
 On Sat, Jan 31, 2009 at 12:49:52PM -0500, Philip Balister wrote:
 On Thu, Jan 29, 2009 at 5:51 PM, Johnathan Corgan
 jcor...@corganenterprises.com wrote:
  On Wed, Jan 28, 2009 at 7:30 AM, Philip Balister
  philip.balis...@gmail.com wrote:
 
  r...@beagleboard:~# python /usr/share/gnuradio/examples/audio/dial_tone.py
  Exception RuntimeError: 'maximum recursion depth exceeded while
  calling a Python object' in type 'exceptions.AttributeError' ignored
  gr_vmcircbuf_createfilemapping: createfilemapping is not available
  gr_vmcircbuf_sysv_shm: shmat (3): Invalid argument
 
  This system runs python 2.6, if that makes a difference/
 
  It does.  Thanks for the report.  We've put off testing with 2.6 bit
  it's apparent there are some issues.

 Do you have any thoughts on when you might start testing against python 2.6?

 Soon.  I want the python 2.6 issue sorted out before the final
 release of 3.2.  Johnathan has recently made an rc0 tarball that
 I suspect he'll announce real soon now.

 If anybody wants to dive in and sort this out, it would be most
 appreciated.  Reading the python docs that explain what's changed
 between 2.5 and 2.6 would probably be a good start.

 Eric


 ___
 Discuss-gnuradio mailing list
 Discuss-gnuradio@gnu.org
 http://lists.gnu.org/mailman/listinfo/discuss-gnuradio



___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Maximum recursion depth exceeded

2009-01-31 Thread Eric Blossom
On Sat, Jan 31, 2009 at 07:16:36PM +0100, Dimitris Symeonidis wrote:
 Just informing the group that, from what it seems, the default python
 version for Ubuntu 9.04 will be the same it was for 8.10, namely
 2.5.2: http://packages.ubuntu.com/jaunty/python
 
 Instead, python3 is included in both 8.10 and 9.04. Is the plan to
 port gnuradio to python3?

There's no plan yet.  This needs to be investigated.

Eric


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Maximum recursion depth exceeded

2009-01-29 Thread Johnathan Corgan
On Wed, Jan 28, 2009 at 7:30 AM, Philip Balister
philip.balis...@gmail.com wrote:

 r...@beagleboard:~# python /usr/share/gnuradio/examples/audio/dial_tone.py
 Exception RuntimeError: 'maximum recursion depth exceeded while
 calling a Python object' in type 'exceptions.AttributeError' ignored
 gr_vmcircbuf_createfilemapping: createfilemapping is not available
 gr_vmcircbuf_sysv_shm: shmat (3): Invalid argument

 This system runs python 2.6, if that makes a difference/

It does.  Thanks for the report.  We've put off testing with 2.6 bit
it's apparent there are some issues.

Johnathan


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] maximum recursion depth exceeded

2009-01-14 Thread Eric Blossom
On Wed, Jan 14, 2009 at 10:26:44AM +, feldmaus wrote:
 Hi All,
 
 i built gnuradio companion via svn.
 My current System is openSuse 11.1.
 For testing i build up a dial tone generator,
 and got this error:
 Exception RuntimeError: 'maximum recursion depth exceeded in
 __subclasscheck__' in type 'exceptions.AttributeError' ignored
 
 i am not sure whether someone posted this before.
 Is this a critical error ?
 
 Regards Markus

This is using Python 2.6, right?

If so, it's an unconfirmed known problem.
I'll take a look at it today.

Eric


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] maximum recursion depth exceeded

2009-01-14 Thread Johnathan Corgan
On Wed, Jan 14, 2009 at 2:26 AM, feldmaus feldmann_mar...@gmx.de wrote:

 For testing i build up a dial tone generator,
 and got this error:
 Exception RuntimeError: 'maximum recursion depth exceeded in
 __subclasscheck__' in type 'exceptions.AttributeError' ignored

This is a known bug in GNU Radio, but it only happens if the user's
code tries to access a member of a hierarchical block using the wrong
name.  So while the error message is not useful or helpful, the
ultimate problem lies in something in your test program.

-Johnathan


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio