Hi All,
I am getting an error while running a Python script in the workflow. Script is working fine while testing but in the workflow it is throwing an error. Attached is screenshot of error in workflow.

While testing in script it is working fine. Attaching screenshot of it -

What will be the reason for this error?
Has anyone encountered this type of error before?
Thanks in advance!