LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labviw call python and build applications

Solved!
Go to solution

I'm calling python with labviw,E.g “PythonNode_AddTwoDoubles.vi”.
In vi, it is able to operate normally.

OK.jpg

But when I build the application,error 1663 will occur. and .py has been added to the source file.

1.jpg2.jpg

How should the relevant configuration file?

0 Kudos
Message 1 of 10
(3,532 Views)

I assume the path is wrong. It will end up in the data directory of the executable by default.

 

Add some path checking and error checking\reporting to the code, and you'll get more feedback.

0 Kudos
Message 2 of 10
(3,477 Views)

Thank you very much for your reply.

 

360截图17860606647496.jpg

But I have Python module path is specified as a constant, the error 1663 still exists

0 Kudos
Message 3 of 10
(3,431 Views)

And ERROR1663 will appear when open Python node by EXE.

360截图17571114403744.jpg360截图18720123107105134.jpg

0 Kudos
Message 4 of 10
(3,427 Views)
Solution
Accepted by topic author Humbert1985
Thank you very much for your reply I have solved this problem 1) Python Labview 32bit,Win10 64bit,Vi is Ok,EXE is Error 2) Python Labview Win10 64bit,Vi and EXE is Ok
Message 5 of 10
(3,404 Views)

How did you solve the problem?

Is the problem due to the python installation directory? I think the python DLL should be in the system path. And by default the python installation will not copy DLL to the system path. 

Can you please share the solution.

0 Kudos
Message 6 of 10
(3,317 Views)

@jidhu_mohan wrote:

How did you solve the problem?

Is the problem due to the python installation directory? I think the python DLL should be in the system path. And by default the python installation will not copy DLL to the system path. 

Can you please share the solution.


 


@Humbert1985 paraphrased:
I have solved this problem:
1) Python ??? bit, LabVIEW 32 bit, Win10 64 bit: dev.env is Ok, EXE is Error
2) Python ??? bit, LabVIEW 64 bit, Win10 64 bit: dev.env is OK, EXE is Ok

I would expect that LabVIEW and Python bitness need to match. So 32 bit LabVIEW requires 32 bit Python. Not in development environment, but for executables.

 

 

0 Kudos
Message 7 of 10
(3,310 Views)

That worked.. Thanks a ton..

0 Kudos
Message 8 of 10
(3,300 Views)

The problem I encountered is using labview2018-32-bit and python 3.6.0-32-bit and computer win7-64-bit. In the example, python node reported 1661 errors. How to solve this problem?

tedelon_0-1589385966654.png

 

0 Kudos
Message 9 of 10
(3,142 Views)