Error while trying to connect to OOo 3.x using Python-UNO

Indranil Das Gupta <[email protected]>
Newsgroups gmane.user-groups.linux.kolkata
Message-ID <[email protected]>
Hi,

I'm using OOo 3.0.0

I tried to get the component context but its failing with the
following error. OTOH, *this* -> ./swriter
--accept="socket,host=localhost,port=2002;urp;" is working.

>>> import uno

>>> local = uno.getComponentContext()

>>> resolver = local.ServiceManager.createInstanceWithContext("com.sun.star.bridge.UnoUrlResolver", local)

>>> context = resolver.resolve("uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext")
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
__main__.com.sun.star.connection.NoConnectException: Connector :
couldn't connect to socket (Success)
>>>

thanks
-indra
_______________________________________________
Ilug-cal-discuss mailing list
Ilug-cal-discuss-PMNjqutUrVNkNBGiPgg+Odi2O/[email protected]
http://list.ilug-cal.org/mailman/listinfo/ilug-cal-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.