I have installed unoconv 0.8 (from here) for moodle 3.5.5 and receive the error message below indicating the version is not supported.
Here's a sample bat file statement that I use, I get the impression its correct and the application version is not?:
@"C:\Program Files\LibreOffice\program\python.exe" c:\Program Files\unoconv-0.7\unoconv.py %*
Not a Windows person ... but ... unoconv is a python script and installing on Linux flavored boxen, unoconv.py is made execuatable + has a 'shebang' in the first line of the .py file on your server, does it have a 'shebang'?
On Linux looks like: #!/usr/bin/env python
How about your system?
I wonder if a full python windows installer would be a better method (or is libre office python required instead?), with file associations taken care of?
Probably is a windows issue with libre office python and bat file as you alluded to, I couldnt create and run a test python script from the bat file either.
thanks for you input.
Setting up unoconv for document conversions is a challenge for Linux also.
Now way to avoid installing full blown LibreOffice ... which is really designed to be used on a workstation ... on server which has no GUI OS/Desktop. If I re-called correctly took 500M's of space.
If you do get the test working, the next phase is to get a listener working ... this process calls LibreOffice in a headless mode - converts docs - then provides those conversions back to moodle. That process, needs to clear the request to convert and then listen again for the next request.
So ... there is an alternative ... use Google doc conversion service.
Do think about that ... even try it!
no need to change anything in the script, just execute as is, as the argument of the python executable.
Follow the example in https://ask.libreoffice.org/en/question/4648/windows-install-unoconv/#4907 and keep care that the conversion will open a TCP port, 2002 by default... you can change it by using the option -p 12345.