I'm making a wxpython-based App for MacOS, and packaging it with 
pyinstaller. It seems to work on my machine, and on another machine, but 
crashes when I send it to my user.

I initially posted here: *MacOS app bundle built with pyinstaller crashes 
on another Mac* 
<http://stackoverflow.com/questions/24129747/macos-app-bundle-built-with-pyinstaller-crashes-on-another-mac>,
 
but then just tried to package a simple app and see if it would work, but 
the results are the same. I have Mac OS X 10.9.2, python 2.7.5, wxpython 
2.9.5 and the latest development pyinstaller. The app did work on another 
machine, Mac OS X 10.9.3. However, when I sent it to my user who has Mac OS 
10.8.5, the app crashes with Segmentation fault 11:

*idm2277:~ mdutra$ /Users/mdutra/Desktop/Test.app/Contents/MacOS/test ; exit;
Segmentation fault: 11
logout

[Process completed]*

Here is a simple script test.py that creates a hello window:

*import wx
app = wx.App(False)
frame = wx.Frame(None,wx.ID_ANY,"Hello!")
frame.Show(True)
control = wx.StaticText(frame,label = "Test successful!")
app.MainLoop()*

And here is the specification my.spec, which I run as follows: 

*python {path_to_pyinstaller_folder}/pyinstaller.py --windowed my.spec*

*import os
src ='/Users/ojy/test'
dist = '/Users/ojy/test/bin'
icn = '/Users/ojy/icon.icns'

a = Analysis([os.path.join(src,'test.py')],
         pathex=[dist],
         hiddenimports=[],
         hookspath=None,
         runtime_hooks=None)
pyz = PYZ(a.pure)
exe = EXE(pyz,
      a.scripts,
      exclude_binaries=True,
      name='test',
      debug=False,
      strip=None,
      upx=True,
      console=False )
coll = COLLECT(exe,
           a.binaries,
           a.zipfiles,
           a.datas,
           strip=None,
           upx=True,
           name='Test')
app = BUNDLE(coll,
         name='Test.app',
         icon=icn)*

Any ideas why it happens and how to fix it?

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.

Reply via email to