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

OS X, LibreOffice 4.4 and 5.0: no suitable office installation #292

Closed
pquentin opened this issue Sep 4, 2015 · 7 comments
Closed

OS X, LibreOffice 4.4 and 5.0: no suitable office installation #292

pquentin opened this issue Sep 4, 2015 · 7 comments

Comments

@pquentin
Copy link
Contributor

pquentin commented Sep 4, 2015

As mentioned in #211, unoconv does not detect a suitable office installation on OS X (Yosemite) and LibreOffice 4.4 and 5.0. LibreOffice 4.3 works fine. When fixing manually the path searching to ensure that everything is found, the error becomes ImportError: No module named 'com' (or 'com.sun.star.document.UpdateDocMode.QUIET_UPDATE' is unknown). Amusingly, this is the only import that breaks, but other things break anyway if we leave this out.

I think this is a bug in find_offices and office_environ only, because using the python binary from LibreOffice 4.4 and 5.0, this code works fine:

import uno
import unohelper

from com.sun.star.beans import PropertyValue
from com.sun.star.connection import NoConnectException
from com.sun.star.document.UpdateDocMode import QUIET_UPDATE
from com.sun.star.lang import DisposedException, IllegalArgumentException
from com.sun.star.io import IOException, XOutputStream
from com.sun.star.script import CannotConvertException
from com.sun.star.uno import Exception as UnoException
from com.sun.star.uno import RuntimeException

Since #211 is closed, I'll use this issue to document my progress, if any.

@shilpi230
Copy link

@dagwieers i tried on El captain with 4.4.6 it didn't work but as soon as i shifted to 4.3.5 it works :)

@pquentin
Copy link
Contributor Author

@shilpi230 I did not continue to investigate as it was fixed in #276. But no merge yet.

@dvandersluis
Copy link
Contributor

Did anyone make any progress on this? With LO 5.1 it still doesn't work (but when I try it using the python binary it works, as per @pquentin).

@pquentin
Copy link
Contributor Author

@dvandersluis What verison are you using? 0.7, or the master branch?

@dvandersluis
Copy link
Contributor

I'm using master (prior to which I was getting the error about no suitable install found).

@SainteCelery
Copy link

I find this problem is ongoing. What is the workaround?

@brianedelman
Copy link

+1

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

No branches or pull requests

6 participants