我尝试将ppt文件转换为odp,所以我在su中运行此命令:
unoconv odp test.ppt -v
我得到了这个错误:
unoconv: RuntimeException during import phase:
Office probably died. Unsupported URL <odp>: "from LoadEnv::initializeLoading"
Traceback (most recent call last):
File "/usr/bin/unoconv", line 1030, in convert
document.storeToURL(outputurl, tuple(outputprops) )
uno.IOException: SfxBaseModel::impl_store <file:///var/www/api/files/test.pdf> failed: 0x81a
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/unoconv", line 1275, in <module>
main()
File "/usr/bin/unoconv", line 1191, in main
convertor.convert(inputfn)
File "/usr/bin/unoconv", line 1032, in convert
raise UnoException("Unable to store document to %s (ErrCode %d)\n\nProperties: %s" % (outputurl, e.ErrCode, outputprops), None)
File "/usr/lib/python3/dist-packages/uno.py", line 397, in _uno_struct__getattr__
return __builtin__.getattr(self.__dict__["value"],name)
AttributeError: ErrCode
即使我使用sudo运行它,也是同样的问题。 我认为问题不在于目录,因为它可以与其他格式一起使用。 并且没有创建test.pdf。