I am building an application which uses MySQLdb, whihc appears to build correctly, but when running this on another Mac it quits unexpectedly. Is there any required steps to get MySQLdb included correctly with py2app? Here is my setup.py:
from setuptools import setup
APP = ['myApplication.py']
DATA_FILES = []
OPTIONS = {
'iconfile':'myIcon.icns',
'plist': {'CFBundleShortVersionString':'1.0',
'NSHumanReadableCopyright': u"Copyright © 2016, All Rights Reserved"}}
setup(
app=APP,
name='Transcoder_V1.0',
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)
I have previously built this successfully using this exact setup and the exact same myApplication.py, which does run on other Macs, so the only thing which has changed is the version numbers, which are:
Python: 2.7.11
MySQL-Python: 1.2.5
mysql-connector-python: 2.0.4
mysqlclient: 1.3.7
py2app: 0.9
setuptools: 20.3
Is there anything I can try to fix?
UPDATE: I just tried adding into the setup:
PACKAGES = ['MySQLdb']
INCLUDES = ['MySQLdb']
OPTIONS = {'argv_emulation': True,
'packages': PACKAGES,
'includes': INCLUDES,
}
But I still get the quit unexpedidly, this is the start of the console crash log:
Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libmysqlclient.18.dylib 0x000000010baf5e18 mysql_server_init + 132
1 _mysql.so 0x00000001095b0fc1 0x1095ad000 + 16321
2 org.python.python 0x00000001022c410c PyEval_EvalFrameEx + 40108
3 org.python.python 0x00000001022c4ff3 PyEval_EvalCodeEx + 2131
Any other ideas I could try please?
UPDATE: I am connecting to a MySQL Server version 5.6, do I need to update this?