ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to bundle a python venv when building a labview exe

I am trying to deploy an application made in labview that uses python nodes. These nodes use external libraries (e.g. numpy, pandas, etc), and I am using a venv for the python development. The venv and python folders sit within the laview project folder, and I use relative paths when creating the python node (i.e. Application Directory/venv).

 

This works well when running the application in labview, but the venv and python files cannot be found when the program is built (error 1746: Open Venv Python Session.vi). I do not get this error if I hard code the path reference, but that will not work for deployment.

 

Do I need to just bundle the venv and py files and treat them like external files, or is there a way to build it within the executable? When creating applications for pure python projects, I can bundle everything within a single file, and "external" data would be contained / unbundled into a temp / MEI folder at runtime. Is there something similar for executables and labview?

0 Kudos
Message 1 of 2
(845 Views)

Hi!

 

Did you ever find a solution for this? I have the same problem

0 Kudos
Message 2 of 2
(609 Views)