11-14-2024 12:13 PM
Hello,
I'm trying to run a python script with labview and i getting the following error:
Possible reason(s):
LabVIEW: There was an error in executing the specified function.
Python returned the following error: <class 'TypeError'>
bad argument type for built-in operation
I couldn't find a solution, could you help me?
I attached the VI and the VI already create the python file
Solved! Go to Solution.
11-14-2024 01:39 PM
Is 'table' a reserved keyword in Python? Or a built-in function, as the error code indicates?
11-19-2024 04:14 AM
I was trying to use it as a function call
11-19-2024 02:22 PM
You appear to be changing several columns of your data in python to type of integer. You then return that to LabVIEW; but you told LabVIEW the return value is all strings.
11-20-2024 05:44 AM
The Python node in labview is configured to have the environment as an input, fortunately. That said, I actually came across that particular stack overflow post not super long after posting this. I force removed and reinstalled pyproj, and the message doesn’t pop up anymore. Unfortunately, the command prompt pops up blank now, and labview still freezes, so evidently that wasn’t even the main issue
11-20-2024 08:27 AM
@leandrofeder wrote:
I was trying to use it as a function call
I don't know that this is the issue, but it might be worth trying to call python 3.10 because python 3.11 is technically not supported by LabVIEW:
11-21-2024 06:06 AM
That was the problem, thank you very much!