Select to view content in your preferred language

SearchCursor throws error

1896
10
Jump to solution
07-01-2012 02:20 AM
JoeHershman
MVP Alum
Hi,

I am trying to create a SearchCursor on a table which seems simple enough

    cursor = arcpy.SearchCursor(tablepath)


This line of code though throws an error in _base.py:  global name 'gp_' in not defined.  I cannot seem to find any information on this error.

I can create an UpdateCursor and an InsertCursor without error using the same tablepath variable.  Is there something I am missing in this method call?

I am using ArcGIS 10.0

Thanks
-Joe
Thanks,
-Joe
Tags (2)
0 Kudos
10 Replies
JoeHershman
MVP Alum
So I re-installed ArcGIS and Python and the SearchCursor works now, so was a problem with the install.

Thanks for all the help

-Joe
Thanks,
-Joe
0 Kudos