AnsweredAssumed Answered

No module names ArcPy

Question asked by ravin1364 on Nov 10, 2016
Latest reply on Nov 10, 2016 by CDow-esristaff

I have two question:Is there a Python IDLE or editor outside of the Python window that has the autocompletion capabilities? Th

Is there a Python IDLE or editor outside of the Python window that has the autocompletion capabilities? 

Can someone help me with my error message?

File "C:\Python27\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 322, in RunScript
debugger.run(codeObject, __main__.__dict__, start_stepping=0)
File "C:\Python27\Lib\site-packages\pythonwin\pywin\debugger\__init__.py", line 60, in run
_GetCurrentDebugger().run(cmd, globals,locals, start_stepping)
File "C:\Python27\Lib\site-packages\pythonwin\pywin\debugger\debugger.py", line 655, in run
exec cmd in globals, locals
File "C:\EsriPress\Python\Data\Exercise06\Results\Field_list.py", line 1, in <module>
import arcpy
ImportError: No module named arcpy -- This is where the problem is

 

This is the script I run.

import arcpy
from arcpy import env
env.overwriteOutput = True
env.overwriteOutput = " C:/esripress/python/data/exercise06"
fieldList = arcpy.ListFields("counties.shp")
for field in fieldList:
print field.name + " " + field.type

Outcomes