<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hope someone here can help with a work-around.<div><br></div><div>Context: OS-X 10.7.4 (Lion), Python 2.7.3 (downloaded from <a href="http://Python.org">Python.org</a> and installed in /Library/Frameworks... (not /System/Library), and seems to work just file.</div><div><br></div><div>However, when I attempt to run any sort of GUI code (either a Tk demo from the Python docs page or a wxPython demo), I get the following error msg:</div><div><br></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div>StraylightPro:Python wrw$ python tk_test.py</div><div>2012-06-05 20:28:35.442 Python[51697:f07] Error loading /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: dlopen(/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types, 262): no suitable image found. Did find:</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: no matching architecture in universal wrapper</div><div>Python: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/Adobe Unit Types.osax" declares no loadable handlers.</div></div><div><br></div></blockquote>When I first hit this, I was running wxPython2.8 which is based on the Carbon widgets and thus has to run in 32-bit mode. I assumed I was seeing an architecture collision, so downloaded wxPython2.9 Cocoa, which should be 64-bit compatible. Same error. After scratching my head and checking with Google (which knows about this error in conjunction with Adobe CS products but knows nothing about Python), I decided to try a Tk demo, assuming that since the Tk library is bundled with Python, it would be good to go. I got the same identical error again, and in fact (as you can see) the fragment of the terminal session pasted in above was from the Tk test.<div><br></div><div>Color me frustrated. Any help appreciated.</div><div><br></div><div>Thanks,</div><div>-Bill</div></body></html>