Ask Your Question
1

Windows Install UNOCONV

asked 2012-08-09 01:13:56 +0200

thumper gravatar image thumper
31 2 2 6

updated 2013-01-30 08:48:53 +0200

qubit gravatar image qubit flag of United States
5693 3 48 41

I have downloaded the unoconv zip file from the dagwieeers site but there is no explanation on how to install the files on WINDOWS.

downloaded from https://github.com/dagwieers/unoconv/

What libreoffice folder do these files go into? Also none of the files have extensions. i.e. unoconv, makefile and copying. What extension do these file need?

Does the command line need to have "C:\Program Files (x86)\LibreOffice 3.5\program\soffice.exe" --unoconv. Not clear of the process, sorry for my ignorance.

delete close flag offensive retag edit

Comments

Per comments by @tohuwawohu below, this is probably a bug in unoconv. As of today, the status of that bug is NEW.

qubit ( 2013-01-30 08:47:46 +0200 )edit

2 Answers

Sort by » oldest newest most voted
0

answered 2013-02-22 09:45:05 +0200

qubit gravatar image qubit flag of United States
5693 3 48 41

Hi @thumper,

Did you ever get unoconv to work properly for you on Windows? If not, please try grabbing the latest build of LO and the latest version of unoconv.

If you're still stumped after that, consider filing a bug against unoconv directly.

link delete flag offensive edit
1

answered 2012-08-16 09:56:11 +0200

tohuwawohu gravatar image tohuwawohu flag of Germany
1812 13 40

updated 2012-08-27 21:40:04 +0200

The unoconv github page has an example to to call unoconv in windows:

C:\Program Files (x86)\LibreOffice 3.5\program\python.exe unoconv -f pdf some-file.odt

Since unoconv is a python script, you need to install python, too. After that, you can run unoconv using python as described above. I didn't test it myself, but AFAIK you don't need to put unoconv into a specific folder under the LO program directory.

EDIT:

Ok, let's try it step by step.

  • Download unoconv. You can either grab the tar.bz2 archive from Dag's page, or a ZIP file from the github site. Since WIndows doesn't ship with an extractor for bz2 archives, i recommend to download the ZIP from github.

  • Extract the ZIP. Notice that the unoconv directory is situated in a subdirectory containing the git repository id. In my case, it's "dagwieers-unoconv-9b68368".

  • Open a terminal and cd to the extracted unoconv directory. I copied the complete content of the ZIP into "Program Files (x86)". Because of that, i did:

    • Open the start menu, enter "cmd" in the search bar, execute "cmd";
    • In the terminal window, enter (adjust the path if necessary)

      cd "\Program Files (x86)\unoconv\dagwieers-unoconv-9b68368"

    • Check if unoconv is present in the current directory: "dir unoconv". If you get a "File not found", check the path.

  • Test if unoconv works in general:

    • In the terminal window, enter

      "\Program Files (x86)\LibreOffice 3.6\program\python.exe" unoconv -h

    • As output, you should get a list of unoconv command line option. If this works, you've unoconv ready to work.

  • Still in the terminal window, and still in the unconv directory, try to execute the convert command.

link delete flag offensive edit

Comments

1

In fact, you don't really need python as a working python (for LibreOffice) ships already with LibreOffice itself. It is even recommended to use this python binary instead of the system's default to avoid incompatibility errors. The command-line shows exactly that :-)

dag ( 2012-08-20 15:23:42 +0200 )edit

Thank you for the input. I have had LibreOffice installed and have been using the office suite without issues for months. Thank you for the example link... My CMD test looks the same format of the examples.

thumper ( 2012-08-27 19:56:28 +0200 )edit

I was running.
"C:\Program Files (x86)\LibreOffice 3.6\program\soffice.exe" unoconv -f pdf c:\converttest\testcrap1.doc.

thumper ( 2012-08-27 20:04:28 +0200 )edit

I re-installed the unoconv and put it under the python folder. Still not getting any results.

thumper ( 2012-08-27 20:05:57 +0200 )edit

Please notice the exact path. It's python.exe, not soffice.exe.

tohuwawohu ( 2012-08-27 20:56:20 +0200 )edit

I tried to edit the previous comment with no luck. I also tried to delete it. I am using "C:\Program Files (x86)\LibreOffice 3.6\program\python.exe" unoconv -f pdf c:\converttest\testcrap1.doc

But thank you for pointing that out so we don't mess someone else up.

thumper ( 2012-08-27 20:59:26 +0200 )edit

Some added info...The CMD command line returns Errno 21 - no such file. C:\Program Files (x86)\LibreOffice 3.6\program\ \python-core-2.6.1: can't open file 'unoconv': [Errno 2] No such file or directory

thumper ( 2012-08-27 21:03:10 +0200 )edit

the cmd is showing double "\' slashes no space before the python-core-2.6.1

thumper ( 2012-08-27 21:06:35 +0200 )edit

@thumper: i've emended my answer with a step-for-step description. The "File not found" output indicates that you're not in the unoconv directory when executing that command. You'll have to run the command from inside the unoconv directory.

tohuwawohu ( 2012-08-27 21:37:37 +0200 )edit

I really appreciate your help. I just returned from Holidays and I am trying what you suggested. I did try just before leaving and got an odd error, so I waited until I returned to continue the testing.

I tried again and got the following error.

thumper ( 2012-09-12 19:39:19 +0200 )edit

Login/Signup to Answer

Donate

LibreOffice is made available by volunteers around the globe, backed by a charitable Foundation. Please support our efforts: Your donation helps us to deliver a better product!

Question tools

Follow
1 follower

subscribe to rss feed

Stats

Asked: 2012-08-09 01:13:56 +0200

Seen: 1,524 times

Last updated: Feb 22