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

Cannot find a suitable office installation on Mac OS 10.9.3 #211

Closed
mwalsher opened this issue Jul 5, 2014 · 33 comments
Closed

Cannot find a suitable office installation on Mac OS 10.9.3 #211

mwalsher opened this issue Jul 5, 2014 · 33 comments

Comments

@mwalsher
Copy link

mwalsher commented Jul 5, 2014

I'm using Mac OS Mavericks, LibreOffice 4.2.5.2, and unoconv 0.6 (install via homebrew).

LibreOffice soffice install path is /Applications/LibreOffice.app/Contents/MacOS/soffice.

Error message is:

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
@mwalsher
Copy link
Author

mwalsher commented Jul 5, 2014

Fixed this by changing line 114 of unoconv to:

officebinaries = ( 'soffice.bin', 'soffice' )

However, now I'm getting the error:

File "/usr/local/bin/unoconv", line 241
    print 'PATH=%s' % os.environ['PATH']
                  ^
SyntaxError: invalid syntax

which appears to be related to #111. Any ETA for the next release with this fix?

@msenebald
Copy link

Got the same problem.
Fixed the first error like you, just with a link instead..

@indirect
Copy link

brew install unoconv --HEAD

@juanibiapina
Copy link

Master is broken, so this is becoming a little hard to use.

#210

@slapula
Copy link

slapula commented Oct 15, 2014

I'm experiencing this same issue (using unoconv (via homebrew) with LibreOffice 4.3.2.2, OSX 10.9.5).

@skywinder
Copy link
Contributor

+1
I install unoconv through brew.
Have same error:

Cannot find a suitable office installation on your system

but brew install unoconv --HEAD fixes this problem

@cpsievert
Copy link

brew install unoconv --HEAD didn't fix the problem for me. First, I did:

$ brew cask install libreoffice
==> Downloading https://download.documentfoundation.org/libreoffice/stable/4.3.5/mac/x86_64/LibreOffice_4.3.5_MacOS_x86-64.dmg
######################################################################## 100.0%
==> Symlinking App 'LibreOffice.app' to '/Users/cpsievert/Applications/LibreOffice.app'
🍺  libreoffice staged at '/opt/homebrew-cask/Caskroom/libreoffice/4.3.5' (8296 files, 614M)

After brew install unoconv --HEAD, I got:

unoconv -f csv reports/802991581333766.xls 
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

However, I resolved the problem by adding another symlink:

ln -s /Users/cpsievert/Applications/LibreOffice.app /Applications/LibreOffice.app

@paul-crouch
Copy link

I'm having this issue after installing unoconv --HEAD via brew. Have created a second symlink as above - still no dice.

@jonknapp
Copy link

Does anyone have any info on what the files/folders that we need to find do? I'd like to help with a pull request if I knew more about what needs hooked up. It appears that unoconv no longer looks in the MacOS directory as of commit 430b943 as well, which is where soffice and python appear to be on my machine.

@skywinder
Copy link
Contributor

@jonknapp since HEAD version is working, all, that need to do - is release new verison with all changes from head. But only @dagwieers can do this.

@jonknapp
Copy link

HEAD worked on some macs before the latest release. It does not work with 4.4.0 and I've seen HEAD fail with 4.3.x on another Mac.

  • Jon Knapp

On Feb 19, 2015, at 2:05 AM, Petr Korolev notifications@github.com wrote:

@jonknapp since HEAD version if working - all, that need to do - is release new verison with all changes from head. But only @dagwieers can do this.


Reply to this email directly or view it on GitHub.

@HadrienKulik
Copy link

Same issue here, on Yosemite, 4.4.0 and HEAD =/
The symlink suggestion above does not work for me either.

@shividhar
Copy link

Same it doesn't work on Yosemite.

@ianwalter
Copy link

👍

@pilosof
Copy link

pilosof commented Mar 3, 2015

Anyone found a workaround ?

@jonknapp
Copy link

jonknapp commented Mar 3, 2015

@pilosof I've had to use an older version of LibreOffice. However, that same version does not work for a coworker, so I'm not sure of a solid solution beyond continuing to try older versions of LibreOffice.

@CrankMuffler
Copy link

Hi,

I found the error here, but I'm new to the whole git thing so bear with me.

The paths are incorrect and for LibreOffice Stable 4.4.1 they need to be:

MacOS/ for office binaries & MacOS/urelibs for the libpath and you have to remove the 'program' completely

129 if os.path.isfile(realpath(basepath, basis, 'MacOS/urelibs', lib)):
130 libpath = realpath(basepath, basis, 'MacOS/urelibs')

147 if os.path.isfile(realpath(basepath, basis, 'MacOS', bin)):
148 unopath = realpath(basepath, basis, 'MacOS')

should work!

