I'm a rookie making his first attempt to app my python project. I
installed py2app using easy_install.

Console output from the failed build seems to show py2app is looking
for python2.7, I don't know why.

Python info:
Python 2.5 (r25:51918, Sep 19 2006, 08:49:13)
[GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin


Setup.py:

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

Usage:
    python setup.py py2app
"""

from setuptools import setup

APP = ['Envoy3.0.0.py']
DATA_FILES = []
OPTIONS = {'argv_emulation': True}

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

Console output:
Mac OS X Version 10.3.9 (Build 7W98)
2011-10-19 12:12:23 -0400
Traceback (most recent call last):
  File "/Applications/Python 2.7/IDLE.app/Contents/Resources/
idlemain.py", line 71, in <module>
    from idlelib import macosxSupport
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/
python2.7/idlelib/macosxSupport.py", line 6, in <module>
    import Tkinter
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/
python2.7/lib-tk/Tkinter.py", line 39, in <module>
    import _tkinter # If this fails your Python may not be configured
for Tk
ImportError: dlcompat: dyld: /Applications/Python 2.7/IDLE.app/
Contents/MacOS/IDLE can't open library: /Library/Frameworks/
Tk.framework/Versions/8.4/Tk  (No such file or directory, errno = 2)

Traceback (most recent call last):
  File "/Applications/Python 2.7/IDLE.app/Contents/Resources/
idlemain.py", line 71, in <module>
    from idlelib import macosxSupport
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/
python2.7/idlelib/macosxSupport.py", line 6, in <module>
    import Tkinter
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/
python2.7/lib-tk/Tkinter.py", line 39, in <module>
    import _tkinter # If this fails your Python may not be configured
for Tk
ImportError: dlcompat: dyld: /Applications/Python 2.7/IDLE.app/
Contents/MacOS/IDLE can't open library: /Library/Frameworks/
Tk.framework/Versions/8.4/Tk  (No such file or directory, errno = 2)

Traceback (most recent call last):
  File "/Applications/Python 2.7/IDLE.app/Contents/Resources/
idlemain.py", line 71, in <module>
    from idlelib import macosxSupport
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/
python2.7/idlelib/macosxSupport.py", line 6, in <module>
    import Tkinter
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/
python2.7/lib-tk/Tkinter.py", line 39, in <module>
    import _tkinter # If this fails your Python may not be configured
for Tk
ImportError: dlcompat: dyld: /Applications/Python 2.7/IDLE.app/
Contents/MacOS/IDLE can't open library: /Library/Frameworks/
Tk.framework/Versions/8.4/Tk  (No such file or directory, errno = 2)

Traceback (most recent call last):
  File "/Applications/Python 2.7/IDLE.app/Contents/Resources/
idlemain.py", line 71, in <module>
    from idlelib import macosxSupport
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/
python2.7/idlelib/macosxSupport.py", line 6, in <module>
    import Tkinter
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/
python2.7/lib-tk/Tkinter.py", line 39, in <module>
    import _tkinter # If this fails your Python may not be configured
for Tk
ImportError: dlcompat: dyld: /Applications/Python 2.7/IDLE.app/
Contents/MacOS/IDLE can't open library: /Library/Frameworks/
Tk.framework/Versions/8.4/Tk  (No such file or directory, errno = 2)

Not a JPEG file: starts with 0x89 0x50
** IDLE can't import Tkinter.  Your Python may not be configured for
Tk. **
0
Unknown argument: -psn_0_3801089
Unknown argument: -psn_0_4063233
Unknown argument: -psn_0_4194305
Traceback (most recent call last):
  File "/Users/richfulton/Desktop/EnvoyLite3.0.0/dist/Envoy3.0.0.app/
Contents/Resources/__boot__.py", line 58, in <module>
    carbon = ctypes.CDLL('/System/Library/Carbon.framework/Carbon')
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/ctypes/__init__.py", line 312, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: dlcompat: file "/System/Library/Carbon.framework/Carbon" not
found
2011-10-19 16:56:57.859 Envoy3.0.0[900] Envoy3.0.0 Error
Unknown argument: -psn_0_4849665
Unknown argument: -psn_0_4980737

Any help appreciated.
Rich
_______________________________________________
PySide mailing list
[email protected]
http://lists.pyside.org/listinfo/pyside

Reply via email to