Error 1671 Occurred at Open Python Session in LabVIEW

Updated Dec 10, 2021

Issue Details

I installed Python onto my system using the Anaconda distribution platform, when I use the Open Python Sessiion Function in LabVIEW, I receive the following error message:

Error 1671 occurred at Open Python Session in [filename]
Possible reason(s):
LabVIEW: (Hex 0x687) There was an error in executing the specified function.

Python returned the following error: Error creating host process

The error message should look similar to the one below:
error 1671.png


Python installed within the Anaconda environment cannot directly communicate with LabVIEW using the Python Node. This is due to the way the environment wraps the Python interpreter, making LabVIEW unable to find the interpreter installation and unable to make the necessary calls. 

In order to fix this issue, you need to install Python directly onto the system rather than using the Anaconda environment. This should allow the Open Python Session function to operate successfully. 

Additional Information

Anaconda is a distribution of the Python and R programming languages for scientific computing that comes with open-source packages installed and aims to simplify package management and deployment.