Starting listener fails with "No Info.plist file in application bundle or no NSPrincipalClass in the Info.plist file" #60

Closed
shamrin opened this Issue Jun 7, 2012 · 5 comments

Comments

Projects
None yet
3 participants

shamrin commented Jun 7, 2012

Using Mac OS 10.6.8, LibreOffice 3.5.4.2, unoconv HEAD.

Trying to run listener fails with soffice.bin error:

$ unoconv -l -vvv
Verbosity set to level 3
DEBUG: sysname=posix, platform=darwin, python=/usr/bin/python, python-version=2.6.1 (r261:67515, Aug  2 2010, 20:10:18) 
[GCC 4.2.1 (Apple Inc. build 5646)]
DEBUG: Found pyuno.so in /Applications/LibreOffice.app/Contents/program
DEBUG: Found soffice.bin in /Applications/LibreOffice.app/Contents/program
DEBUG: Found unorc in /Applications/LibreOffice.app/Contents/ure-link/lib
DEBUG: Found OOoPython.framework/Versions/*/lib/python* in /Applications/LibreOffice.app/Contents/program/OOoPython.framework/Versions/2.6/lib/python2.6
DEBUG: Found python in /Applications/LibreOffice.app/Contents/program
DEBUG: Considering /Applications/LibreOffice.app/Contents
DEBUG: -> Switching from /usr/bin/python to /Applications/LibreOffice.app/Contents/program/python
Verbosity set to level 3
DEBUG: sysname=posix, platform=darwin, python=/Applications/LibreOffice.app/Contents/program/OOoPython.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/OOoPython, python-version=2.6.1 (r261:67515, May 22 2012, 08:19:34) 
[GCC 4.0.1 (Apple Inc. build 5494)]
DEBUG: Found pyuno.so in /Applications/LibreOffice.app/Contents/program
DEBUG: Found soffice.bin in /Applications/LibreOffice.app/Contents/program
DEBUG: Found unorc in /Applications/LibreOffice.app/Contents/ure-link/lib
DEBUG: Found OOoPython.framework/Versions/*/lib/python* in /Applications/LibreOffice.app/Contents/program/OOoPython.framework/Versions/2.6/lib/python2.6
DEBUG: Found python in /Applications/LibreOffice.app/Contents/program
DEBUG: Considering /Applications/LibreOffice.app/Contents
Using office base path: /Applications/LibreOffice.app/Contents
Using office binary path: /Applications/LibreOffice.app/Contents/program
Start listener on localhost:2002
2012-06-07 19:20:24.917 soffice.bin[90935:903] No Info.plist file in application bundle or no NSPrincipalClass in the Info.plist file, exiting
Existing LibreOffice listener found, nothing to do.

Similar error without starting listener:

$ unoconv -vvv test.emf 
Verbosity set to level 3
DEBUG: sysname=posix, platform=darwin, python=/usr/bin/python, python-version=2.6.1 (r261:67515, Aug  2 2010, 20:10:18) 
[GCC 4.2.1 (Apple Inc. build 5646)]
DEBUG: Found pyuno.so in /Applications/LibreOffice.app/Contents/program
DEBUG: Found soffice.bin in /Applications/LibreOffice.app/Contents/program
DEBUG: Found unorc in /Applications/LibreOffice.app/Contents/ure-link/lib
DEBUG: Found OOoPython.framework/Versions/*/lib/python* in /Applications/LibreOffice.app/Contents/program/OOoPython.framework/Versions/2.6/lib/python2.6
DEBUG: Found python in /Applications/LibreOffice.app/Contents/program
DEBUG: Considering /Applications/LibreOffice.app/Contents
DEBUG: -> Switching from /usr/bin/python to /Applications/LibreOffice.app/Contents/program/python
Verbosity set to level 3
DEBUG: sysname=posix, platform=darwin, python=/Applications/LibreOffice.app/Contents/program/OOoPython.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/OOoPython, python-version=2.6.1 (r261:67515, May 22 2012, 08:19:34) 
[GCC 4.0.1 (Apple Inc. build 5494)]
DEBUG: Found pyuno.so in /Applications/LibreOffice.app/Contents/program
DEBUG: Found soffice.bin in /Applications/LibreOffice.app/Contents/program
DEBUG: Found unorc in /Applications/LibreOffice.app/Contents/ure-link/lib
DEBUG: Found OOoPython.framework/Versions/*/lib/python* in /Applications/LibreOffice.app/Contents/program/OOoPython.framework/Versions/2.6/lib/python2.6
DEBUG: Found python in /Applications/LibreOffice.app/Contents/program
DEBUG: Considering /Applications/LibreOffice.app/Contents
Using office base path: /Applications/LibreOffice.app/Contents
Using office binary path: /Applications/LibreOffice.app/Contents/program
DEBUG: Connection type: socket,host=localhost,port=2002;urp;StarOffice.ComponentContext
DEBUG: Existing listener not found.
DEBUG: Launching our own listener using /Applications/LibreOffice.app/Contents/program/soffice.bin.
LibreOffice listener successfully started. (pid=91159)
2012-06-07 19:27:01.150 soffice.bin[91159:903] No Info.plist file in application bundle or no NSPrincipalClass in the Info.plist file, exiting
DEBUG: Process /Applications/LibreOffice.app/Contents/program/soffice.bin (pid=91159) exited with 1.
Error: Unable to connect or start own listener. Aborting.

How can I debug this issue?

shamrin commented Jun 7, 2012

By the way, importing uno works for me:

$ /Applications/LibreOffice.app/Contents/program/python
Python 2.6.1 (r261:67515, May 22 2012, 08:19:34) 
[GCC 4.0.1 (Apple Inc. build 5494)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import uno
>>> ^D
Owner

dagwieers commented Jun 8, 2012

Interesting. A whole new problem we never encountered before :-) What version of LibreOffice is this ?

This relates to #27, since we have some users that report problems importing uno on MacOSX, and it that obviously works in your case, with a different showstopper :-(

If you look here: https://github.com/dagwieers/unoconv/blob/master/unoconv#L137

I changed 'program' to 'MacOS' and it's working for me now.

Owner

dagwieers commented Jul 19, 2012

I am closing this issue, as we track #137 already.

@dagwieers dagwieers closed this Jul 19, 2012

@ghost ghost assigned dagwieers Jul 19, 2012

Owner

dagwieers commented Sep 12, 2012

This problem should be fixed since the v0.6 release. I would appreciate an update confirming this.

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