I have a python application which I am building using the latest py2app on OSX 10.11.3. The compiled application runs correctly on my Mac and on another Mac 10.10.5, but instantly crashes with "Quit unexpectedly" when opening on another Mac 10.11.3. My question is how do I go about bug fixing something like this, how can I find out exactly what is crashing it? This is the setup.py I am using:
"""
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
"""
from setuptools import setup
APP = ['MyAppV1.2.py']
DATA_FILES = []
OPTIONS = {
'iconfile':'MyApp.icns',
'plist': {'CFBundleShortVersionString':'1.2',}
}
setup(
app=APP,
name='MyAppV1.2',
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)
Anything I am doing wrong, or how can I see whats causing the crash once compiled? Perhaps it's a package which is not being bundled correctly, how can I see what packages are bundled correctly and what are not?
UPDATE:
I did as suggested below and double clicked the exec file of my app name to run in Terminal so I get some sort of error logging. When running my app I now get the below error:
Traceback (most recent call last):
File "/Applications/MyApp.app/Contents/Resources/__boot__.py", line 72, in <module>
_setup_ctypes()
File "/Applications/MyApp.app/Contents/Resources/__boot__.py", line 66, in _setup_ctypes
from ctypes.macholib import dyld
ImportError: No module named ctypes.macholib
I don't know where to go from here, what can I do to try and fix this issue please?
Apologies, but this turned ou to be a bag configuration issue with my Python install. I did the same build on a different mac, with the same versions of everything, and the app now opens and runs fine on all other macs. Sorry for the false issue.