Re: [Pyobjc-dev] Cannot import objc (pyobjc2.2)
Brought to you by:
ronaldoussoren
From: Petr M. <pet...@an...> - 2010-01-10 16:21:28
|
Hi, I've run into this also, as anyone building and using on stock Leopard would. It seems the problem is in pyobjc-core/Modules/objc/objc-class.m at line 1547 (current trunk revision 2386) - there is a call to PyType_Modified, which seems to be unavailable in Python 2.5 (as per http://docs.python.org/c-api/type.html#PyType_Modified). As it is in there only at one place and (by my judgment) not very important one, I hope there will be some quick fix possible. Or we should raise the requirements to Python 2.6+. Made a bugreport at SF PyObjC tracker (id 2929331). Cheers, Petr Ronald Oussoren wrote: > On 26 Nov, 2009, at 23:41, Orestis Markou wrote: > >> Hello, >> >> I'm trying to get pyobjc2.2 working on python2.5 in SL (in a virtualenv). I'm getting this strange failure: >> >> ImportError: dlopen(/Users/orestis/.virtualenvs/pyobjc2.2/lib/python2.5/site-packages/pyobjc_core-2.2-py2.5-macosx-10.6-i386.egg/objc/_objc.so, 2): Symbol not found: _PyType_Modified >> Referenced from: /Users/orestis/.virtualenvs/pyobjc2.2/lib/python2.5/site-packages/pyobjc_core-2.2-py2.5-macosx-10.6-i386.egg/objc/_objc.so >> Expected in: flat namespace >> in /Users/orestis/.virtualenvs/pyobjc2.2/lib/python2.5/site-packages/pyobjc_core-2.2-py2.5-macosx-10.6-i386.egg/objc/_objc.so >> > > You're the second user that ran into this problem. I haven't had time yet to research the issue. > > Ronald > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > > > ------------------------------------------------------------------------ > > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |