unoconv under Windows

1,938 views
Skip to first unread message

PaulANormanNZ

unread,
Apr 25, 2012, 7:19:40 PM4/25/12
to ResourceSpace
Hi,

I've been looking though the postings here and on the Wiki
http://wiki.resourcespace.org/index.php/OpenOffice_Integration for
getting the office documents previews going under Windows (Xp). The
Wiki so far only deals with Linux for this it seems.

I just wanted to run past people what I have tried so far please.

I got a zip down from the unoconv git site, unpacked it into my
ResourceSpace utils area (self made), made a copy of uniconv as
uniconv.py

pointed RS to it...

$unoconv_path="/ResourceSpaceTop/utils/unoconv";

1.) If you set this up correctly, will it show OK in RS's
"Installation Check"? So far however it has not even showed as a fail.

I added a system environment variable UNO_PATH pointing to my
LibreOffice uno.py etc location
(D:\Program Files\LibreOffice 3.4\Basis\program\)

Made sure that Python 2.6 was in my path as the Python executable, and
even added LibreOffice executible directory as well.

Tried to run uniconv.py directly in its own directory to check
things. But it says...

"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"

(I realise that there may be issues for me to raise at unoconv)

Then I looked in and around the LibreOffice directory tree and saw
that under the location of uno.py there is a python exe in D:\Program
Files\LibreOffice 3.4\Basis\program\python-core-2.6.1\bin

I tried using it to run unoconv, but this gave me the same message as
above.

2.) Is it possible nonetheless to configure RS to use the Open/Libre
office python.exe to run unoconv?

This would guarantee that the correct version of python was being used
for Open/Libre office (a unoconv requirement)? ( I had hoped that 2.6
would suffice for 2.61)

3.) Any pointers for getting this running under RS on Windows would be
greatly appreciated please.

Paul


PaulANormanNZ

unread,
Apr 28, 2012, 12:12:25 AM4/28/12
to ResourceSpace
For anyone else who struck this...

There was a temporary problem with unoconv

Dag Wieërs reply on https://github.com/dagwieers/unoconv/issues/52#issuecomment-5378448

"I think I nailed this ! A change from a few days back broke the
Windows support.
I am closing this ticket, feel free to reopen if you still have an
issue !"

Updated to dagwieers-unoconv-unoconv-0.5-5-ga3a9db5.zip
Updated to LibreOffice 3.5.2.2

Changed System Environment variable:
UNO_PATH to reflect new LibrOffice path: D:\Program Files
\LibreOffice 3.5\program

And all is working well now.

Paul
Reply all
Reply to author
Forward
0 new messages