title: PyObjC + Xcode 3.2 + Non-Apple Python
body: <p>I want to get started trying to develop a few simple applications with PyObjC. I installed PyObjC and the Xcode templates. I know that PyObjC itself works, since I've run <a href="http://svn.picidae.net/trunk/pici-server/ADMIN/picidae.py" rel="nofollow noreferrer">this script</a> successfully. When I tried to create a project from the Cocoa-Python Application template and ran it, I got this error:</p>
  
  <pre>Traceback (most recent call last):
    File "main.py", line 10, in 
      import objc
    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/PyObjC/objc/__init__.py", line 25, in 
      from _convenience import *
    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/PyObjC/objc/_convenience.py", line 21, in 
      from itertools import imap
  ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/itertools.so, 2): no suitable image found.  Did find:
      /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/itertools.so: mach-o, but wrong architecture
  2010-02-08 19:40:09.280 TestApplication[3229:a0f] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '/Users/icktoofay/Desktop/TestApplication/main.m:44 main() PyRun_SimpleFile failed with file '/Users/icktoofay/Desktop/TestApplication/build/Debug/TestApplication.app/Contents/Resources/main.py'.  See console for errors.'</pre>
  
  <p>When I tried opening a normal Python prompt and importing <code>itertools</code>, there was no error. I'm using Python 2.6.4 from MacPorts on Mac OS X 10.6 Snow Leopard.</p>
  
  <p>I'd appreciate any help.</p>