<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="-webkit-text-stroke-width: -1; ">This is probably some stupid mistake on my part, but I'm having problems with importing the objc package in Python. When I try to import it, I get the following error: </span></div><div><font class="Apple-style-span" face="'Trebuchet MS'" size="3"><span class="Apple-style-span" style="font-size: 13px;"><b><br class="webkit-block-placeholder"></b></span></font></div><div><span class="Apple-style-span" style="font-family: 'Trebuchet MS'; font-size: 13px; "><strong style="margin-top: 0px; ">    ImportError:</strong> No module named objc</span></div><div><br></div><div><font class="Apple-style-span" face="'Trebuchet MS'" size="3"><span class="Apple-style-span" style="font-size: 13px;">What's strange, is I can import objc from a terminal window, without any problems. I made sure that Textmate is running the same install of python, so that's not the problem. All other packages I've tried import without problems.</span></font></div><div><font class="Apple-style-span" face="'Trebuchet MS'" size="3"><span class="Apple-style-span" style="font-size: 13px;"><br class="webkit-block-placeholder"></span></font></div><div><font class="Apple-style-span" face="'Trebuchet MS'" size="3"><span class="Apple-style-span" style="font-size: 13px;">In case you're interested, I'm running Python 2.5.1 (default Leopard install) with Textmate build 1436.</span></font></div></div></blockquote><br></div><div>Tony,</div><div><br class="webkit-block-placeholder"></div><div>I am also running Leopard with the default Python 2.5.1.   I can't reproduce the issue you've described.  Have you made any modifications to your PYTHONPATH?  Check TextMate's preferences to see if you've set that to something bizarre.  Also, what do you get when you run the following script:</div><div><br class="webkit-block-placeholder"></div><div>import sys</div><div>print sys.path</div><div><br class="webkit-block-placeholder"></div><div>–Alex</div></body></html>