Mint 19.3 came with Libreoffice installed, but not the scripting package.
I ran
Code: Select all
sudo apt-get install libreoffice-script-provider-python
and
sudo apt-get install libreoffice
The libreoffice is
Version: 6.0.7.3
The current error is
Code: Select all
A Scripting Framework error occurred while running the Python script vnd.sun.star.script:HypTopUp.py$getPriceSrc?language=Python&location=document.
Message: <class 'uno.com.sun.star.uno.RuntimeException'>: Couldn't convert file url to a system path for reason (21)
File "/usr/lib/libreoffice/program/pythonscript.py", line 1039, in getScript
mod = self.provCtx.getModuleByUrl( fileUri )
File "/usr/lib/libreoffice/program/pythonscript.py", line 499, in getModuleByUrl
exec(code, entry.module.__dict__)
File "vnd.sun.star.tdoc:/1/Scripts/python/HypTopUp.py", line 183, in <module>
File "/usr/lib/python3/dist-packages/uno.py", line 144, in fileUrlToSystemPath
return pyuno.fileUrlToSystemPath(url)
Any advice?