Is this specifically a script you are writing that is failing or is this coming up when you try to open a scene file (.mb or .ma)?