PyUNO connection to OpenOffice
Skip Montanaro
skip at pobox.com
Tue Jun 10 06:22:46 EDT 2003
Enrique> I get the following error:
Enrique> c:\Archivos de programa\OpenOffice.org1.1\program>python
Enrique> swriter.py
Enrique> Traceback (most recent call last):
Enrique> File "swriter.py", line 27, in ?
Enrique> smgr = resolver.resolve(
Enrique> "uno:socket,host=localhost,port=2002;urp;StarOffice
Enrique> .ServiceManager" )
Enrique> __main__.com.sun.star.connection.NoConnectException:
Enrique> Connector : couldn't connec
Enrique> t to socket (WSAECONNREFUSED, Connection refused)
Enrique> I simply do not understand the message. Any tip or help about
Enrique> what's going on will be welcome.
It would appear that StarOffice is not listening on port 2002. Can you
telnet to that port?
Skip
More information about the Python-list
mailing list