PyUNO connection to OpenOffice
Enrique Castro
ecastro at dbbf.ulpgc.es
Tue Jun 10 05:58:02 EDT 2003
Hi,
I am trying to learn how to access to OpenOffice for
automatization, from Python. I am working in a Win2k box. I
have installed OOO 1.1b2 and the PyUNO bridge (0.9.3), with
Python 2.2 (working correctly for many other things).
I get the following error:
c:\Archivos de programa\OpenOffice.org1.1\program>python
swriter.py
Traceback (most recent call last):
File "swriter.py", line 27, in ?
smgr = resolver.resolve(
"uno:socket,host=localhost,port=2002;urp;StarOffice
.ServiceManager" )
__main__.com.sun.star.connection.NoConnectException:
Connector : couldn't connec
t to socket (WSAECONNREFUSED, Connection refused)
I simply do not understand the message. Any tip or help
about what's going on will be welcome.
pyunoenv.bat and pyuno_setup.bat run smoothly without error
messages.
Thanks in advance
Enrique
A cellular physiologist and "aficionado" programmer.
More information about the Python-list
mailing list