PyUNO: cannot connect to socket

Asked by Andreas Kapp

I want to generate dynamic pdf documents using pod.
Both on Windows7 (64bit), OpenOffice 3.2, and on Windows XP, OpenOffice 3.0, I get the error:

appy.pod.PodError: An error occurred during the conversion. Could not connect to OpenOffice on port 2002. UNO (OpenOffice API) says: Connector : couldn't connect to socket (WSAECONNREFUSED, Connection refused).

After reading several pages about WSAECONNREFUSED, I tried to configure OpenOffice:
c:\Program Files\OpenOffice 3\program> soffice "-accept=socket,host=localhost,port=2002;urp;"

However, the error remains.

Could you please tell me what is wrong with my configuration?

Your help is appreciated

Question information

Language:
English Edit question
Status:
Solved
For:
Appy Edit question
Assignee:
No assignee Edit question
Solved by:
Gaëtan Delannay
Solved:
Last query:
Last reply:
Revision history for this message
Best Gaëtan Delannay (gaetan-delannay) said :
#1

Hi,
You could try with additional params:

soffice -invisible -headless -nofirststartwizard "-accept=socket,host=localhost,port=2002;urp;"

Does it work?
Cheers
Gaetan

Revision history for this message
Andreas Kapp (kapp) said :
#2

Hello Gaëtan,

thanks a lot for your very quick help!!!
It works perfectly.

Best regards,

Andreas

Am 16.01.2012 13:06, schrieb Gaëtan Delannay:
> Your question #184874 on Appy changed:
> https://answers.launchpad.net/appy/+question/184874
>
> Status: Open => Answered
>
> Gaëtan Delannay proposed the following answer:
> Hi,
> You could try with additional params:
>
> soffice -invisible -headless -nofirststartwizard
> "-accept=socket,host=localhost,port=2002;urp;"
>
> Does it work?
> Cheers
> Gaetan
>

--
Dr.-Ing. Andreas Kapp

Mecatronix GmbH
Robert-Bosch-Str. 7
64293 Darmstadt
Germany

Tel: +49 (0) 6151 - 397 8998
Fax: +49 (0) 6151 - 397 9646
e-mail: <email address hidden>

www: www.mecatronix.de

Registergericht Darmstadt HRB 8114, USt-Identnummer DE213890986
Geschäftsführer Dr.-Ing Martin Aenis, Dr.-Ing. Christof Klesen

*** Hinweis / Notice ***
Diese Nachricht kann rechtlich geschützte Informationen enthalten. Sie ist nur für die Adressaten bestimmt. Falls Sie diese Mail fälschlich erhalten haben, informieren Sie uns bitte umgehend unter <email address hidden> und löschen Sie bitte den Inhalt dieser Nachricht in Ihrem System.
Danke.

This e-mail may contain legally privileged information. It is intended only for the addressee. If you have received this e-mail in error, kindly notify us at <email address hidden> and delete the message from your system.
Thank you.

Revision history for this message
Andreas Kapp (kapp) said :
#3

Thanks Gaëtan Delannay, that solved my question.