Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66694

Issue with Python in LabView: Errors 1761 or 1671

$
0
0

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:

DrPiti_0-1712145368869.png     DrPiti_1-1712145400532.png

 

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:

DrPiti_2-1712145456010.png

echo %Path%:

DrPiti_3-1712145621429.png

 

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:

DrPiti_4-1712145873501.png

 

It just consists of a Python Session On -> Python Node -> Python Session Off. The python code in MyTestFunc.py is:

DrPiti_5-1712145928406.png

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:

DrPiti_6-1712146023036.png

 

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:

DrPiti_7-1712146184693.png

I will receive Error 1671:

DrPiti_8-1712146255557.png

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

 


Viewing all articles
Browse latest Browse all 66694

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>