[issue6812] Snow Leopard python program fails because _PyType_Modified is missing from python framework

Seamus O'Shea report at bugs.python.org
Mon Sep 7 21:03:23 CEST 2009


Seamus O'Shea <oshea at uleth.ca> added the comment:

(1) When running python (/usr/bin/python) in Terminal I am able to  
import objc successfully. I printed the directory to be sure it's  
complete

Seamuss-MacBook:~ seamus$ /usr/bin/python
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
 >>> print dir(objc)
['Accessor', 'BadPrototypeError', 'CFToObject', 'Category', 'FSRef',  
'FSSpec', 'IBAction', 'IBOutlet', 'IMP', 'LockError',  
'MAC_OS_X_VERSION_10_1', ......

(2) I restarted Xcode, did a "Clean all" and rebuilt the app, but I  
got this dump

"Running…
2009-09-07 12:25:39.355 First_PyObjC[2796:a0f] mainFilePath is /Users/ 
seamus/Science/xcode exploration/Objc-programs/First_PyObjC/build/ 
Debug/First_PyObjC.app/Contents/Resources/main.py
2009-09-07 12:25:39.360 First_PyObjC[2796:a0f] pythonpath is (
     "/Users/seamus/Science/xcode exploration/Objc-programs/ 
First_PyObjC/build/Debug/First_PyObjC.app/Contents/Resources",
     "/Users/seamus/Science/xcode exploration/Objc-programs/ 
First_PyObjC/build/Debug/First_PyObjC.app/Contents/Resources/PyObjC",
     "/System/Library/Frameworks/Python.framework/Versions/Current/ 
Extras/lib/python/"
)
Traceback (most recent call last):
   File "/Users/seamus/Science/xcode exploration/Objc-programs/ 
First_PyObjC/build/Debug/First_PyObjC.app/Contents/Resources/main.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/Extras/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-09-07 12:25:39.460 First_PyObjC[2796: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/main.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"

It seems identical to the original problem.

(3) I wondered if there is something the PATH specifications that  
caused things to be misdirected during the build, so I printed  
sys.path out from within python.

/Library/Python/2.6/site-packages/pyobjc-2.2b2-py2.6.egg
/Library/Python/2.6/site-packages/ 
pyobjc_framework_XgridFoundation-2.2b2-py2.6.egg
/Library/Python/2.6/site-packages/pyobjc_framework_WebKit-2.2b2- 
py2.6.egg
/Library/Python/2.6/site-packages/ 
pyobjc_framework_SystemConfiguration-2.2b2-py2.6-macosx-10.6- 
universal.egg
/Library/Python/2.6/site-packages/pyobjc_framework_SyncServices-2.2b2- 
py2.6.egg
/Library/Python/2.6/site-packages/pyobjc_framework_SearchKit-2.2b2- 
py2.6.egg
/Library/Python/2.6/site-packages/pyobjc_framework_ScreenSaver-2.2b2- 
py2.6-macosx-10.6-universal.egg
/Library/Frameworks/Python.framework/Versions/Current/bin
/Library/Frameworks/Python.framework/Versions/2.6/bin
/Library/Frameworks/Python.framework/Versions/3.0/bin
/Library/Frameworks/Python.framework/Versions/2.4/bin
/opt/local/bin
/opt/local/sbin
/sw/bin
/sw/sbin
/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/bin
/usr/X11/bin
/usr/X11R6/bin
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/ 
python26.zip
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ 
plat-darwin
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ 
plat-mac
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ 
plat-mac/lib-scriptpackages
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/ 
python
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ 
lib-tk
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ 
lib-old
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ 
lib-dynload
/Library/Python/2.6/site-packages
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/ 
python/PyObjC
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/ 
python/wx-2.8-mac-unicode

It seems redundant in places and includes paths to other versions of  
python, but I can't see that there is a source for the problem there.

Is there anything else that might offer a clue?

Thanks

Seamus O'Shea
University of Lethbridge, iCORE, Cybera
(403) 315-2941
(403) 332-4545

On Sep 6, 2009, at Sun, Sep6, 6:10 , Ronald Oussoren wrote:

>
> Ronald Oussoren <ronaldoussoren at mac.com> added the comment:
>
> This seems to be a problem with Apple's copy of Python or with your
> machine.
>
> Could you try the following:
> * In terminal.app run /usr/bin/python
> * Then use 'import objc' from Python's prompt.
> * Does this work or does it give the same traceback (it works for me
> BTW).
>
> If importing objc from Python's prompt works: Try to do a clean  
> build of
> the application in Xcode (use Clean All and then perform a build).
>
> ----------
> resolution:  -> invalid
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue6812>
> _______________________________________

----------
Added file: http://bugs.python.org/file14855/unnamed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6812>
_______________________________________
-------------- next part --------------
<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>(1) When running python (/usr/bin/python) in Terminal I am able to import objc successfully. I printed the directory to be sure it's complete</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Futura; ">Seamuss-MacBook:~ seamus$ /usr/bin/python</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Futura; ">Python 2.6.1 (r261:67515, Jul&nbsp;&nbsp;7 2009, 23:51:51)&nbsp;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Futura; ">[GCC 4.2.1 (Apple Inc. build 5646)] on darwin</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Futura; ">Type "help", "copyright", "credits" or "license" for more information.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Futura; ">&gt;&gt;&gt; import objc</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Futura; ">&gt;&gt;&gt; print dir(objc)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Futura; ">['Accessor', 'BadPrototypeError', 'CFToObject', 'Category', 'FSRef', 'FSSpec', 'IBAction', 'IBOutlet', 'IMP', 'LockError', 'MAC_OS_X_VERSION_10_1', ......</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Futura; "><br></div><div>(2) I restarted Xcode, did a "Clean all" and rebuilt the app, but I got this dump</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Courier; ">"Running…</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Courier; "><i>2009-09-07 12:25:39.355 First_PyObjC[2796:a0f] mainFilePath is /Users/seamus/Science/xcode exploration/Objc-programs/First_PyObjC/build/Debug/First_PyObjC.app/Contents/Resources/main.py&nbsp;</i></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Courier; "><i>2009-09-07 12:25:39.360 First_PyObjC[2796:a0f] pythonpath is (</i></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Courier; "><i>&nbsp; &nbsp;&nbsp;"/Users/seamus/Science/xcode exploration/Objc-programs/First_PyObjC/build/Debug/First_PyObjC.app/Contents/Resources",</i></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Courier; "><i>&nbsp; &nbsp;&nbsp;"/Users/seamus/Science/xcode exploration/Objc-programs/First_PyObjC/build/Debug/First_PyObjC.app/Contents/Resources/PyObjC",</i></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Courier; "><i>&nbsp; &nbsp;&nbsp;"/System/Library/Frameworks/Python.framework/Versions/Current/Extras/lib/python/"</i></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Courier; "><i>)&nbsp;</i></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Courier; "><i>Traceback (most recent call last):</i></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Courier; "><i>&nbsp;&nbsp;File "/Users/seamus/Science/xcode exploration/Objc-programs/First_PyObjC/build/Debug/First_PyObjC.app/Contents/Resources/main.py", line 10, in &lt;module&gt;</i></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Courier; "><i>&nbsp; &nbsp;&nbsp;import objc</i></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Courier; "><i>&nbsp;&nbsp;File "/System/Library/Frameworks/Python.framework/Versions/Current/Extras/lib/python/PyObjC/objc/__init__.py", line 22, in &lt;module&gt;</i></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Courier; "><i>&nbsp; &nbsp;&nbsp;_update()</i></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Courier; "><i>&nbsp;&nbsp;File "/System/Library/Frameworks/Python.framework/Versions/Current/Extras/lib/python/PyObjC/objc/__init__.py", line 19, in _update</i></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Courier; "><i>&nbsp; &nbsp;&nbsp;import _objc</i></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Courier; "><i>ImportError: dlopen(/System/Library/Frameworks/Python.framework/Versions/Current/Extras/lib/python/PyObjC/objc/_objc.so, 2): Symbol not found: _PyType_Modified</i></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Courier; "><i>&nbsp;&nbsp;Referenced from: /System/Library/Frameworks/Python.framework/Versions/Current/Extras/lib/python/PyObjC/objc/_objc.so</i></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Courier; "><i>&nbsp;&nbsp;Expected in: flat namespace</i></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Courier; "><i>&nbsp;in /System/Library/Frameworks/Python.framework/Versions/Current/Extras/lib/python/PyObjC/objc/_objc.so</i></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Courier; "><i>2009-09-07 12:25:39.460 First_PyObjC[2796: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/main.py'.&nbsp;&nbsp;See console for errors.'</i></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Courier; "><i>*** Call stack at first throw:</i></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Courier; "><i>(</i></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Courier; "><i><span class="Apple-tab-span" style="white-space: pre; ">	</span>0&nbsp;&nbsp;&nbsp;CoreFoundation&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;0x90a1858a __raiseError + 410</i></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Courier; "><i><span class="Apple-tab-span" style="white-space: pre; ">	</span>1&nbsp;&nbsp;&nbsp;libobjc.A.dylib&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;0x9309cf49 objc_exception_throw + 56</i></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Courier; "><i><span class="Apple-tab-span" style="white-space: pre; ">	</span>2&nbsp;&nbsp;&nbsp;CoreFoundation&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;0x90a182b8 +[NSException raise:format:arguments:] + 136</i></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Courier; "><i><span class="Apple-tab-span" style="white-space: pre; ">	</span>3&nbsp;&nbsp;&nbsp;CoreFoundation&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;0x90a1822a +[NSException raise:format:] + 58</i></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Courier; "><i><span class="Apple-tab-span" style="white-space: pre; ">	</span>4&nbsp;&nbsp;&nbsp;First_PyObjC&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;0x00002bc2 main + 1084</i></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Courier; "><i><span class="Apple-tab-span" style="white-space: pre; ">	</span>5&nbsp;&nbsp;&nbsp;First_PyObjC&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;0x0000275a start + 54</i></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Courier; "><i>)</i></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Courier; ">sharedlibrary apply-load-rules all"</div></div><div><font class="Apple-style-span" face="Futura"><br></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px; ">It seems identical to the original problem.</span></font></div><div><font class="Apple-style-span" face="Futura"><br></font></div><div><font class="Apple-style-span" face="Futura">(3) I</font>&nbsp;wondered if there is something the PATH specifications that caused things to be misdirected during the build, so I printed sys.path out from within python.&nbsp;</div></div><div><br></div><div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/Library/Python/2.6/site-packages/pyobjc-2.2b2-py2.6.egg</span></font></div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/Library/Python/2.6/site-packages/pyobjc_framework_XgridFoundation-2.2b2-py2.6.egg</span></font></div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/Library/Python/2.6/site-packages/pyobjc_framework_WebKit-2.2b2-py2.6.egg</span></font></div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/Library/Python/2.6/site-packages/pyobjc_framework_SystemConfiguration-2.2b2-py2.6-macosx-10.6-universal.egg</span></font></div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/Library/Python/2.6/site-packages/pyobjc_framework_SyncServices-2.2b2-py2.6.egg</span></font></div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/Library/Python/2.6/site-packages/pyobjc_framework_SearchKit-2.2b2-py2.6.egg</span></font></div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/Library/Python/2.6/site-packages/pyobjc_framework_ScreenSaver-2.2b2-py2.6-macosx-10.6-universal.egg</span></font></div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/Library/Frameworks/Python.framework/Versions/Current/bin</span></font></div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/Library/Frameworks/Python.framework/Versions/2.6/bin</span></font></div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/Library/Frameworks/Python.framework/Versions/3.0/bin</span></font></div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/Library/Frameworks/Python.framework/Versions/2.4/bin</span></font></div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/opt/local/bin</span></font></div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/opt/local/sbin</span></font></div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/sw/bin</span></font></div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/sw/sbin</span></font></div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/usr/bin</span></font></div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/bin</span></font></div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/usr/sbin</span></font></div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/sbin</span></font></div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/usr/local/bin</span></font></div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/usr/X11/bin</span></font></div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/usr/X11R6/bin</span></font></div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip</span></font></div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6</span></font></div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin</span></font></div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac</span></font></div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages</span></font></div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python</span></font></div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk</span></font></div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old</span></font></div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload</span></font></div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/Library/Python/2.6/site-packages</span></font></div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC</span></font></div><div><font class="Apple-style-span" face="Futura" size="3"><span class="Apple-style-span" style="font-size: 12px; ">/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode</span></font></div><div><br></div></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px; ">It seems redundant in places and includes paths to other versions of python, but I can't see that there is a source for the problem there.</span></font></div><div><br></div>Is there anything else that might offer a clue?&nbsp;<div><br></div><div><br></div><div>Thanks</div><div><br></div></div><div><br></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div><div><div>Seamus O'Shea</div><div>University of Lethbridge, iCORE, Cybera</div></div></div>(403) 315-2941<div>(403) 332-4545</div></span>
</div>
<br><div><div>On Sep 6, 2009, at Sun, Sep6, 6:10 , Ronald Oussoren wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>Ronald Oussoren &lt;<a href="mailto:ronaldoussoren at mac.com">ronaldoussoren at mac.com</a>&gt; added the comment:<br><br>This seems to be a problem with Apple's copy of Python or with your <br>machine.<br><br>Could you try the following:<br>* In terminal.app run /usr/bin/python<br>* Then use 'import objc' from Python's prompt.<br>* Does this work or does it give the same traceback (it works for me <br>BTW).<br><br>If importing objc from Python's prompt works: Try to do a clean build of <br>the application in Xcode (use Clean All and then perform a build).<br><br>----------<br>resolution: &nbsp;-&gt; invalid<br><br>_______________________________________<br>Python tracker &lt;<a href="mailto:report at bugs.python.org">report at bugs.python.org</a>&gt;<br>&lt;<a href="http://bugs.python.org/issue6812">http://bugs.python.org/issue6812</a>&gt;<br>_______________________________________<br></div></blockquote></div><br></body></html>


More information about the Python-bugs-list mailing list