[Pythonmac-SIG] Py2app error

Mark Livingstone livingstonemark at gmail.com
Tue Jul 17 02:18:42 CEST 2012


Hello,

Using both EPD 7.3 academic and free, I have tried to use py2app to
make an installer. This is the first time I have tried to do this. I
will ask on their mailing list as well.

My setup.py script looks like this:


import wx
import sys

# Application Information
APP = "salstat.py"
NAME = 'SalStat'
VERSION = '2.2'
PACKAGES = ['']
URL = 'http://code.google.com/p/salstat-statistics-package-2/'
LICENSE = 'GPL 2'
AUTHOR = 'Sebastian'
AUTHOR_EMAIL = 'selobu at gmail.com'
DESCRIPTION = 'Statistics Package'
YEAR = 2012
# End of Application Information


def BuildOSXApp():
    """
    Build the OSX Applet
    """

    from setuptools import setup

    # py2app uses this to generate the plist xml for the applet
    copyright = "Copyright %s %s" % (AUTHOR, YEAR)
    appid = "com.%s.%s" % (NAME, NAME)
    PLIST = dict(CFBundleName = NAME,
            CFBundleIconFile = 'salstat.ico',
            CFBundleShortVersionString = VERSION,
            CFBundleGetInfoString = NAME + " " + VERSION,
            CFBundleExecutable = NAME,
            CFBundleIdentifier = appid,
            CFBundleTypeMIMETypes = ['text/plain'],
            CFBundleDevelopmentRegion = 'English',
            NSHumanReadableCopyright = copyright
    )
    PY2APP_OPTS = dict(iconfile = "salstat.ico",
    argv_emulation = True,
    plist = PLIST)
    setup(
        app = [APP,],
        version = VERSION,
        options = dict( py2app = PY2APP_OPTS),
        description = NAME,
        author = AUTHOR,
        author_email = AUTHOR_EMAIL,
        url = URL,
        setup_requires = ['py2app'],
    )


if __name__ == '__main__':
    if wx.Platform == '__WXMAC__':
        # OS X
        BuildOSXApp()
    else:
        print "Unsupported platform: %s" % wx.Platform


When I run it, it starts off fine and seems to work until it quits like this:

<snip>

creating /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/dist/SalStat.app/Contents/Resources/lib/python2.7/lib-dynload/PIL
creating /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/dist/SalStat.app/Contents/Resources/lib/python2.7/lib-dynload/wx
copying /Library/Frameworks/Python.framework/Versions/7.3/Resources/Python.app/Contents/MacOS/Python
-> /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/dist/SalStat.app/Contents/MacOS/python
creating /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/dist/SalStat.app/Contents/Frameworks/Python.framework
creating /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/dist/SalStat.app/Contents/Frameworks/Python.framework/Versions
creating /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/dist/SalStat.app/Contents/Frameworks/Python.framework/Versions/7.3
creating /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/dist/SalStat.app/Contents/Frameworks/Python.framework/Versions/7.3/Resources
creating /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/dist/SalStat.app/Contents/Frameworks/Python.framework/Versions/7.3/include
creating /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/dist/SalStat.app/Contents/Frameworks/Python.framework/Versions/7.3/include/python2.7
creating /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/dist/SalStat.app/Contents/Frameworks/Python.framework/Versions/7.3/lib
creating /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/dist/SalStat.app/Contents/Frameworks/Python.framework/Versions/7.3/lib/python7.3
creating /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/dist/SalStat.app/Contents/Frameworks/Python.framework/Versions/7.3/lib/python7.3/config
copying /Library/Frameworks/Python.framework/Versions/7.3/Python ->
/Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/dist/SalStat.app/Contents/Frameworks/Python.framework/Versions/7.3
copying /Library/Frameworks/Python.framework/Versions/7.3/Resources/Info.plist
-> /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/dist/SalStat.app/Contents/Frameworks/Python.framework/Versions/7.3/Resources
copying /Library/Frameworks/Python.framework/Versions/7.3/include/python2.7/pyconfig.h
-> /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/dist/SalStat.app/Contents/Frameworks/Python.framework/Versions/7.3/include/python2.7
error: can't copy
'/Library/Frameworks/Python.framework/Versions/7.3/lib/python7.3/config/Makefile':
doesn't exist or not a regular file


Looking back through the mile of screen space I have snipped, it seems
to have successfully found all the other dependencies like wx, numpy,
scipy etc. When I check, indeed that file (Makefile) does not exist at that
location.

Thanks in advance for any help!

MarkL


More information about the Pythonmac-SIG mailing list