Skip to main content
edited tags
Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345
Source Link
spotter
  • 101
  • 1
  • 5
  • 13

ArcGIS desktop won't import arcpy

I have arcgis 10.3 and I am trying to run a task using python but the python window within arcmap won't import arcpy. This never happened to me with 10.2.2. The error returned is:

Runtime error 
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\__init__.py", line 24, in <module>
    from arcpy.toolbox import *
  File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\toolbox.py", line 15, in <module>
    from .ddd import ASCII3DToFeatureClass as ASCII3DToFeatureClass_3d
  File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\ddd.py", line 23, in <module>
    from arcpy.arcobjects.arcobjectconversion import convertArcObjectToPythonObject
  File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\arcobjects\__init__.py", line 19, in <module>
    arcobjectconversion.initialize_conversion_mapping()
  File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\arcobjects\arcobjectconversion.py", line 26, in initialize_conversion_mapping
    from .._mapping import MapDocument, PageLayout, DataFrame, DataFrameTime, DataDrivenPages, \
  File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\_mapping.py", line 19, in <module>
    from arcpy.utils import logcall, ArgAdaptor
  File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\utils.py", line 17, in <module>
    import inspect
ImportError: No module named inspect