Windows 10 Libreoffice无头模式-无法在Windows 10上获取上下文
我在windows 10下尝试以无头模式连接到libreoffice时遇到问题。我正在使用随libreoffice(版本:6.4.6.2)部署的python库uno安装:Windows 10 Libreoffice无头模式-无法在Windows 10上获取上下文,windows-10,libreoffice,headless,uno,Windows 10,Libreoffice,Headless,Uno,我在windows 10下尝试以无头模式连接到libreoffice时遇到问题。我正在使用随libreoffice(版本:6.4.6.2)部署的python库uno安装: 我使用以下设置来配置传输层: 或 libreoffice使用命令成功启动(如上所示): 然后,我尝试用python获取上下文: 我在方法管道上收到以下错误: 套接字方法失败,并出现等效错误 我在Linux上也做了同样的尝试,在那里一切都很好 是否有与Windows相关的特殊技巧 "socket,host=localh
"socket,host=localhost,port=2002;urp;"
"pipe,name=converter3d66c8ac-ae65-11eb-a944-144f8aa6d767;urp;"
soffice --headless --accept="pipe,name=converter3d66c8ac-ae65-11eb-a944-144f8aa6d767;urp;"
local_context = uno.getComponentContext()
resolver = local_context.ServiceManager.createInstanceWithContext(
'com.sun.star.bridge.UnoUrlResolver',
local_context
)
resolver_path = 'uno:' + 'pipe,name=converter3d66c8ac-ae65-11eb-a944-144f8aa6d767;urp;' + 'StarOffice.ComponentContext'
print(resolver_path)
resolver.resolve(resolver_path)
couldn't connect to pipe converter3d66c8ac-ae65-11eb-a944-144f8aa6d767(1)