Mac binary application package and installer for OpenLP out!

Today I created a binary application package for an Python application on the OS X platform. As I had a no success with [ py2app] despite [ good tutorials] [ Raoul] pointed me to [ PyInstaller] and that the SVN version has support for Mac.

I checked out PyInstaller and built it with something like that:
svn co pyinstaller
cd pyinstaller/source/linux
python ./
cd ../..

[ Raoul] gave me a few hook files for hidden imports, these look like following
hiddenimports = ['lxml.etree']

Then I issued following command to build a spec file for [ OpenLP 2.0 (a free program to empower churches for displaying songs and presentations during a service)]
python --onefile /Users/matthiashub/openlp/trunk/openlp.pyw

And then added to the created [ spec file] following snippet
import sys
if sys.platform.startswith("darwin"):
app = BUNDLE(exe,
appname='OpenLP 2.0 ALPHA',

and added the [ hookspath] parameter
a = Analysis([os.path.join(HOMEPATH,'support/'), os.path.join(HOMEPATH,'support/'), '/Users/matthiashub/openlp/trunk/openlp.pyw'],
pathex=['/Users/matthiashub/openlp/pyinstaller'], hookspath=['/Users/matthiashub/Matthias/openlp/trunk/resources/pyinstaller'])


And finally the [ build step]
python openlp/openlp.spec

Some errors occured, but the bug tracking system had already workarounds ready for it:
* [ Missing files]
* [ Missing icon and menu]
* [ Missing qt_menu.nib]
* For openlp you also need to copy the available plugins manually into the plugins directory

Building a dmg (a disk image) out of it was an easy job, [ that tutorial on] guided me through the whole process.

With that link you can download the [ OpenLP 2.0 Pre-Alpha Installer]


Thanks for all the work you put into this Matthias!

I got one of our Mac users to try it out, and apart from one or two small issues, everything worked! This is great!


as i'm in the uk i may not get the official alpha release on time for tomorrow, to use on our new imac... is there any reason why i can't get the ppt controller and media options to work on this one? they are active.

maybe i'll just have to wait for the official!

Great to hear that you tried OpenLP! The alpha releases are AFAIK already built and just need to be linked on the site. Regarding the presentations and media support: yes there are still some issues with that (the biggest one seems to be uno - the OpenOffice bridge - for python on Mac), but we are working on that. You can out the testers mailing list of OpenLP to get notifications about test builds.

Greets, Matthias

User login

This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
3 + 6 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.
Powered by Drupal