Select to view content in your preferred language

No module names ArcPy

13137
10
11-10-2016 09:26 AM
Ravi_Nigudkar
New Contributor II

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

Tags (1)
0 Kudos
10 Replies
ClintonDow1
Occasional Contributor II

As for autocompletion, there's a large number of Python IDEs which may suit what you're looking for. Personally I use PyCharm for larger programs and Spyder for data science scripting.