如果我在终端上运行unoconv -f pdf test_pdf.docx,它可以正常工作。但是如果我在子进程中运行它,我就会得到这个错误。
subprocess.run(['unoconv', '-f', 'pdf', path], shell=True)
unoconv: Cannot find a suitable pyuno library and python binary combination in
/usr/lib/libreoffice
ERROR: No module named 'uno'
unoconv: Cannot find a suitable office installation on your system.
ERROR: Please locate your office installation and send your feedback to:
http://github.com/dagwieers/unoconv/issues请帮我解决这个问题
发布于 2019-12-24 06:43:55
是的,这会抛出错误,而且已经有很多关闭的问题上的GitHub相关的问题。
最有用的答案是49#发行-416317222和49#发行-464011493。令人难以置信的是,这个问题发生在2012年,至今还没有一个合适的解决办法。
https://stackoverflow.com/questions/59463140
复制相似问题