Libreoffice 无头模式 - 无法在 Windows 10 上获取上下文

问题描述

我在 Windows 10 下尝试以无头模式连接到 libreoffice 时遇到问题。我使用的是与 libreoffice(版本:6.4.6.2)安装一起部署的 python 库 uno:

  1. 我使用以下设置来配置传输层:
cargo +nightly-2021-01-07 build -Z build-std=core --target avr-atmega328p.json --release --verbose

def two_string(a,b):
    for i,(ca,cb) in enumerate(zip(a,b)):
        if ca==cb:
            print(ca,i)
  1. libreoffice 使用命令成功启动(如上):
"socket,host=localhost,port=2002;urp;"
  1. 然后我尝试在 python 中获取上下文:
"pipe,name=converter3d66c8ac-ae65-11eb-a944-144f8aa6d767;urp;"
  1. 我在方法管道上收到以下错误
soffice --headless  --accept="pipe,name=converter3d66c8ac-ae65-11eb-a944-144f8aa6d767;urp;"

Socket 方法失败并显示等效错误

我在 Linux 上尝试了同样的方法,一切正常。

是否有与 Windows 相关的特殊技巧?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)