[Pythonmac-SIG] thanks for PyObjC!

Massimo Di Stefano massimodisasha at yahoo.it
Sun Nov 9 12:55:14 CET 2008


Hi,
i'm tring to runs the example files at :
http://pyobjc.sourceforge.net/examples/
but unluky something is wrong in my python system,
i tried from the python consolle :
 >>import Foundation, AppKit
 >>AppKit.NSBeep()
it works, but tring the examples code like ..
PyObjCExample-Python Address Label
i've these log :
sashas-macbook-pro-15:PyObjCExample-Python Address Label sasha$ python 
setup.py py2app
running py2app
creating /Users/sasha/Downloads/PyObjCExample-Python Address Label/build
creating /Users/sasha/Downloads/PyObjCExample-Python Address Label/ 
build/bdist.macosx-10.5-i386
creating /Users/sasha/Downloads/PyObjCExample-Python Address Label/ 
build/bdist.macosx-10.5-i386/python2.5-semi_standalone
creating /Users/sasha/Downloads/PyObjCExample-Python Address Label/ 
build/bdist.macosx-10.5-i386/python2.5-semi_standalone/app
creating /Users/sasha/Downloads/PyObjCExample-Python Address Label/ 
build/bdist.macosx-10.5-i386/python2.5-semi_standalone/app/collect
creating /Users/sasha/Downloads/PyObjCExample-Python Address Label/ 
build/bdist.macosx-10.5-i386/python2.5-semi_standalone/app/temp
creating /Users/sasha/Downloads/PyObjCExample-Python Address Label/dist
creating build/bdist.macosx-10.5-i386/python2.5-semi_standalone/app/ 
lib-dynload
creating build/bdist.macosx-10.5-i386/python2.5-semi_standalone/app/ 
Frameworks
*** filtering dependencies ***
362 total
353 filtered
3 orphaned
9 remaining
*** create binaries ***
creating python loader for extension 'cElementTree'
*** byte compile python files ***
Traceback (most recent call last):
 File "/Library/Python/2.5/site-packages/py2app-0.3.6-py2.5.egg/ 
py2app/build_app.py", line 548, in _run
 self.run_normal()
 File "/Library/Python/2.5/site-packages/py2app-0.3.6-py2.5.egg/ 
py2app/build_app.py", line 619, in run_normal
 self.create_binaries(py_files, pkgdirs, extensions, loader_files)
 File "/Library/Python/2.5/site-packages/py2app-0.3.6-py2.5.egg/ 
py2app/build_app.py", line 683, in create_binaries
 dry_run=self.dry_run)
 File "/Library/Python/2.5/site-packages/py2app-0.3.6-py2.5.egg/ 
py2app/util.py", line 204, in byte_compile
 if force or newer(mod.filename, cfile):
 File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/distutils/dep_util.py", line 22, in newer
 raise DistutilsFileError, "file '%s' does not exist" % source
DistutilsFileError: file '/Library/Python/2.5/site-packages/ 
elementtree-1.2.7_20070827_preview-py2.5.egg/elementtree/ 
ElementIron.pyc' does not exist
 > /System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/distutils/dep_util.py(22)newer()
-> raise DistutilsFileError, "file '%s' does not exist" % source
(Pdb) q
tring it using the -A flag :
setup.py py2app -A
the application is created but tring to start it
it give me a message "AppKit" not found
and open a consolle for to see the error message
please can you help me to have it working?
thanks foer any help/suggestion.
regards,
Massimo
On Nov 9, 2008, at 12:00 PM, pythonmac-sig-request at python.org wrote:
>>>> I've been using the Python-Cocoa application template in Xcode 3, and
>> I'm just blown away by how *easy* it is to develop native Cocoa apps
>> with Python. Simply amazing. Nicest UI toolkit I've ever played
>> with, too.
>> I agree, PyObjC rocks and its integration with XCode is very nice.
>>> Thanks to all of you who worked on it -- it's grrrreaaat!
>> I second that!
>>> (Oh, and let me slip in a plug for Aaron Hillegass' book, COCOA
>> PROGRAMMING FOR MAC OS X, which has nice explanations of the various
>> patterns the toolkit uses.)
>> I second that too; it's a good book, and it's not hard to convert 
> from ObjC to PyObjC as you go through the examples and exercises.

Chiacchiera con i tuoi amici in tempo reale! 
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com 


More information about the Pythonmac-SIG mailing list

AltStyle によって変換されたページ (->オリジナル) /