I got a similar issue here, with some chinese random garble (which looks like some junk from memory):
In my case I load a custom toolbox. When I try to execute a tool from this tbx from my script, I got this in ArcMap 10, SP5:
Tool or environment <剉偁潔卅䥒敖瑣牯卟慴潴汩䥇呓潯獬> not found
When running the script from my IDE, or from a terminal window, it works fine.
What I did was to add some additional code to show the contents of the toolbox I just loaded:
toolbox_file = 'C:\Users\path\to\MyTools.tbx'
arcpy.AddMessage('Importing toolbox: ' + toolbox_file)
tbx = arcpy.ImportToolbox(toolbox_file)
if tbx is None:
arcpy.AddError("Toolbox is null")
arcpy.AddMessage("debug: listing tools")
tools = arcpy.ListTools("*MyGISTools*")
arcpy.AddMessage("Number of tools found: %i" % len(tools))
for tool in tools:
In the IDE and the terminal I got a list of all the tools with their parameters, as expected.
However, in ArcMap, I got a bunch of
Method ToESRIRasterScript_MyGisTools not found. Choices: Method ToESRIRasterScript_MyGisTools not unique, please use ToolboxName_ToolName
Method ToIRAPVectorScript_MyGisTools not found. Choices: Method ToIRAPVectorScript_MyGisTools not unique, please use ToolboxName_ToolName.
Method ToESRIVectorScript_MyGisTools not found. Choices: Method ToESRIVectorScript_MyGisTools not unique, please use ToolboxName_ToolName.
Method PrepareIRAPforInput_MyGisTools not found. Choices: Method PrepareIRAPforInput_MyGisTools not unique, please use ToolboxName_ToolName.
This seemed to indicate that something was duplicated. When I removed my toolbox from ArcToolbox, and re-ran it from the Catalog window, it all worked just fine.