timxx / pywpsrpc

Python bindings for WPS Office RPC (for Linux)
MIT License
225 stars 45 forks source link

AttributeError: 'NoneType' object has no attribute 'Documents' #7

Closed ruizgo closed 4 years ago

ruizgo commented 4 years ago

运行demo在Debian\Centos\Ubuntu出现如下报错:

Traceback (most recent call last):
  File "2.py", line 25, in <module>
    hr, doc = app.Documents.Add()
AttributeError: 'NoneType' object has no attribute 'Documents'

是什么原因造成的呢?

ruizgo commented 4 years ago

运行python3 convertto.py --format "pdf" README.md Convert failed: Details: Can't get the application ErrCode: 0x80000008

timxx commented 4 years ago

请确保安装有桌面环境,WPS能够正常运行;另外需要多组件模式。README都有写

ruizgo commented 4 years ago

请确保安装有桌面环境,WPS能够正常运行;另外需要多组件模式。README都有写

谢谢,已经可以正常生成。

xiaobing395845388 commented 4 years ago

你好,遇到了同样的问题,请教下怎么解决的?

xiaobing395845388 commented 4 years ago

@ruizgo