-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getWpsApplication() fail #29
Comments
如图所示,wps已经打开了,但是接口返回错误 |
没有相应的设备测试,我猜是因为WPS启动的慢,SDK内部超时了(x64环境偶尔也会,暂时无解) |
如果是超时问题,是不是换种实现方式,用C++直接调wps的库也会有这个问题呢? |
是一样的,你也可以自己测试一下 LoL |
我也遇到这个问题,是我在docker容器内跑,启动Xvfb作为虚拟Xserver,在宿主机内ssh连过去执行命令跑通了,在docker内就报这个错。后面排查应该是在docker容器下跑不会弹框接受EULA导致,不知道这种要怎么解? |
最终用户协议(EULA)需要勾选上,才行 |
这个问题解决了吗 @hellobw2000 |
|
@hellobw2000 哥们, 这个解决了么, getWpsApplication() fail. |
同问,也是getWpsApplication()失败,hresult为-2147483640,getWpsApplication()返回值为None |
如果没有图形界面,可以在启动用户的配置文件(~/.config/Kingsoft/Office.conf)中添加如下内容: |
你好,这个问题解决了嘛? |
这个问题解决了嘛?我也遇到了同样的问题 |
@zhuangziyi @1180100406 我折腾测试了一下,封装了一个 Docker 镜像,相关的折腾过程可见 https://hacktech.cn/2023/08/02/2023-08-02-docker-%E4%B8%AD%E4%BD%BF%E7%94%A8-pywpsrpc/ docker 镜像可见 https://github.com/akkuman/headless-wps |
今天安装了 WPS for Linux 2019,版本号为 11.1.0.11719,环境是带 GUI 的 WSL2 Ubuntu 22.04,为了转换文档格式使用本库。
移除这个连接,之后 WPS 会在编辑文本时创建 Kingsoft 目录。 rm ~/.local/share/Kingsoft 综上所述,要使 getWpsApplication() 成功调用,要保证手动打开程序,进入编辑界面时不受阻。希望可帮上忙。 |
I build wheel on mips64 and install it. It gets err when using getWpsApplication()
part of code is
def openwpsapp(self, visible):
if(self.wpsapp!=None):
return
print("openwpsapp")
hr, wpsrpc = createWpsRpcInstance()
if hr != S_OK:
raise self.ConvertException("Can't create the rpc instance", hr)
hr, self.wpsapp = wpsrpc.getWpsApplication()
if hr != S_OK:
raise self.ConvertException("Can't get the application", hr)
@timxx
The text was updated successfully, but these errors were encountered: