Error Occurred When the Script of “Calc Results by Python” Step Returned Nested Lists
Symptom:
When the script run by the “Calc Results by Python” Step included a RETURN statement of nested lists, the following error message appeared when the Step was executed: Exception caught when running the script: Unable to cast Python instance to C++ type …
.
Affected Software Versions:
Mech-Vision 1.6.0 and later versions
Possible Cause:
Currently, the Python script returning nested lists is not supported.
Workaround:
Avoid including a RETURN statement that returns nested lists into the Python script called by the “Calc Results by Python” Step.