Error Occurred When the Script of Step “Cal Results by Python” Returned Nested Lists

You are currently viewing the documentation for version 2.0.0. To access documentation for other versions, click the "Switch Version" button located in the upper-right corner of the page.

■ To use the latest version, visit the Mech-Mind Download Center to download it.

■ If you're unsure about the version of the product you are using, please contact Mech-Mind Technical Support for assistance.

Symptom:

When the script run by Step “Cal Results by Python” 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 Step “Cal Results by Python”.

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.