[pygtk] ORBit and python
magnus at therning.org
Tue Sep 26 18:01:58 WST 2006
On Tue, Sep 26, 2006 at 10:03:10 +1000, Russell Strong wrote:
>I've been pulling my hair out the last couple of days trying to get a
>simple python/ORBit example working.
>The server code ( see below ) show the following error Traceback (most
>recent call last):
> File "server", line 14, in increment
> self.count += 1
>AttributeError: 'Counter' object has no attribute 'count'
>Adding a line print dir(self) to increment shows there really is no
>The client ( see below ) shows:
>Traceback (most recent call last):
> File "client", line 13, in ?
I copy-pasted your code into three files here and noticed the same
behaviour. I then went to the PyORBit doc I keep around  and tried
the Account example. I got that to work by moving the "import CORBA" to
after the call to "ORBit.load_file". So there shouldn't be something
inherently preventing you from using attributes.
I realise this isn't really a solution to your problem, but maybe it can
offer some hint on how to get it working...
PS I keep on getting the following warning:
cc1: note: obsolete option -I- used, please use -iquote instead
Is that well-known? Should I raise a bug on it?
Magnus Therning (OpenPGP: 0xAB4DFBA4)
magnus at therning.org Jabber: magnus.therning at gmail.com
Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.
"Oh no, not again."
-- A bowl of petunias on it's way to certain death.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20060926/d1bd6bf8/attachment.pgp
More information about the pygtk