<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><br> <BR><div><div id="SkyDrivePlaceholder"></div>> Date: Sat, 23 Feb 2013 10:22:54 -0800<br>> Subject: AttributeError:  '  ' object has no attribute '  '<br>> From: matt.doolittle33@gmail.com<br>> To: python-list@python.org<br>> <br>> I am using Ubuntu 12.10, and Python 2.7.3, GNU Radio Companion v3.6.3.  I get the this error in terminal: <br>> <br>>  in __init__<br>>     self.wxgui_waterfallsink2_0.set_callback(wxgui_waterfallsink2_0_callback)<br>>   File "/usr/local/lib/python2.7/dist-packages/gnuradio/gr/hier_block2.py", line 54, in __getattr__<br>>     return getattr(self._hb, name)<br>> AttributeError: 'gr_hier_block2_sptr' object has no attribute 'set_callback'<br>> <br>> I have been getting this error in multiple programs.  So what is stopping the program here?  There is no Attribute .set_callback obviously. But where is this attribute missing from exactly and how do i put it where it should be?  <br>> -- <br>> <a href="http://mail.python.org/mailman/listinfo/python-list">http://mail.python.org/mailman/listinfo/python-list</a><br></div><div>That error means that 'gr_hier_block2_sptr' doesn't have enough information to proceed.</div><div> </div><div>If you look at the top of the defintion (for example, 'def gr_hier_block2_sptr, [attribute], [another attribute]'), that's where you should find .set_callback.  If it's not there, you'l just need to add it to the end; if it <em>is</em> there, then the attribute is probably given a different name somewhere else  (so you'll just need to find out its new name and update the existing entry).</div>                                         </div></body>
</html>