Hi I would want to use arcpy in my python code. I am able to import it through the ARCGIS desktop python console. But I am not able to import it into Python IDLE. I get the following error
Traceback (most recent call last): File "C:\Python26\lib\site-packages\win32com\client\dynamic.py", line 246, in __getitem__raise TypeError("This object does not support enumeration")
I mentioned the following folders as a part of my python path.
C:\Program Files\ArcGIS\Desktop10.0\arcpy; C:\Program Files\ArcGIS\Desktop10.0\arcpy\arcpy; C:\Python26\ArcGIS10.0\Tools\Scripts
I found the same issue being mentioned.
The user says it is due to the following:
I wrote for Arcgis 9 and 10 in the same directory. Something about the initialization logic in import arcpy finds the custom arcgisscripting.py used for running python 2.6 with arcgis 9.3 when they are located together.
I have only ARCGIS 10 and i am not aware of how arcpy looks up for its modules.
Please do help me resolve this issue.