A tool icon that has been replaced with an error icon (Invalid Script) indicates a failure in the tool. To see an explanation of the problem, right-click the toolbox and click Why. This opens a Python Errors dialog box, which provides the error type and line number. This will cover errors in the tool's __init__, getParameterInfo, or isLicensed methods.
I am having the same problem. I get a big red X on my Toolbox, which means I am unable to open it and even view the potential errors within them. However, when I click "Check Syntax" I get "No Syntax Errors". What does this mean? If there are no syntax errors, what is the problem? If there is an error, why doesn't it tell me where it is? As a test, I added an error, and it was returned when I reclicked "Check Syntax". This seems in all respects to be a bug.
import py_compile py_compile.compile("mymodule.py")
Hi, I was using Spatial Analyst Supplemental toolbox few months back on 10.5 and when i upgraded to 10.6, the pyt toolbox now has a red x mark. Checking the syntax, it showed as attached. I have no python background so need help to debug this. thank you
interesting, your name doesn't match the name on the last line of the error message. is it a multiuser environment?