Deadlock When Importing Modules in the “Calc Results by Python” Step

You are currently viewing the documentation for version 1.8.3. 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 the “Calc Results by Python” Step imported a module, the following error message appeared when the Step was executed: DeadlockError: deadlock detected.

Possible Cause:

When importing modules in Python, locks are acquired sequentially along the module chain, and the corresponding C extension modules are called. If there are circular dependencies during the import process, the module locks may wait for each other, which can result in a deadlock.

Workaround:

Move the call of the relevant module earlier in the execution order.

Is this page helpful?

You can give a feedback in any of the following ways:

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.