ruggerio

Runtime Error when trying to use arcgisscripting

Discussion created by ruggerio on Jul 12, 2011
Latest reply on Jul 13, 2011 by ruggerio
Simple code I am using:

-----------------------------
import arcgisscripting
gp = arcgisscripting.create(9.3)
print gp.Usage("Buffer_analysis")
-----------------------------

I get this error:
----------------------------------------------
Traceback (most recent call last):
   File "E:/Cotrone/python/script1.py", line 3, in <module>
      print gp.Usage("Buffer_analysis")
RuntimeError: NotInitialized
----------------------------------------------

No real goal with this script other than to see the Usage function work. I get the same error when I use gp.ListFeatureClasses(), and gp.Workspace = "some path". I am on a windows machine, using v9.3.1, IDLE, and python 2.5. Not sure what other details might be useful. Any suggestions why I get this error? If anyone has ideas or needs more info let me know. Relative novice here. Thanks!

Outcomes