Obviously somebody would need to write a proper fix, with 'program' and 'MacOS' being variables of a for, as above with 'basis', 'basis-link' and '' but yeah.

Unfortunately this leads to another error for me:
ImportError: No module named 'com' (or 'com.sun.star.document.UpdateDocMode.QUIET_UPDATE' is unknown)

Which apparently already showed up once, as a packaging bug in LibreOffice, so I don't know ...

@CrankMuffler
Copy link

@jonknapp thanks for this, I got it running with 4.3.6 and setting UNO_PATH to "/Applications/LibreOffice.app/Contents" using the LibreOffice python: "/Applications/LibreOffice.app/Contents/MacOS/python unoconv -f pdf /Users/username/Documents/Test.odt"

If you compare the directories of 4.4.1 & 4.3.6, you'll see that they are quite different, so that's why it's not working!

@jonknapp
Copy link

jonknapp commented Mar 3, 2015

thanks for digging into this @CrankMuffler

@datermine
Copy link

Does this mean it's not possible to get this working without using LibreOffice.app/.../python?

@skywinder
Copy link
Contributor

Duplicate of #163. Fixed in #250.

Use brew install unoconv --HEAD until the new version is not released

@monte-hayward
Copy link

#still broken, afaict

brew install unoconv --HEAD
==> Cloning https://github.com/dagwieers/unoconv.git
Cloning into '/Library/Caches/Homebrew/unoconv--git'...
remote: Counting objects: 26, done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 26 (delta 0), reused 18 (delta 0), pack-reused 0
Unpacking objects: 100% (26/26), done.
Checking connectivity... done.
==> Checking out branch master
==> make install prefix=/usr/local/Cellar/unoconv/HEAD
==> Caveats
In order to use unoconv LibreOffice 3.6.0.1 or later must be installed.

LibreOffice > About > 
Version: 4.4.3.2
Build ID: 88805f81e9fe61362df02b9941de8e38a9b5fd16
Locale: en_

/Applications/LibreOffice.app/Contents/MacOS/python test.docx --format html

/Applications/LibreOffice.app/Contents/MacOS/../Frameworks/LibreOfficePython.framework/
Versions/3.3/Resources/Python.app/Contents/MacOS/LibreOfficePython: 
can't find '__main__' module in 'test.docx'

@monte-hayward
Copy link

unoconv --version
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

@poplarmedia
Copy link

Getting same issue while running OSX 10.10.3, LibreOffice 4.4.3.2, and Unoconv HEAD:

Outcome
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

Install Steps:
brew cask libreoffice
brew install unoconv --HEAD

@rddesmond
Copy link

As a workaround, you can use the older version of libreoffice (you also don't need to use HEAD with it, unoconv 0.7 is now in homebrew)

brew cask install libreoffice43
brew install unoconv

@jonknapp
Copy link

make sure to tap the homebrew-versions project first, or else libreoffice43 can't be installed

brew tap caskroom/versions

@lelap
Copy link

lelap commented Aug 25, 2015

brew cask install libreoffice43 is giving an error, even after taping the homebrew-versions:
Download failed on Cask 'libreoffice43' with message: Download failed: https://download.documentfoundation.org/libreoffice/stable/4.3.7/mac/x86_64/LibreOffice_4.3.7_MacOS_x86-64.dmg

@kellyfelkins
Copy link

Same issue as @lelap

@pquentin
Copy link
Contributor

pquentin commented Sep 3, 2015

@skywinder About #211 (comment): No, #250 fixed Apache OpenOffice, not LibreOffice 4.4.

@lelap Indeed, LibreOffice download page no longer allows to download LibreOffice 4.3: it won't work with homebrew either.

@pquentin
Copy link
Contributor

pquentin commented Sep 3, 2015

So you can find LibreOffice <= 4.3 on https://downloadarchive.documentfoundation.org/libreoffice/old/.
Specifically, here is LibreOffice 4.3 .dmg file. I've sent a pull request to homebrew-versions.

Once you have LibreOffice 4.3.7 and installed it in /Applications (not /Users/you/Applications), you can use UNO_PATH=/Applications/LibreOffice.app/Contents /Applications/LibreOffice.app/Contents/MacOS/python unoconv -f pdf file.odt with git HEAD.

@tom-stock
Copy link

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

@EvgeniyGorbachev
Copy link

@koresar
Copy link

koresar commented Oct 22, 2018

For those looking for the TL;DR version.

  1. Download and install this: https://downloadarchive.documentfoundation.org/libreoffice/old/4.3.7.2/mac/x86_64/LibreOffice_4.3.7.2_MacOS_x86-64.dmg

brew install ghostscript
brew install unoconv

Done. This should create file called my.pdf:

unoconv my.docx

It might not run the first time. Just try again. Should work.

Tested on the latest MacOS Mojave.

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