Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #39725
| 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 | <frednotbob@hotmail.ca> |
| 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 <frednotbob@hotmail.ca> |
| To | "python-list@python.org" <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 | <f1beb34a-c566-4ae5-8946-3e66a08896f9@googlegroups.com> |
| References | <f1beb34a-c566-4ae5-8946-3e66a08896f9@googlegroups.com> |
| 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 <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2389.1361666658.2939.python-list@python.org> (permalink) |
| 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 |
Show key headers only | 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 | Next — Previous in thread | Find similar | Unroll 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