Re: [Freevo-devel] kaa.rpc not working with a non-localhost

2008-03-11 Thread Jason Tackaberry
On Tue, 2008-03-11 at 21:59 +0100, Dirk Meyer wrote: > >File "/usr/lib/python2.4/site-packages/kaa/net/tls.py", line 187 > > yield c.handshakeClientCert(session=session, **kwargs) > > SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause > > This is a problem. The code

Re: [Freevo-devel] kaa.rpc not working with a non-localhost

2008-03-11 Thread Duncan Webb
Dirk Meyer wrote: > Duncan Webb wrote: >> There is also an install problem in kaa, after the last update r3180. >> >> byte-compiling /usr/lib/python2.4/site-packages/kaa/net/tls.py to tls.pyc >>File "/usr/lib/python2.4/site-packages/kaa/net/tls.py", line 187 >> yield c.handshakeClientCert(

Re: [Freevo-devel] kaa.rpc not working with a non-localhost

2008-03-11 Thread Dirk Meyer
Duncan Webb wrote: > There is also an install problem in kaa, after the last update r3180. > > byte-compiling /usr/lib/python2.4/site-packages/kaa/net/tls.py to tls.pyc >File "/usr/lib/python2.4/site-packages/kaa/net/tls.py", line 187 > yield c.handshakeClientCert(session=session, **kwargs

Re: [Freevo-devel] kaa.rpc not working with a non-localhost

2008-03-11 Thread Duncan Webb
Jason Tackaberry wrote: > On Tue, 2008-03-11 at 19:10 +0100, Duncan Webb wrote: >>> File "../base/build/lib.linux-i686-2.4/kaa/notifier/main.py", line 110, >>> in loop >>>import skin# The skin class >> This is you problem file: >> "../base/build/lib.linux-i686-2.4/kaa/notifier/m

Re: [Freevo-devel] kaa.rpc not working with a non-localhost

2008-03-11 Thread Justin Wetherell
Here is the header of main.py, it looks like the notifier main.py # main.py - Main loop functions # - # $Id: main.py 3122 2008-02-21 10:21:38Z dmeyer $ # # ---

Re: [Freevo-devel] kaa.rpc not working with a non-localhost

2008-03-11 Thread Jason Tackaberry
On Tue, 2008-03-11 at 19:10 +0100, Duncan Webb wrote: > > File "../base/build/lib.linux-i686-2.4/kaa/notifier/main.py", line 110, > > in loop > >import skin# The skin class > > This is you problem file: > "../base/build/lib.linux-i686-2.4/kaa/notifier/main.py" The thing is, lo

Re: [Freevo-devel] kaa.rpc not working with a non-localhost

2008-03-11 Thread Duncan Webb
Justin Wetherell wrote: > Everything looks decent doing a find. > > /usr/lib/python2.4/site-packages/kaa/notifier/main.py > /usr/lib/python2.4/site-packages/kaa/notifier/main.pyc > /usr/lib/python2.4/site-packages/kaa/notifier/main.pyo > /usr/lib/python2.4/site-packages/kaa/popcorn/backends/xine/m

Re: [Freevo-devel] [Freevo-cvslog] Kaa r3177 - trunk/base/src

2008-03-11 Thread Jason Tackaberry
On Tue, 2008-03-11 at 18:02 +0100, Dirk Meyer wrote: > +if isinstance(address, str) and not address.startswith('/'): > +address = kaa.tempfile(address) This should be done by kaa.Socket. - This SF.net em

Re: [Freevo-devel] kaa.rpc not working with a non-localhost

2008-03-11 Thread Justin Wetherell
Everything looks decent doing a find. /usr/lib/python2.4/site-packages/kaa/notifier/main.py /usr/lib/python2.4/site-packages/kaa/notifier/main.pyc /usr/lib/python2.4/site-packages/kaa/notifier/main.pyo /usr/lib/python2.4/site-packages/kaa/popcorn/backends/xine/main.py /usr/lib/python2.4/site-packa

Re: [Freevo-devel] Saving a pygame.Surface as a PNG

2008-03-11 Thread Duncan Webb
Rob Shortt said the following, on 11.03.2008 14:46: > Hi Adam, > > Adam Charrett wrote: > >> Right annoyingly I thought pygame could do this, although it appears it >> will only be able to do it from the next release (1.8). >> > > I ran into that also. > > > >> So my question is what is

Re: [Freevo-devel] kaa.rpc not working with a non-localhost

2008-03-11 Thread Duncan Webb
Justin Wetherell said the following, on 11.03.2008 14:56: > I just did a python setup.py clean/build/install in both kaa and freevo and > I'm still getting the same problem but I think the traceback is slightly > different here. > File "../base/build/lib.linux-i686-2.4/kaa/notifier/main.py", lin

Re: [Freevo-devel] kaa.rpc not working with a non-localhost

2008-03-11 Thread Justin Wetherell
I just did a python setup.py clean/build/install in both kaa and freevo and I'm still getting the same problem but I think the traceback is slightly different here. Freevo 1.8.0 r10501 ready File "/usr/local/src/freevo/src/main.py", line 493, in ? kaa.main.run() File "../base/build/lib.lin

Re: [Freevo-devel] Saving a pygame.Surface as a PNG

2008-03-11 Thread Rob Shortt
Hi Adam, Adam Charrett wrote: > Right annoyingly I thought pygame could do this, although it appears it > will only be able to do it from the next release (1.8). I ran into that also. > So my question is what is the best way to take a pygame.Surface and save > it as an 8bit paletised/indexed PN

Re: [Freevo-devel] kaa.rpc not working with a non-localhost

2008-03-11 Thread Jason Tackaberry
On Tue, 2008-03-11 at 09:31 -0400, Justin Wetherell wrote: > File "../base/build/lib.linux-i686-2.4/kaa/notifier/main.py", line 140, in > run > skin.set_base_fxd(self.skin) > File "../base/build/lib.linux-i686-2.4/kaa/notifier/main.py", line 110, in > loop > import skin# The skin

Re: [Freevo-devel] kaa.rpc not working with a non-localhost

2008-03-11 Thread Justin Wetherell
I'm not sure if you guys think this is fixed but I am still getting the same (I think errors) on my remote Freevo box. I Updated Kaa and Freevo this morning. Freevo 1.8.0 r10501 ready File "/usr/local/src/freevo/src/main.py", line 493, in ? kaa.main.run() File "../base/build/lib.linux-i686

[Freevo-devel] Saving a pygame.Surface as a PNG

2008-03-11 Thread Adam Charrett
Right annoyingly I thought pygame could do this, although it appears it will only be able to do it from the next release (1.8). So my question is what is the best way to take a pygame.Surface and save it as an 8bit paletised/indexed PNG? It needs to be an index PNG as Vlc won't load anything else

Re: [Freevo-devel] [Freevo-cvslog] Kaa r3173 - in trunk/base/src: . notifier

2008-03-11 Thread Jason Tackaberry
On Tue, 2008-03-11 at 13:29 +0100, Dirk Meyer wrote: > The bug seems simple. Yes and no. > I do not get a ConnectError anymore. > in beacon: > > | try: > | server = kaa.rpc.Client('beacon') > | except kaa.rpc.ConnectError, e: > | raise ConnectError(e) > > So the bug seems to be tha

Re: [Freevo-devel] Kaa r3173 - in trunk/base/src: . notifier

2008-03-11 Thread Dirk Meyer
Jason Tackaberry wrote: >> On a side note: this check-in broke beacon and I guess a lot of other >> parts using kaa.rpc. > > I will take a look at beacon. The kaa.rpc API hasn't changed, nor have > the semantics. So it's just a matter of fixing the bugs in kaa.rpc. The bug seems simple. | try:

Re: [Freevo-devel] [Freevo-cvslog] Kaa r3173 - in trunk/base/src: . notifier

2008-03-11 Thread Jason Tackaberry
On Tue, 2008-03-11 at 08:26 -0400, Jason Tackaberry wrote: > On Tue, 2008-03-11 at 10:35 +0100, Dirk Meyer wrote: > > That sucks very badly. IMHO wait should _never_ be used and should > > print a warning. Using notifier.step can cause many strange problems. > > Hence the presence of the FIXME. I

Re: [Freevo-devel] Kaa r3173 - in trunk/base/src: . notifier

2008-03-11 Thread Jason Tackaberry
On Tue, 2008-03-11 at 10:35 +0100, Dirk Meyer wrote: > That sucks very badly. IMHO wait should _never_ be used and should > print a warning. Using notifier.step can cause many strange problems. Hence the presence of the FIXME. I intend to fix it. > On a side note: this check-in broke beacon and

Re: [Freevo-devel] Kaa r3173 - in trunk/base/src: . notifier

2008-03-11 Thread Dirk Meyer
Jason Tackaberry wrote: > +def __init__(self, address, auth_secret = '', buffer_size = None): > +sock = kaa.Socket(buffer_size) > +sock.buffer_size = buffer_size > +# FIXME: we block on connect for now; Channel.rpc() tests socket > +# connected and raises excepti

Re: [Freevo-devel] kaa.rpc not working with a non-localhost

2008-03-11 Thread Duncan Webb
Jason Tackaberry said the following, on 11.03.2008 04:10: > On Mon, 2008-03-10 at 22:52 -0400, Justin Wetherell wrote: > [...] > >> File "/usr/lib/python2.4/site-packages/kaa/rpc.py", line 693, in __init__ >> sock.connect(address).wait() >> File "/usr/lib/python2.4/site-packages/kaa/noti

Re: [Freevo-devel] kaa.rpc not working with a non-localhost

2008-03-11 Thread Duncan Webb
Jason Tackaberry said the following, on 10.03.2008 23:58: > On Mon, 2008-03-10 at 18:52 -0400, Jason Tackaberry wrote: >> kaa.rpc should allow something like 'localhost:' though. Or ':' >> which would correspond to ('', ) (which binds to all IPs). I'll >> update the code to allow this