Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation under Windows? "Cannot find a suitable office installation" #52

Closed
PaulANormanNZ opened this issue Apr 25, 2012 · 9 comments
Assignees
Labels
Milestone

Comments

@PaulANormanNZ
Copy link

Hi,

I have been trying to install under windows for use with (RS) ResourceSpace (resourcespace.org)

Is it really possible to presently use unoconv under windows Xp at all?
I just wanted to run past people what I have tried so far please.

From a RS perspective this is what I have tried so far...

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

I added a system environment variable UNO_PATH pointing to my
LibreOffice uno.py etc location
(D:\Program Files\LibreOffice 3.4\Basis\program) I have also tried it as 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"

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.

1.) Is it possible nonetheless to configure unoconv 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)

Any pointers for a possible Windows installation greatly appreciated please.

Paul

@dagwieers
Copy link
Member

Did you use v0.5 ?

unoconv is looking for the following files on Windows:

  • pyuno.pyd
  • soffice.exe
  • python.exe

It is doing so in various known locations, can you tell me where they reside on your system ?

Maybe we should print the list when e.g. something like --debug is provided ?

@PaulANormanNZ
Copy link
Author

Did you use v0.5 ?

I downloaded the latest zip from this site last night

unoconv is looking for the following files on Windows:

pyuno.pyd

D:\Program Files\LibreOffice 3.4\Basis\program

soffice.exe

D:\Program Files\LibreOffice 3.4\program

python.exe

LibreOffice provides one at:

D:\Program Files\LibreOffice 3.4\Basis\program\python-core-2.6.1\bin

And I have 2.6 at:

C:\Python26

Please note that my regular programs folder is at C:\Program Files\ but as other people do, I use other drives for spill over and large installations.

Thanks,
Paul

@dagwieers
Copy link
Member

Hi Paul,

I have made a small change that might help us in the future to debug similar issues. Can you try your test again with the latest code, but this time please add -vvv to the unoconv command line. And then send the output here. Thanks for your persistence :-)

@ghost ghost assigned dagwieers Apr 26, 2012
@PaulANormanNZ
Copy link
Author

Will do, but will be later in our new day :)

On 26 April 2012 21:03, Dag Wieërs <
reply@reply.github.com

wrote:

Hi Paul,

I have made a small change that might help us in the future to debug
similar issues. Can you try your test again with the latest code, but this
time please add -vvv to the unoconv command line. And then send the
output here. Thanks for your persistence :-)


Reply to this email directly or view it on GitHub:
#52 (comment)

@dagwieers
Copy link
Member

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 !

@PaulANormanNZ
Copy link
Author

Many thanks Dag,

I have not yet been able to give this the quality time it needs, but will
look into it as soon as I can.

Paul

On 27 April 2012 22:03, Dag Wieërs <
reply@reply.github.com

wrote:

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 !


Reply to this email directly or view it on GitHub:
#52 (comment)

@PaulANormanNZ
Copy link
Author

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

And all is working well.

Changed Environment variable:
UNO_PATH to D:\Program Files\LibreOffice 3.5\program
Is there any option for this to alternatively be set, and read by unoconv
from an .ini file please?

Also just not sure about the contents of the example file
tests/spreadsheet-example.csv
I don't get multiples of five fields for the data (should I?)

Paul

On 27 April 2012 22:14, Paul A Norman paul.a.norman@gmail.com wrote:

Many thanks Dag,

I have not yet been able to give this the quality time it needs, but will
look into it as soon as I can.

Paul

On 27 April 2012 22:03, Dag Wieërs <
reply@reply.github.com

wrote:

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 !


Reply to this email directly or view it on GitHub:
#52 (comment)

@dagwieers
Copy link
Member

@PaulANormanNZ No there will not be a configuration file for this, but you can create a batch-file with all the necessary information to do what you like.

I don't understand your question about spreadsheet-example.csv.

@PaulANormanNZ
Copy link
Author

On 28 April 2012 21:03, Dag Wieërs <
reply@reply.github.com

wrote:

@PaulANormanNZ No there will not be a configuration file for this, but you
can create a batch-file with all the necessary information to do what you
like.

I was planning that, but it can be a little complicated when using unoconv
with other processes.

I don't understand your question about spreadsheet-example.csv.

Ok this is possibly a Linux / Windows LF / CR issue.

This is what unoconv appears to see on windows for spreadsheet-example.csv
when the .csv has been extracted from the downloaded zip ...
(The end zero in the second row joins to the first member of the third row
etc)

"Field1"; "Field2"; "Field3"; "Field 4"; "Field 5"123; 3242; 4211; 22141;
023; 232; 232, 43; 2422442; 2442; 2442; 2422; 0

Instead of spreadsheet-example.csv as at
https://github.com/dagwieers/unoconv/blob/master/tests/spreadsheet-example.csv

"Field1"; "Field2"; "Field3"; "Field 4"; "Field 5"
123; 3242; 4211; 22141; 0
23; 232; 232, 43; 242
2442; 2442; 2442; 2422; 0

and the Windows pdf result, pasted from the converted .pdf is attached...

Paul


Reply to this email directly or view it on GitHub:
#52 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants