Open awead opened 7 years ago
Hi, i have the same problem on Ubuntu Server 16.04 when trying to convert files, only the "file could not be loaded". I think its something that is not installed. The problem was solved installing the complete libreoffice suite (sudo apt-get install libreoffice) not only the "commons" package (sudo apt-get install libreoffice-common). Hope this helps.
A Python code to resolve issue : Error: source file could not be loaded following code worked
import subprocess
subprocess.call(['soffice',
'--headless',
'--convert-to',
'docx',
sourceFileLocation,
'--outdir',
destiFileLocation
])
Libreoffice returns zero status when it errors:
Output is directed to STDERR, so maybe we should parse that and raise something?