LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI Python host could not be found

Hello,

I'm trying to integrate Python scripts in LabVIEW via Python node, however for some reason I can't open Python session. There's an error 1662 implying that "The NI Python Host EXE niPythonHost.exe could not be found.". The only trace of this error in internet I found, comes from a chinese website, which doesn't really help.

 

I use LabVIEW 2018 (64bit) and freshly installed Python 3.6.0 (also 64bit) added to Windows path. Any ideas what can cause such an error and how to fix it? I assume that there is some file missing, but where to get it from?

 

Regards,

Adam

 

pyerror.PNG

0 Kudos
Message 1 of 4
(2,943 Views)

Since this Python feature and LabVIEW2018 are so now, my bet is you're going to have a hard time finding someone else who has run into this problem yet. Have you tried opening a ticket with NI?

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 2 of 4
(2,911 Views)

The suggestion on the website you mentioned is to copy the niPythonHost.exe from Program Files/National Instruments/Shared/NIPythonInterface/niPythonHost.exe to the LabVIEW 2018 folder (alongside LabVIEW.exe).

Did you try that, or by not helpful did you mean you couldn't read it?


GCentral
0 Kudos
Message 3 of 4
(2,905 Views)

To be honest I couldn't translate it, but now that you did I tried and it didn't help. Today however, LabVIEW puts out error 1661 instead of 1662, saying that it can't find niPythonInterface.dll, but this file is located in the same folder as niPythonHost.exe, so I guess it's no difference.

 

James, I have student license, so I guess I don't have an access to NI support? I don't know, haven't run into a problem that I couldn't figure out by myself before.

0 Kudos
Message 4 of 4
(2,892 Views)