title: ImportError DLL load failed, but import at command line works
body: <p>I'm trying to get a python program to run on a windows box.
  I have it running on my development windows box but when I transfer it to another windows box I keep getting:</p>
  
  <p>ImportError: DLL load failed: %1 is not a vaild Win32 aplication</p>
  
  <p>The trace suggests it is having trouble with imports, it basically goes through several in-house python programs (that import each other) and then into the ArcPy realm.  Ultimately the last one it seems to have tried is arcgisscripting.</p>
  
  <p>When I am on that box if enter the interpreter and type "import arcgisscripting" I get no errors (just a new >>> cursor), so I started to think this error was a bit misleading.  I'd read this error typically crops up if (for instance) the python code was compiled 64bit and you're trying to run on 32bit python.</p>
  
  <p>A colleague suggested that the error sometimes happens if python can't find some of the necessary code.  So I checked and did SET statements and now the PATH and PYTHONPATH variables seem to be equivalent.  Still I get this error, not sure what to do.  I'd prefer not to have to do things like uninstalling stuff on the problem box and reinstalling it.  That box is a shared resource.</p>