I am creating a python toolbox within ArcGIS 10.3 and I am having issues opening it up in ArcMap. I have been editing it, saving it, and running it within ArcMap this whole time to test it little by little, and now when I double click on the tool within the toolbox it won't respond. I checked to make sure that I do not have multiple scripts running, or that I am not hiding the pop up window for the tool behind other things open on my screen. This leads me to believe that there is something wrong with my python script (below).
import arcpy class Toolbox(object): def __init__(self): """Define the toolbox (the name of the toolbox is the name of the .pyt file).""" self.label = "Toolbox Label Property" self.alias = "Toolbox Alias Property" # List of tool classes associated with this toolbox self.tools = [WiFi_Buffer] class WiFi_Buffer(object): def __init__(self): """Define the tool (tool name is the name of the class).""" self.label = "Buffer WAP" self.description = "This python script tool will buffer WAPs" self.canRunInBackground = False def getParameterInfo(self): """Define parameter definitions""" param0 = arcpy.Parameter( displayName="Wireless Access Points", name="wap_pts", datatype="GPFeatureLayer", parameterType="Required", direction="Input") param1 = arcpy.Parameter( displayName="Obstruction Layer", name="obstructions", datatype="GPFeatureLayer", parameterType="Required", direction="Input") params = [param0, param1] return [params] ## def isLicensed(self): ## """Set whether tool is licensed to execute.""" ## return True ## ## def updateParameters(self, parameters): ## """Modify the values and properties of parameters before internal ## validation is performed. This method is called whenever a parameter ## has been changed.""" ## return ## ## def updateMessages(self, parameters): ## """Modify the messages created by internal validation for each tool ## parameter. This method is called after internal validation.""" ## return ## ## def execute(self, parameters, messages): ## """The source code of the tool.""" ## return
I have left the parts that I have not reached yet commented out, and it has been running the first parameter just fine, it wasn't until trying to create the second parameter (param1) that the tool wouldn't run. I don't see anything wrong with the code, but I am new to building python tools so there could be something obviously wrong with it. Any ideas on how I can get the tool to run again?