discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] hier_blocks2 error


From: Koslowski, Sebastian (CEL)
Subject: Re: [Discuss-gnuradio] hier_blocks2 error
Date: Thu, 13 Aug 2015 09:17:25 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0

On 08/13/2015 08:38 AM, bob wole wrote:
I am using gnruadio 3.7.8. I have a module (python) which is working well for version 3.6.3. In made necessary changes so that it can work with gnuradio 3.7.8. However I am getting following error

  File "/usr/local/lib/python2.7/dist-packages/gnuradio/gr/hier_block2.py", line 92, in __getattr__
    return getattr(self._impl, name)
AttributeError: 'hier_block2_sptr' object has no attribute '_hb'


I spent a lot of time to figure out this but could not resolve it, so I thought to get help from mailing list.

Is this a bug or I am doing something wrong? 

What your seeing is the interface wrapper looking for an attribute in the wrapped instance 'self._impl' which used to be called 'self._hb'. So it tries to lookup that first - and fails. Since both _impl and _hb are marked protected they should not be accessed from outside the wrapper directly (I remember some WXGUI code did that, but that has been fixed). In the gnuradio tree I can't seem to find anything like this.

Can you check and see from where this Exception is raised from?

Sebastian


reply via email to

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