APPCRASH When Using Python Step Types for TestStand

Updated May 4, 2023

Reported In

Software

  • Python Step Types for TestStand

Issue Details

When I try to use Python Step Types for TestStand I get a popup saying NI Python Host has stopped working. In the problem details, I see:
Problem signature:
  Problem Event Name:    APPCRASH
  Application Name:    niPythonHost.exe
.
.
.
  Exception Code:    40000015

Solution

Exception 40000015 is passed through by windows, it points to an unhandled runtime exception. Generally, this is caused by either a corrupt install of Python or the use of an unsupported distribution (such as Anaconda).

To fix this ensure you have downloaded an official release of Python from python.org. Check the readme for your version of TestStand to check what versions of Python are compatible with your version of TestStand.
If you are already using the official release of Python, then uninstall and reinstall to ensure your installation is not corrupt.