Python Function Calling To LabVIEW: Error From Python

Hi,
I am trying to call a python function to LabVIEW using some nodes. However, I am getting an error (code:1671) related to python. Could you please help me to solve this error? Thank you. I am using LabVIEW 2023 Q3 and Python 3.6.0 both 64 bit. I tried to change python code such as casting or converting string to int and int to string. But they did not work.

Python code:
#define class
class myClass(object):
def init(self, parameter):
self.__Parameter = parameter
def GetValue(self):
return self.__Parameter

#define wrapper for LabVIEW Python node
def getClassData():
newClassObject = myClass(4882)
value = newClassObject.GetValue()
castedValue = int(value)
return castedValue

LabVIEW vi and error block:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.