[Tutor] Newbe problem with wxPython on Mac OS X (need a work-around)

William R. Wing (Bill Wing) wrw at mac.com
Tue Jun 5 21:00:32 CEST 2012


I'm running Mac OS-X 10.7.4 (Lion) and have installed Python 2.7 from Python.org.  It's in /Library so as to not conflict with the one from Apple in /System/Library and I've set my .profile to make it my default.  So far so good.

I decided I wanted to start playing with wxPython, and downloaded the "stable" version for Python 2.7 at wxPython.org.

I promptly ran into the following error when I tried one of the demos:

Python[45569: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:
	/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: no matching architecture in universal wrapper
Python: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/Adobe Unit Types.osax" declares no loadable handlers.

I assumed this was due to an architecture conflict (32 vs 64 bits), so grabbed the 2.9 version of wxPython which is based on cocoa widgets and should be 64-bit clean.

I get exactly the same error, so the problem really is with the ScriptingAdditions. I asked Google about the error and there seems to be a work-around for Adobe users (they are supposed to invoke arch -i386 osascript script.scpt in instead of osascript script.scpt).  As far as I can tell, that isn't applicable to Python users, so I assume there must be a work around for this until Adobe gets 64 bit support compiled in.  Does anyone know what it might be?

Thanks,
Bill


More information about the Tutor mailing list