LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Python node Integeration in Labview

I am trying to call a neural network function of python in Labview 2018 thorough Python node, Python 3.6.0 has installed already. When i execute example of Python node, it works fine. But when I try to run neural network it shows following error.  The same code i was running in labview 2015 by using python intergeration toolkit it was working fine. further I have already installed the Tensorflow version 2.6.0 and Keras 2.6 version as well.

LabVIEW: (Hex 0x687) There was an error in executing the specified function.


Module Path: Path://test.py
Function Name: classifer
Python returned the following error: <class 'AttributeError'>
module 'sys' has no attribute 'argv'

 Can anyone tell me where I am doing the error? 

0 Kudos
Message 1 of 4
(810 Views)

Looks like you have defined an input parameter 'argv' in the module but it is not defined in test.py file.

 

Kindly share your labview and python code for verification


CLD Using LabVIEW since 2013
0 Kudos
Message 2 of 4
(806 Views)

import sys

if not hasattr (sys, 'argv'):

sys.argv = ['']

 

I have already added this line of code in test.py file 

0 Kudos
Message 3 of 4
(798 Views)

Hey,

I am facing the same error . Can you share its solution with me ?Please!!!!!!!!

0 Kudos
Message 4 of 4
(666 Views)