I am trying to use pyinstaller, on OSX Mavericks, with one Python script. Pyinstaller compiles and packages until it finds an error in the Pillow library.
ImportError: dlopen(/Users/Rodolphe/.python-eggs/Pillow-2.2.1-py2.7-macosx-10.9-intel.egg tmp/PIL/_imaging.so, 2): Library not loaded: /usr/local/lib/libjpeg.8.dylib
Referenced from: /Users/Rodolphe/.python-eggs/Pillow-2.2.1-py2.7-macosx-10.9-intel.egg-tmp/PIL/_imaging.so
Reason: Incompatible library version: _imaging.so requires version 13.0.0 or later, but libjpeg.8.dylib provides version 9.0.0
It seems that Pyinstaller and Pillow are not getting along (this is apparently a well-known fact: http://www.pyinstaller.org/ticket/745 ). Is there any way around this? Should I try to remove Pillow and install Pil instead (I chose Pillow out of gloom from the unwantedness of Pil to install on Mavericks, for starters)? Or maybe upgrade libjpeg.8.dylib to version 13.0.0 as this seems like a problem?
[EDIT]
I updated libjepeg thanks to @ mimi.vx advice. Now I have another error at the very end of the process:
IOError: [Errno 20] Not a directory: '/Library/Python/2.7/site-packages/Pillow-2.2.1-py2.7-macosx-10.9-intel.egg/PIL/_imaging.so'
I tried reinstalling Pillow, so Pyinstaller might get the directory, but so far it fails ...
[RE-EDIT]
Using py2app instead of pyinstaller worked for me!
source
share