Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.021 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'attribute': 0.05; 'skip:" 60': 0.05; '(so': 0.07; 'python': 0.09; '__init__': 0.09; 'here?': 0.09; 'name)': 0.09; 'programs.': 0.11; 'sat,': 0.15; '54,': 0.16; 'end;': 0.16; 'subject:object': 0.16; 'feb': 0.19; 'to:name :python-list@python.org': 0.20; 'skip:s 70': 0.22; 'stopping': 0.22; '>': 0.23; 'somewhere': 0.24; 'header:In-Reply-To:1': 0.25; "doesn't": 0.28; 'date:': 0.29; 'url:mailman': 0.29; 'probably': 0.29; "skip:' 10": 0.30; 'error': 0.30; 'url:python': 0.32; 'file': 0.32; "skip:' 20": 0.32; 'url:listinfo': 0.32; 'getting': 0.33; 'ubuntu': 0.33; 'to:addr:python-list': 0.33; 'there': 0.35; 'add': 0.36; 'subject:': 0.36; 'but': 0.36; 'url:org': 0.36; 'email addr:python.org': 0.36; 'should': 0.36; 'enough': 0.36; '(for': 0.37; 'subject:: ': 0.38; 'from:': 0.38; 'object': 0.38; 'there,': 0.38; 'to:addr:python.org': 0.39; 'where': 0.40; 'url:mail': 0.40; "you'll": 0.62; 'received:65.55.90': 0.62; 'received:snt0.hotmail.com': 0.62; 'email name:python-list': 0.62; 'different': 0.63; 'information': 0.63; 'email addr:gmail.com': 0.63; 'subject:skip:A 10': 0.75; '2013': 0.84; 'received:65.55.90.16': 0.84; 'received:snt0-omc1-s5.snt0.hotmail.com': 0.84; 'received:65.55.90.7': 0.93 X-EIP: [992A9YIF2S3k2Ev+J2bel3YzKkgfa4WP] X-Originating-Email: [frednotbob@hotmail.ca] Content-Type: multipart/alternative; boundary="_5b40d79b-1839-42cb-a8bf-80abcc66bf59_" From: Graham Fielding To: "python-list@python.org" Subject: RE: AttributeError: ' ' object has no attribute ' ' Date: Sat, 23 Feb 2013 16:43:09 -0800 Importance: Normal In-Reply-To: References: MIME-Version: 1.0 X-OriginalArrivalTime: 24 Feb 2013 00:43:10.0007 (UTC) FILETIME=[EB3E3470:01CE1227] X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 82 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361666658 news.xs4all.nl 6911 [2001:888:2000:d::a6]:45094 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39725 --_5b40d79b-1839-42cb-a8bf-80abcc66bf59_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > Date: Sat=2C 23 Feb 2013 10:22:54 -0800 > Subject: AttributeError: ' ' object has no attribute ' ' > From: matt.doolittle33@gmail.com > To: python-list@python.org >=20 > I am using Ubuntu 12.10=2C and Python 2.7.3=2C GNU Radio Companion v3.6.3= . I get the this error in terminal:=20 >=20 > in __init__ > self.wxgui_waterfallsink2_0.set_callback(wxgui_waterfallsink2_0_callb= ack) > File "/usr/local/lib/python2.7/dist-packages/gnuradio/gr/hier_block2.py= "=2C line 54=2C in __getattr__ > return getattr(self._hb=2C name) > AttributeError: 'gr_hier_block2_sptr' object has no attribute 'set_callba= ck' >=20 > I have been getting this error in multiple programs. So what is stopping= the program here? There is no Attribute .set_callback obviously. But wher= e is this attribute missing from exactly and how do i put it where it shoul= d be? =20 > --=20 > 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=2C 'def g= r_hier_block2_sptr=2C [attribute]=2C [another attribute]')=2C that's where = you should find .set_callback. If it's not there=2C you'l just need to add= it to the end=3B if it is there=2C then the attribute is probably given a = different name somewhere else (so you'll just need to find out its new nam= e and update the existing entry). = --_5b40d79b-1839-42cb-a8bf-80abcc66bf59_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

 =3B
>=3B Date: Sat=2C 23 Feb 2013 10:22:54 -0800>=3B Subject: AttributeError: ' ' object has no attribute ' '
>= =3B From: matt.doolittle33@gmail.com
>=3B To: python-list@python.org>=3B
>=3B I am using Ubuntu 12.10=2C and Python 2.7.3=2C GNU Radi= o Companion v3.6.3. I get the this error in terminal:
>=3B
>= =3B in __init__
>=3B self.wxgui_waterfallsink2_0.set_callback(wxg= ui_waterfallsink2_0_callback)
>=3B File "/usr/local/lib/python2.7/di= st-packages/gnuradio/gr/hier_block2.py"=2C line 54=2C in __getattr__
>= =3B return getattr(self._hb=2C name)
>=3B AttributeError: 'gr_hier= _block2_sptr' object has no attribute 'set_callback'
>=3B
>=3B I= have been getting this error in multiple programs. So what is stopping th= e program here? There is no Attribute .set_callback obviously. But where i= s this attribute missing from exactly and how do i put it where it should b= e?
>=3B --
>=3B http://mail.python.org/mailman/listinfo/python-list
That error means that 'gr_hier_block2_sptr' doesn't have enoug= h information to proceed.
 =3B
If you look at the t= op of the defintion (for example=2C 'def gr_hier_block2_sptr=2C [attribute]= =2C [another attribute]')=2C that's where you should find .set_callback.&nb= sp=3B If it's not there=2C you'l just need to add it to the end=3B if it is there=2C then the attribute =3Bis probably =3Bgiven a dif= ferent name somewhere else =3B =3B(so you'll just need to find out = its =3Bnew name =3Band update the existing entry).
=
= --_5b40d79b-1839-42cb-a8bf-80abcc66bf59_--