Hi Lucas,

Here are two things you may try :

- use a pipe connection instead of a socket connection, and see if you still lost connection

- check that the OOo process is still running. Actually, you may want to use the subprocess module instead of the os one (you just be loosing compatibility with Python 2.3). You would be able to grab errors from the stderror channel of your process. I don't know if it throw any message there, but in case it does, you'd be able to read it.


Regards,
-Etienne


Lukasz Szybalski wrote:
On Mon, Nov 9, 2009 at 2:29 AM, Kay Ramme <[email protected]> wrote:
Hi Lukasz,

this is a Python question, right?

Typically connections die, because one of the hosts get disconnected or one
of the applications do terminate.

Do you have a hint, which case is yours?


It seems as there is a exception in openoffice services. Service
terminates without sending back an error message, and its no longer
listening on the port.

When that happens I get a message on the next oo call that the
connection was lost. So at this point I'm looking for a way for oo to
tell me that it failed, or look at some log that oo? creates to see
why it failed? Is there a log for the headless services oo is running?

Thanks,
Lucas








--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Etienne Gaudrain
Centre for the Neural Basis of Hearing
Department of Physiology, Development and Neuroscience
University of Cambridge
Downing Street
Cambridge CB2 3EG
UK
Phone: +44 1223 765 359 office
Fax: +44 1223 333 840 department
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to