on Windows 10
when trying to use a Python Action I always get an "Unable to load specified version of python".
That happens with custom Python scripts as well as with the included examples.
In each case I selected the specific Version under Configure > Adapters ... > Python.
I also made sure the right version was specified in PATH. I tested that with cmd > python --version.
Workaround at the moment:
Use an "Call Executable"-Step and call python with the script name and variables as arguments.
That works well for simple scripts but should not be necessary and fails on more complex tasks.
Any idea what I'm doing wrong?
Yes and no...
Did not find a solution yet but as mentioned used a workaround. Not pretty but works for me for now. Can be closed I guess
I also was confused by this kind of error. Finally, I found out how to fix this issue, including LabVIEW. Some steps must be followed:
Of course, have to make sure that the same bitness and there is a path of python in the environment path.
Having the same issue, both TestStand 32-bit and Python 32-bit are installed and the PATH variable is correct.
The TestStand Adapter cannot find the Python Interpreter. Every other Windows program can (i.e. CMD, VSCode, PyCharm, ...etc.).
This looks to be a common problem:
Is this a TestStand bug??
I noticed this knowledge article https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019Wf3SAE&l=en-US mentioned Python 2.7.0 or 3.6.0.
"If you are using TestStand 32 bit version use Python 2.7.0 or 3.6.0, 32 bit version."
So I installed Python 3.6.8 and TestStand 32-bit was able to detect Python 3.6 32-bit. Installing Python 3.6.8 worked.
This is not mentioned anywhere in the other knowledge articles. 🙄