I am currently checking my python project files on several computers (all Debian testing). I ran into inconsistent result and ran out of troubleshoot ideas. This project uses python-uno pipe to communicate with libreoffice like following:
localContext = uno.getComponentContext()
resolver = localContext.ServiceManager.createInstanceWithContext("com.sun.star.bridge.UnoUrlResolver",localContext)
cnxt = resolver.resolve('uno:pipe,name=OOo_pipe;urp;StarOffice.ComponentContext')
Problem is that this code works on one computer, but chokes on other two computers. Error message follows:
main.NoConnectException: Connector : couldn't connect to pipe OOo_pipe(10)
Installed versions are libreoffice 7.0.4.2, python 3.9.2, /usr/share/applications/libreoffice-writer.desktop was checked, and same. When evoked, /usr/lib/libreoffice/program/soffice.bin runs in all computers. (also evoking scripts are same)
Installed packaged are not same among these computers.
What could cause this inconsistency?
I found that an option string under Tools -> Options... -> LibreOffice > Advanced > Open Expert Configuration > org.openoffice.SetUp > Office > ooSetupConnectionURL was different. With the working comp, it is "pipe,name=OOo_pipe;urp;StarOffice.ServiceManager" and is is empty with non working one. Documentation looks somewhat slack.