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: 

Does LV Call Python Node support Python venv setting?

I have already installed numpy in venv, also I can call this lib in spyder or jupyter,

 

But when I call this in LabVIEW python node, it tells me that:

 

Possible reason(s):

LabVIEW: (Hex 0x683) The specified Python module could not be imported.


Module Path: D:\LabVIEW_Call_Mnist_Keras\main.py
Function Name: model_compile
Python returned the following error: <class 'ModuleNotFoundError'>
No module named 'numpy'
<traceback object at 0x000001E0030D9CC8>


Call Stack information:
['Traceback (most recent call last):
', ' File "D:\LabVIEW_Call_Mnist_Keras\main.py", line 1, in <module>
import numpy as np
', "ModuleNotFoundError: No module named 'numpy'
"]

 

I thought it was because I wasn't call python in a venv, so I tried open a command line first, and active the venv at this command line shell, after that I use "start Mnist_Keras.lvproj" to call LabVIEW and open this project, it still report this same error.

 

Any ideas about this issue?  Thanks!

0 Kudos
Message 1 of 3
(3,035 Views)

Hi,

 

I'm just curious - did you find a solution for this problem? Because I'm currently busy testing/deploying a python-function with our LabVIEW application and would like to use venv as a save way to store the correct versions of our dependecies.

 

best

 

Peter

0 Kudos
Message 2 of 3
(2,570 Views)

No... this is likely a LabVIEW issue.

 

Or, maybe you can try to install a LabVIEW inside conda venv???

0 Kudos
Message 3 of 3
(2,559 Views)