Re: [Pyobjc-dev] Trying to run examples from the website
Brought to you by:
ronaldoussoren
From: Grzegorz A. H. <gr...@ti...> - 2010-01-12 10:16:22
|
El 12/01/2010, a las 10:31, Ronald Oussoren escribió: >> $ python main.py >> 2010-01-10 21:26:34.055 Python[48412:d07] No Info.plist file in application bundle or no NSPrincipalClass in the Info.plist file, exiting >> > > Use "python setup.py py2app" to create an .app bundle in subdirectory "dist", then start that application (either by double-clicking in the Finder or using the open command in the terminal). Thanks, that gets me further. Running the generated bundle throws the following log errors: > 12/01/10 11:12:01 [0x0-0x142142].org.pythonmac.unspecified.CGRotation[2304] Traceback (most recent call last): > 12/01/10 11:12:01 [0x0-0x142142].org.pythonmac.unspecified.CGRotation[2304] File "/Users/gradha/Downloads/PyObjCExample-CGRotation/dist/CGRotation.app/Contents/Resources/__boot__.py", line 31, in <module> > 12/01/10 11:12:01 [0x0-0x142142].org.pythonmac.unspecified.CGRotation[2304] _run('main.py') > 12/01/10 11:12:01 [0x0-0x142142].org.pythonmac.unspecified.CGRotation[2304] File "/Users/gradha/Downloads/PyObjCExample-CGRotation/dist/CGRotation.app/Contents/Resources/__boot__.py", line 28, in _run > 12/01/10 11:12:01 [0x0-0x142142].org.pythonmac.unspecified.CGRotation[2304] execfile(path, globals(), globals()) > 12/01/10 11:12:01 [0x0-0x142142].org.pythonmac.unspecified.CGRotation[2304] File "/Users/gradha/Downloads/PyObjCExample-CGRotation/dist/CGRotation.app/Contents/Resources/main.py", line 1, in <module> > 12/01/10 11:12:01 [0x0-0x142142].org.pythonmac.unspecified.CGRotation[2304] from PyObjCTools import AppHelper > 12/01/10 11:12:01 [0x0-0x142142].org.pythonmac.unspecified.CGRotation[2304] File "build/bdist.macosx-10.6-universal/egg/PyObjCTools/AppHelper.py", line 14, in <module> > 12/01/10 11:12:01 [0x0-0x142142].org.pythonmac.unspecified.CGRotation[2304] File "build/bdist.macosx-10.6-universal/egg/AppKit/__init__.py", line 9, in <module> > 12/01/10 11:12:01 [0x0-0x142142].org.pythonmac.unspecified.CGRotation[2304] File "build/bdist.macosx-10.6-universal/egg/Foundation/__init__.py", line 10, in <module> > 12/01/10 11:12:01 [0x0-0x142142].org.pythonmac.unspecified.CGRotation[2304] File "build/bdist.macosx-10.6-universal/egg/CoreFoundation/__init__.py", line 19, in <module> > 12/01/10 11:12:01 [0x0-0x142142].org.pythonmac.unspecified.CGRotation[2304] File "objc/_bridgesupport.pyc", line 156, in initFrameworkWrapper > 12/01/10 11:12:01 [0x0-0x142142].org.pythonmac.unspecified.CGRotation[2304] File "objc/_bridgesupport.pyc", line 58, in _parseBridgeSupport > 12/01/10 11:12:01 [0x0-0x142142].org.pythonmac.unspecified.CGRotation[2304] ValueError: Don't know CF type for typestr '^{__CFAllocator=}', cannot create special wrapper > 12/01/10 11:12:01 CGRotation[2304] CGRotation Error > 12/01/10 11:12:01 CGRotation[2304] CGRotation Error > An unexpected error has occurred during execution of the main script > > ValueError: Don't know CF type for typestr '^{__CFAllocator=}', cannot create special wrapper > 12/01/10 11:12:11 com.apple.launchd.peruser.501[277] ([0x0-0x142142].org.pythonmac.unspecified.CGRotation[2304]) Exited with exit code: 255 BTW, is there no other possibility to run pyobjc scripts than to build applications? |