Hi everybody,
I am very new to LabVIEW and I am experiencing a very strange problem: Python is not working with my LabVIEW installation, not even the simplest example case. I would really appreciate any help or advice, cause I am messing around with this issue for hours now.
Some information about the system:
I use a 64bit LabVIEW Version 2024 Q1 together with a python 3.9 64bit installation (by Microsoft Appstore). I chose this version, to make sure, that I do not run into a version conflict:
Path variables are setup correctly (installation is under C:\users\peter.schmidt\AppData\Microsoft...). From above you can also see, that I can access python via cmd:
echo %Path%:
From my point of view, the installation should be correct. I first tried the examples coming with LabVIEW, none of these worked. Then I created the most simple example ever:
My VI looks as follows:
It just consists of a Python Session On -> Python Node -> Python Session Off. The python code in MyTestFunc.py is:
So this simple Test() Function does not take any arguments and just resturns a float constant 2.2. Running this test VI gives me Error 1761:
It basically seems that LabVIEW does not find the correct python path. However, if I pipe-in the python path, by connecting the string constant (e.g. C:\Users\peter.schmidt\AppData\Local\Microsoft\WindowsApps\python.exe) with the Open Python Session INPUT for python Path:
I will receive Error 1671:
What am I doing wrong? At first I thought it is because I have zero experience in LabVIEW, but even the LabVIEW-Python Examples do not work. Does any know what to check for as a next step?
Is it possible, that the dot in the user name "peter.schmidt" causes an issue?
Many Thanky!
BR,
Peter