title: Setting up: OS X 10.6.6 + XCode3.2 using python and cocoa
body: <p>I am trying to set up working environment on 
  OS X 10.6.6, XCode3.2, fink using python and cocoa frameworks. I scanned few references in the net, however nothing worked for me.</p>
  
  <p>I have python2.6 installed via fink together with a pyobjc-py26. When I run a python shell in the terminal I get:</p>
  
  <pre><code>localhost:PyObjCTut stymek$ which python
  /usr/bin/python
  localhost:PyObjCTut stymek$ python
  Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) 
  [GCC 4.2.1 (Apple Inc. build 5646)] on darwin
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; import objc
  &gt;&gt;&gt;
  </code></pre>
  
  <p>Everything is OK.</p>
  
  <p>When I try to build the basic code from the Xcode (e.g. 1. default Python + Cocoa template 2. example from <a href="http://orestis.gr/blog/2008/05/17/pyobjc-hello-world/" rel="nofollow">here</a>), the python is not able to find objc module. Why?</p>
  
  <pre><code>Traceback (most recent call last):
  File "main.py", line 10, in &lt;module&gt;
      import objc
  ImportError: No module named objc
  </code></pre>