title: ImportError: No module named Foundation
body: <p>I am trying to follow the instructions for the accepted answer to "PyObjC development with Xcode 3.2". I will repost them here since I don't have enough rep to comment on the actual question:</p>
  
  <hr>
  
  <p>Here's what I have done to get PyObjC working in Snow Leopard:</p>
  
  <ul>
  <li><p>Using the Finder, I went to <code>Go &gt; Connect to Server...</code> and connected to <a href="http://svn.red-bean.com/pyobjc/trunk/pyobjc/pyobjc-xcode/" rel="noreferrer">http://svn.red-bean.com/pyobjc/trunk/pyobjc/pyobjc-xcode/</a> as a guest.</p></li>
  <li><p>I then made a folder called <code>Xcode</code> on my local system at <code>~Library/Application Support/Developer/Shared/Xcode/</code>. (You may already have this folder, but I hadn't customized anything for myself yet).</p></li>
  <li><p>I copied the <code>File Templates</code> folder from the red-bean server into my new Xcode folder.</p></li>
  <li><p>Copied the <code>Project Templates</code> folder to some other place, for example, the Desktop.</p></li>
  <li><p>Using the Terminal, navigated to the temporary Project Templates folder on my Desktop and ran this command to "build" the template.:</p></li>
  </ul>
  
  <blockquote>
    <p>$ cd ~/Desktop/Project\ Templates/</p>
    
    <p>$ ./project-tool.py -k -v --template ~/Desktop/Project\ Templates/Cocoa-Python\ Application/CocoaApp.xcodeproj/TemplateInfo.plist Cocoa-Python\ Application ~/Library/Application\ Support/Developer/Shared/Xcode/Project\ Templates/Cocoa-Python\ Application</p>
  </blockquote>
  
  <hr>
  
  <p>When I try to run the line that starts with <code>./project-tool.py</code>, I get the following error in Terminal:</p>
  
  <pre><code>Traceback (most recent call last):  
    File "./project-tool.py", line 22, in &lt;module&gt;  
       from Foundation import NSDictionary  
   ImportError: No module named Foundation
  </code></pre>
  
  <p>I am running Snow Leopard and have installed Xcode 3.2.1 and have read that this module should already be installed and working. I've read that you can test if the PyObjC modules are working by running <code>&gt;&gt;&gt; import objc</code> in the Python command-line. When I run this, I get:</p>
  
  <pre><code>&gt;&gt;&gt; import objc
  Traceback (most recent call last):  
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;  
  ImportError: No module named objc  
  </code></pre>
  
  <p>Could anyone help me dispel this error? It seems like I should be able to do all of this automatically with my Snow Leopard installation, but I can't.</p>