Hi Ned, thanks for your reply. Yes, I read that you don't have to do anything for the apple-supplied Pythons, but what if I want to keep using my EPD Python ? If not, i'll have to install everything else in order to be able to use PyObjc. If it is the only way, I'd consider it, but I'd find it strange ?
how can I install PyObjc for a non-apple-supplied Python ? easy_install actually seems to work up to a point; it installs about twenty packages but then I get: > > Running pyobjc-core-2.2/setup.py -q bdist_egg --dist-dir > /tmp/easy_install-mXb8PO/pyobjc-core-2.2/egg-dist-tmp-xJGYdv > warning: no directories found matching 'Scripts' > warning: no directories found matching 'setup-lib' > warning: no directories found matching 'source-deps' > warning: no previously-included files matching '.DS_Store' found anywhere in > distribution > warning: no previously-included files matching '*.pyc' found anywhere in > distribution > warning: no previously-included files matching '*.so' found anywhere in > distribution > libffi-src/x86/x86-ffi_darwin.c:39: warning: no previous prototype for > ‘ffi_prep_args’ > libffi-src/x86/x86-ffi_darwin.c:178: warning: function declaration isn’t a > prototype > libffi-src/x86/x86-ffi_darwin.c:186: warning: function declaration isn’t a > prototype > Modules/objc/objc-class.m: In function ‘PyObjCClass_New’: > Modules/objc/objc-class.m:1416: warning: implicit declaration of function > ‘PyType_Modified’ > Modules/objc/objc-class.m:1416: warning: nested extern declaration of > ‘PyType_Modified’ > Modules/objc/OC_PythonObject.m: In function ‘-[OC_PythonObject > replacementObjectForKeyedArchiver:]’: > Modules/objc/OC_PythonObject.m:1370: warning: conflicting types for > ‘-(NSObject *)replacementObjectForKeyedArchiver:(NSKeyedArchiver *)archiver’ this goes on and on with similar messages, until: > > Modules/objc/parsexml.m:1715: warning: implicit declaration of function > ‘xmlFreeDoc’ > Modules/objc/parsexml.m:1715: warning: nested extern declaration of > ‘xmlFreeDoc’ > error: Setup script exited with error: command 'gcc' failed with exit status 1 why doesn't this work ? My feeling is that I need a few clever symlinks to somewhere else, but I have no idea what precisely.. any ideas ? cheers, Joost. On 19 Dec, 2009, at 4:38 AM, Ned Deily wrote: > In article <be9bc0c9-1331-4893-9b62-01f08fb3c...@lumen.nu>, > Joost Rekveld <li...@lumen.nu> wrote: >> and everybody writes PyObjc is already installed on Snow Leopard, but I >> don't >> know what path to add to my Pythonpath for it to be found ? Would it be that >> simple ? > > You don't need to add anything if you use one of the Apple-supplied > Pythons in Snow Leopard: > > $ /usr/bin/python2.6 > Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51) > [GCC 4.2.1 (Apple Inc. build 5646)] on darwin > Type "help", "copyright", "credits" or "license" for more information. >>>> import objc >>>> ^D > $ /usr/bin/python2.5 > Python 2.5.4 (r254:67916, Jul 7 2009, 23:51:24) > [GCC 4.2.1 (Apple Inc. build 5646)] on darwin > Type "help", "copyright", "credits" or "license" for more information. >>>> import objc >>>> ^D > > -- On 19 Dec, 2009, at 2:20 AM, Joost Rekveld wrote: > Hi, > > i'm very new to this list, relatively new to Python, and don't manage to > install PyObjc under the Enthought Python on Snow Leopard (distribution > 5.1.1, which includes a Python 2.5.4). > > - easy_install installs things in their desired places, but chokes on > PyObjc-core > - macports starts installing all kinds of stuff where I don't want it (and > quits when it doesn't find its own Python2.5 version). > > and everybody writes PyObjc is already installed on Snow Leopard, but I don't > know what path to add to my Pythonpath for it to be found ? Would it be that > simple ? > > and online I don't seem to find people having the same problem, so I must be > missing something very obvious. > any help very much appreciated ! > > kind regards, > > Joost. ------------------------------------------- Joost Rekveld ----------- http://www.lumen.nu/rekveld ------------------------------------------- "A is better off if B is better off.” (Heinz von Foerster) ------------------------------------------- _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig