Saturday, 15 February 2014

osx lion - py2app crashes with PIL errors on earlier versions of OS X -



osx lion - py2app crashes with PIL errors on earlier versions of OS X -

a similar question asked before else: py2app app crashes on before mac os x versions

i have app runs fine on machine (osx 10.9.4), when move machine running 10.7.5, app crashes on start up. next messages in console:

traceback (most recent phone call last): file "/path_to_app/app.app/contents/resources/__boot__.py", line 3 _recipes_pil_prescript(['hdf5subimageplugin', 'fitsstubimageplugin', 'sunimageplugin', 'gbrimageplugin', 'jpeg2kimageplugin', 'micimageplugin', 'fpximageplugin', imimageplugin', ... file "/path_to_app/app.app/contents/resources/__boot__.py, line 3 pil import image file "pil/image.pyc", line 62, in <module> file "pil/_imaging.pyc", line 14, in <module> file "pil/_imaging.pyc", line 10, in __load importerror: dlopen(/path_to_app/app.app/contents/resources/lib/python2.7/lib-dynload/pil/_imaging.so, 2): symbol not found: ___sincos_stret referenced /path_to_app/app.app/contents/resources/lib/python2.7/lib-dynload/pil/_imaging.so expected in: /usr/lib/libsystem.b.dylib in /path_to_app/app.app/contents/resources/lib/python2.7/lib-dynload/pil/_imaging.so

earlier, around error, uninstalled pillow. i'm not sure why pillow libraries beingness added app begin with, since didn't think using it. now, when attempting workaround, error:

traceback (most recent phone call last): file "/path_to_app.app/app.app/contents/resources/__boot__.py", line 384, in <module> _recipes_pil_prescript([]) file "/path_to_app.app/app.app/contents/resources/__boot__.py", line 344, in _recipes_pil_prescript pil import image file "/usr/local/lib/python2.7/site-packages/pil/image.py", line 62, in <module> importerror cannot import name _imaging

apparently i'm using pil somehow. script imports following:

from __future__ import partition import easygui eg import os, zlib, re, datetime, getpass, tkmessagebox, sys import zipfile z import tkinter tk tkfiledialog import askdirectory optparse import optionparser

here's setup.py:

from setuptools import setup app = ['zipperscript.py'] data_files = [] options = {'argv_emulation': true, 'excludes': ['']} setup( app=app, name="zipperscript_hi_50", data_files=data_files, options={'py2app': options}, setup_requires=['py2app'], version="hawaii branch 4.0.50" )

i'm not sure os version causing problem, that's theory right now. i'm not sure how proceed. help or suggestions appreciated.

osx-lion python-imaging-library py2app

No comments:

Post a Comment