Arcgisscripting error

3372
2
11-02-2014 06:43 PM
MCIHALWILTON
New Contributor

HI All,

I am using ArGIS 9.3 and have installed python python-2.7.3.amd64 and pywin32-219.win-amd64-py2.7 with windows 7 64 bit operating systnem. Copied ArcGISscripting.pyd from arcgis folder in C:\Python27\Lib\site-packages foler and set pythonpath to C:\Program Files (x86)\ArcGIS\bin, when importing arcgisscripting folder then getting following error, any help will be appreciated as i am new to python world.

>>> import arcgisscripting

Traceback (most recent call last):

  File "<interactive input>", line 1, in <module>

ImportError: DLL load failed: %1 is not a valid Win32 application.

Best Regards,

Mich

2 Replies
SachinKanaujia
Occasional Contributor III

MCIHAL WILTON‌ As far as I remember ArcPy has gone to 64bit only with Version 10.2. For ArcGIS 9.3 it was still 32 bit and you need to have installed a 64 bit Python which will not work. You should rather install 32 bit version of Python to work with ArcPy (ArcGIS 9.3). A clean install would be the best this to do and ESRI provides are the necessary softwares.

0 Kudos
DanPatterson_Retired
MVP Emeritus

You should stick with the version of python that is used by 9.3, you are asking for a lot of trouble to try to use a newer of version of python when nothing will be gained.10.x uses 2.7 and 10.3 uses python 3.4 if I am not mistaken

0 Kudos