How to fix: %1 is not a valid win32 application

Discussion created by danshriver on Oct 9, 2012
Latest reply on Apr 4, 2014 by tlaxson
I am getting an ImportError, supposedly on arcgisscripting claiming it isn't a valid win32 application.

On two boxes I don't have this problem and on the third box I do have this problem but I don't see why.

On the third box the python I'm invoking is 2.7.2 and it is 32 bits.

If I go to C:\Program Files (x86)\ArcGIS\Desktop10.1\bin I see a arcgisscripting.pyd file.

If I point DependencyWalker on that file it indicates there are missing DLLs that it depends on (but several internet pages indicate DependencyWalker can give spurrious results).

How exactly do I find out what the root problem is and how to fix it?