[New-bugs-announce] [issue6812] Snow Leopard python program fails because _PyType_Modified is missing from python framework

Seamus O'Shea report at bugs.python.org
Tue Sep 1 00:20:14 CEST 2009


New submission from Seamus O'Shea <oshea at uleth.ca>:

Attempts to compile a simple example using XCode 3.2 (Xcode IDE: 1610.0, 
Xcode Core: 1608.0, ToolSupport: 1591.0)under Snow Leopard fail with 
error message 
Traceback (most recent call last):
  File "/Users/seamus/Science/xcode exploration/Objc-
programs/First_PyObjC/build/Debug/First_PyObjC.app/Contents/Resources/ma
in.py", line 10, in <module>
    import objc
  File 
"/System/Library/Frameworks/Python.framework/Versions/Current/Extras/lib
/python/PyObjC/objc/__init__.py", line 22, in <module>
    _update()
  File 
"/System/Library/Frameworks/Python.framework/Versions/Current/Extras/lib
/python/PyObjC/objc/__init__.py", line 19, in _update
    import _objc
ImportError: 
dlopen(/System/Library/Frameworks/Python.framework/Versions/Current/Extr
as/lib/python/PyObjC/objc/_objc.so, 2): Symbol not found: 
_PyType_Modified
  Referenced from: 
/System/Library/Frameworks/Python.framework/Versions/Current/Extras/lib/
python/PyObjC/objc/_objc.so
  Expected in: flat namespace
 in 
/System/Library/Frameworks/Python.framework/Versions/Current/Extras/lib/
python/PyObjC/objc/_objc.so
2009-08-31 08:31:23.534 First_PyObjC[4072:a0f] *** Terminating app due 
to uncaught exception 'NSInternalInconsistencyException', reason: 
'/Users/seamus/Science/xcode exploration/Objc-
programs/First_PyObjC/main.m:46 main() PyRun_SimpleFile failed with file 
'/Users/seamus/Science/xcode exploration/Objc-
programs/First_PyObjC/build/Debug/First_PyObjC.app/Contents/Resources/ma
in.py'.  See console for errors.'
*** Call stack at first throw:
(
	0   CoreFoundation                      0x90a1858a __raiseError 
+ 410
	1   libobjc.A.dylib                     0x9309cf49 
objc_exception_throw + 56
	2   CoreFoundation                      0x90a182b8 +[NSException 
raise:format:arguments:] + 136
	3   CoreFoundation                      0x90a1822a +[NSException 
raise:format:] + 58
	4   First_PyObjC                        0x00002bc2 main + 1084
	5   First_PyObjC                        0x0000275a start + 54
)
sharedlibrary apply-load-rules all

The Current Version in the system library is 2.6.

Any suggestions?

----------
assignee: ronaldoussoren
components: Macintosh
messages: 92117
nosy: ronaldoussoren, soshea
severity: normal
status: open
title: Snow Leopard python program fails because _PyType_Modified is missing from python framework
type: compile error
versions: Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6812>
_______________________________________


More information about the New-bugs-announce mailing list