LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview failed to call python

Hi,

I find the new LabVIEW 2018 can call Python natively, so I tried this new function on my computer. I find several examples (PythonNode_AddTwoDoubles.vi, PythonNode_AddTwoIntegers.vi and other examples found in this forums), these examples are very simple, only contain one or two functions, such as "hello world". But none of them can run properly. Every example returns an error code "1663". I can't find any explanation about this error code. image.png

 

I installed 32bit LabVIEW and 32bit Anaconda3 on my computer with win10. My Python interpreter works fine with other softwares and I already put python36.dll into the system path.Can anyone help me with this problem? Thanks!

 

Xy Fan

0 Kudos
Message 1 of 14
(11,672 Views)

According to LabVIEW 2018, Error 1663 lists as a Possible Reason "LabVIEW: (Hex 0x67F) Unable to load the Python interpreter of the specified version. Ensure that you install the supported versions of Python, and the bitness of Python matches the bitness of LabVIEW that opens the Python session."

 

Bob Schor

0 Kudos
Message 2 of 14
(11,630 Views)

I installed 32bit Python and 32bit LabVIEW, but my Python is 3.6.5 rather than 3.6.0. But I think 3.6.5 is also supported because the document said Python 3.6 is OK.

0 Kudos
Message 3 of 14
(11,614 Views)

If 3.6 is OK, that means it was tested with 3.6, but not with 3.6.5.  It might work, but it might not.  Can you load 3.6 and see if that fixes the problem?  Does the Anaconda documentation say what changed between 3.6 and 3.6 5?

 

Bob Schor

0 Kudos
Message 4 of 14
(11,604 Views)

Hello

 

solved. installed wrong bitness...

 

Thx

0 Kudos
Message 5 of 14
(11,500 Views)
Which bit of LabVIEW and Python are needed?
CLD
CAU
0 Kudos
Message 6 of 14
(11,441 Views)

can you explain how to install correct bitness? or how you figured out there were wrong bitness?

0 Kudos
Message 7 of 14
(11,408 Views)

Up! I have the same question!

0 Kudos
Message 8 of 14
(11,391 Views)

You have to look that both Labview and python have the same bitness. That means both are 32bit or 64bit installations and not labview 32bit and python 64bit. that won't work.

Message 9 of 14
(11,378 Views)

You have to use the correct bitness and edition.

 

I used to solve this question after I chose 3.6

0 Kudos
Message 10 of 14
(10,861 Views)