I'm working on a simple suitability analysis project for my GIS programming class wherein raw_inputs iare used to define part of the where_clause in Select_analysis. Here is what I have so far:
import arcpy
arcpy.env.workspace=r"I:\GIS\Test.mdb"
EL1=raw_input('Enter name of elementary school')
arcpy.Select_analysis('SchoolDistrictsElementary',r'I:\GIS\Output.mdb\school'+'_'+'EL1','[NAME]=EL1')
When I run the script, I get the following error:
General function failure [SchoolDistrictsElementary]
Too few parameters. Expected 1.
Failed to execute (Select).
I've tried everything I could think of, although my Python-fu is pretty weak. Nonetheless, this seems like on of those cases when the answer is right under my nose. Any thoughts on how to fix this issue? Thanks!