Hello All,
I'm trying to follow a tutorial on github ("openoffice-libreoffice-automate-your-office-tasks-with-python-macros"), and I can only get about 5 lines in before I raise an error.
Import socket
import uno
localContext = uno.getComponentContext()
resolver = localContext.ServiceManager.createInstanceWithContext('com.sun.star.bridge.UnoResolver', localContext)
ctx = resolver.resolve("uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'resolve'
This is all entered from the python shell in OpenOffice 4\programs\python.exe
I've scoured the forum(and the web in general) but I haven't seen anyone encounter this error. If anyone can point me in the right direction i would certainly appreciate it.