AnsweredAssumed Answered

Cannot connect to SDE in Commande line using Arcpy

Question asked by geogeek14 on Jun 25, 2012
Latest reply on Jun 27, 2012 by geogeek14
While I'm inside ArcMap 10, the Python window gives me all output correctly, like this:

>>> arcpy.env.workspace = r"C:\uber.gdb"
>>> arcpy.ListDatasets("*","ALL")
[u'uberlandia_urbano', u'Idw_pop2006', u'Idw_pop2000']

But, if I open cmd window (Run > cmd) and type the exact same commands, it will give me an empty list as a result.

I'm pretty sure that the Python version used is the one tied up with arcgis, since I can import arcpy.

Any chance that arcpy does not work on the standard python console?

Thanks

Outcomes