The version of unoconv you have installed is not supported.

The version of unoconv you have installed is not supported.

by Sandipa Mukherjee -
Number of replies: 7
Picture of Particularly helpful Moodlers

Hi Moodlers,

I am using centos server and try to install unoconv. I get the help from https://docs.moodle.org/39/en/Universal_Office_Converter_(unoconv)

Step 1 : yum remove openoffice* libreoffice*

Step 2: yum install libreoffice libreoffice-pyuno

Step 3: git clone https://github.com/dagwieers/unoconv.git

These steps are successfully run.

Step 4 : cd /usr/bin [ I can see there is a directory called "unoconv"]

total 256K

drwxr-xr-x  7 root root 4.0K Sep 25 00:08 .

dr-xr-xr-x. 3 root root  64K Sep 25 06:03 ..

drwxr-xr-x  7 root root 4.0K Sep 25 00:08 .git

-rw-r--r--  1 root root   10 Sep 25 00:08 .gitignore

-rw-r--r--  1 root root  613 Sep 25 00:08 .travis.yml

-rw-r--r--  1 root root   28 Sep 25 00:08 AUTHORS

-rw-r--r--  1 root root  26K Sep 25 00:08 CHANGELOG.md

-rw-r--r--  1 root root  18K Sep 25 00:08 COPYING

-rw-r--r--  1 root root 6.5K Sep 25 00:08 ChangeLog

-rw-r--r--  1 root root  367 Sep 25 00:08 MANIFEST.in

-rw-r--r--  1 root root 3.8K Sep 25 00:08 Makefile

-rw-r--r--  1 root root  11K Sep 25 00:08 README.adoc

drwxr-xr-x  2 root root 4.0K Sep 25 00:08 ci

drwxr-xr-x  2 root root 4.0K Sep 25 00:08 doc

drwxr-xr-x  3 root root 4.0K Sep 25 00:08 packaging

-rw-r--r--  1 root root 3.6K Sep 25 00:08 setup.py

drwxr-xr-x  2 root root 4.0K Sep 25 00:08 tests

-rwxr-xr-x  1 root root  70K Sep 25 06:10 unoconv

Now if I run unoconv -version command line says 

-bash: unoconv: command not found



Rest of the command like 

cp unoconv/unoconv /usr/bin 

# or link unoconv to /usr/bin ln -s unoconv/unoconv /usr/bin/unoconv

They are not working. I have already go through this discussion https://moodle.org/mod/forum/discuss.php?d=337043 but the version of unoconv is not shown to me.

What is my mistake? Please help me. 

Thank you in advance.



Average of ratings: -
In reply to Sandipa Mukherjee

Re: The version of unoconv you have installed is not supported.

by Benjamin Ellis -
Picture of Particularly helpful Moodlers

Hi,

Running /usr/bin/unoconv/unoconv -V does not work?  If not what happens?




In reply to Benjamin Ellis

Re: The version of unoconv you have installed is not supported.

by Sandipa Mukherjee -
Picture of Particularly helpful Moodlers

Hi, Thank you for your reply.



Now it is running successfully but moodle still says "The version of unoconv you have installed is not supported.".

Which version of unoconv required for moodle 3.9.1?

Now I am using  unoconv 0.8.2 and LibreOffice 5.3.6.1.



Regards,

Sandipa

In reply to Sandipa Mukherjee

Re: The version of unoconv you have installed is not supported.

by Benjamin Ellis -
Picture of Particularly helpful Moodlers

Hi,

According to the code  - /files/converter/unoconv/classes/converter.php function is_minimum_version_met() Version 0.7 is the minimum.  Are you sure Moodle is looking at /usr/bin/unoconv ?  I have checked the code to ensure that the regex works and it does.  So something else is up.



In reply to Benjamin Ellis

Re: The version of unoconv you have installed is not supported.

by Sandipa Mukherjee -
Picture of Particularly helpful Moodlers

Hi, 

I have several assignments in the course. My students submitted their work in pdf or doc format. These are not loaded in annotate mode for grading. I do search in the moodle forum and see that unoconv is responsible for the conversion of the pdf or doc to the image to load the annotated pdf. 

I do set cron, Ghostscript, and unoconv . If the minimum version of unoconv is 0.7 then why my version  0.8.2 does not serve?  any thoughts?

Thanks and regards,

Sandipa

In reply to Sandipa Mukherjee

Re: The version of unoconv you have installed is not supported.

by Benjamin Ellis -
Picture of Particularly helpful Moodlers

Hi,

Are your settings like this still 

unoconv settings

If you set it to the default, it might work.  Make sure the webserver user (httpd/www-data) can run the file.

Ben

In reply to Benjamin Ellis

Re: The version of unoconv you have installed is not supported.

by Sandipa Mukherjee -
Picture of Particularly helpful Moodlers

Hi,

Here is my present configuration.



Here is the test result:-


I am sorry. I can not understand this line "Make sure the webserver user (httpd/www-data) can run the file".

Still, annotate pdf is not loading. PFA


Thanks,

Sandipa

In reply to Sandipa Mukherjee

Re: The version of unoconv you have installed is not supported.

by Benjamin Ellis -
Picture of Particularly helpful Moodlers
Hi,

On Ubuntu, the web server user is www-data. So trying 

sudo -u www-data /usr/bin/unoconv --version

on the command line should tell you if the web server can run the script.   I suspect that it should be OK but it might be a possibility.  Otherwise I am stumped!!!


Average of ratings: Useful (1)