03-26-2020 12:43 AM
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!
01-21-2021 06:24 AM
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
01-21-2021 09:24 PM
No... this is likely a LabVIEW issue.
Or, maybe you can try to install a LabVIEW inside conda venv???