py2app generates .app with no errors but .app crashes and quits unexpectedly

Posted by user3705730 on Stack Overflow See other posts from Stack Overflow or by user3705730
Published on 2014-06-05T09:23:17Z Indexed on 2014/06/05 9:24 UTC
Read the original article Hit count: 209

Filed under:
|
|
|

I am trying to use py2app and it generates .app with no errors but .app crashes and quits unexpectedly.

I am trying to do this in virtualenv so I am not sure if that is an issue with all the paths. It works on my computer when all the virtual environments exist but as soon as I close them down, the .app no longer works.

The virtual environment I am using has python 2.7.5

Here is my setup.py:

"""
This is a setup.py script generated by py2applet

Usage:
    python setup.py py2app
"""

from setuptools import setup

APP = ['myApp.py']
DATA_FILES = []
OPTIONS = {'argv_emulation': True, 'packages': ['pulp']}

setup(
    app=APP,
    data_files=DATA_FILES,
    options={'py2app': OPTIONS},
    setup_requires=['py2app'],
)

© Stack Overflow or respective owner

Related posts about python

Related posts about virtualenv