Error 1671 Occurred at Open Python Session in LabVIEW

Updated Dec 8, 2023

Reported In


  • LabVIEW

Programming Language

  • Python

Issue Details

  • I installed Python from the Python website, and when trying to run one of the LabVIEW Python examples I get the following error:
  • I installed Python onto my system using the Anaconda distribution platform, when I use the Open Python Session 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

error 1671.png


This error occurs when LabVIEW is not able to find the Python Interpreter. Using an intermediate platform such as Anaconda or having a mismatch of bitnesses between LabVIEW and Python could be the root cause of the issue. Follow the next recommendations depending on your case:

Using Anaconda or another Platform

If you are using LabVIEW 2018 through 2022 Q3 LabVIEW cannot communicate with Python installed within the Anaconda environment using the Python node. This is due to how the environment wraps the Python interpreter, making LabVIEW unable to find the interpreter installation and make the necessary calls. 

If you are using LabVIEW 2023 Q1 or later you need to use the Open Virtual Environment Session VI to call Python installed with a virtual environment.

Mismatch of LabVIEW and Python Bitnesses 

LabVIEW and Python interpreter must match for Python scripts to be called properly. Make sure to install the same bitness of a compatible Python version

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.