Re: [Pyobjc-dev] Exceptions on calling super
Brought to you by:
ronaldoussoren
From: Dirk S. <dir...@ma...> - 2009-09-21 12:53:33
|
More news from the working around front: Apparently something in BridgeSupport changed in Snow Leopard, with the effect that you can no longer call unbound instance methods by passing in the instance as the first variable: on Leopard: > >>> NSObject.init() > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > TypeError: Missing argument: self on Snow Leopard: > >>> NSObject.init(someInstance) > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > TypeError: Need 0 arguments, got 1 Calling these the other way around works. So quick heads up to anyone following this thread: My workaround was flawed. Installing pyobjc from trunk on Python 2.6.2 now, as "import objc" seems to work on that. (no _PyType_Modified errors) - Dirk On Sep 21, 2009, at 12:46 PM, Dirk Stoop wrote: > On Sep 17, 2009, at 5:39 PM, Dirk Stoop wrote: > >> We're targetting Leopard and are currently still running on PyObjC >> 2.2b6 (because getting later releases to actually build the app on >> Leopard has proven to be quite hard, and we're on a tight schedule, I >> haven't upgraded to something newer yet). > > Oops, that should've been 2.2b2. > > I just tried to install the latest and greatest from trunk on Leopard, > so I can benefit from Ronald's latest fixes, but I'm getting errors on > an unfound symbol, called: _PyType_Modified whenever I try to import > objc. > > Ronald responded to someone with the same or a similar issue over here > a little while ago: > >> http://www.gossamer-threads.com/lists/python/bugs/771198?do=post_view_flat#771198 > > Does anyone know what specific issues there might be with a Python > installation that result in this "_PyType_Modified" to not be defined? > -- I'm using a custom installed Python 2.5.4 on Leopard, because the > standard installation has issues with building for PPC and Intel. > > Thanks in advance, > - Dirk > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart > your > developing skills, take BlackBerry mobile applications to market and > stay > ahead of the curve. Join us from November 9-12, 2009. Register > now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |