Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #39725

RE: AttributeError: ' ' object has no attribute ' '

From Graham Fielding <frednotbob@hotmail.ca>
Subject RE: AttributeError: ' ' object has no attribute ' '
Date 2013-02-23 16:43 -0800
References <f1beb34a-c566-4ae5-8946-3e66a08896f9@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.2389.1361666658.2939.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

 > Date: Sat, 23 Feb 2013 10:22:54 -0800
> Subject: AttributeError:  '  ' object has no attribute '  '
> From: matt.doolittle33@gmail.com
> To: python-list@python.org
> 
> I am using Ubuntu 12.10, and Python 2.7.3, GNU Radio Companion v3.6.3.  I get the this error in terminal: 
> 
>  in __init__
>     self.wxgui_waterfallsink2_0.set_callback(wxgui_waterfallsink2_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'
> 
> 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?  
> -- 
> http://mail.python.org/mailman/listinfo/python-list
That error means that 'gr_hier_block2_sptr' doesn't have enough information to proceed. 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 is 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). 		 	   		  

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

AttributeError:  '  ' object has no attribute '  ' matt.doolittle33@gmail.com - 2013-02-23 10:22 -0800
  Re: AttributeError: ' ' object has no attribute ' ' Chris Angelico <rosuav@gmail.com> - 2013-02-24 09:03 +1100
    Re: AttributeError: ' ' object has no attribute ' ' matt.doolittle33@gmail.com - 2013-02-23 19:34 -0800
    Re: AttributeError: ' ' object has no attribute ' ' matt.doolittle33@gmail.com - 2013-02-23 19:34 -0800
  RE: AttributeError:  '  ' object has no attribute '  ' Graham Fielding <frednotbob@hotmail.ca> - 2013-02-23 16:43 -0800

csiph-web