03-26-2023 03:07 PM
Hello:
To resolve LabVIEW memory leak when using ADO COM database access drivers, I have chosen to use a Python implementation to deliver same functionality plus the anticipated resolution of the memory leak issue.
QUESTION
=========
If I use Python nodes in LabVIEW what are the prerequisites for building a LabVIEW installer that will install a LabVIEW APP to run on the client's PC that has no Python installed?
In other words: if Python Nodes are used in LabVIEW VIs, what are the precautions when building a LabVIEW installer so that the LabVIEW app in question will run on a PC with no Python installed.
Thanks and Regards
Anthony
03-26-2023 04:57 PM
Do you expect LabVIEW installer to install Python as well in the client machine?
Or else the Python code cannot execute without a Python interpreter anywhere.
03-26-2023 05:58 PM
I am new to Python programming so I do not know what to do.
I am just assuming that running Python will require similar precautions to using .NET, .OCX, .dll files where you must copy make the dll available on the Windows machine.
For ActiveX COM you also had to register the component using regsvr32 (for 32-bit dlls)
In this case I am assuming that running Python will need some sort of supporting runtime files to be installed as well, apart from the Python script that is being called by the node.
I searched google and YouTube on how to compile a LabVIEW exe that uses Python nodes to no avail.
Anthony_L
03-26-2023 08:48 PM
To run Python scripts you need to install Python interpreter on the machine where you intended to run it.
You need the following to run any python script,