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

1431
1
10-09-2012 11:00 AM
DanielShriver
New Contributor
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?
Tags (2)
0 Kudos
1 Reply
ThomasLaxson
New Contributor III
This is discussed in detail here: http://forums.arcgis.com/threads/79087-Problem-importing-arcpy-in-ArcMap-console-64-bit-DLL-conflict

The most reasonable solution to me is uninstalling Python and then running the repair installation of ArcGIS.
0 Kudos