Dear @alimly13,
nice that you work with the Python nodes.
@mlauber71 suggested several things which you still could try out:
- (1) provide us with a small workflow showing the error
- (2) formatting the code in your posts (what you sent is unreadable unfortunately):
Furthermore, the script example when (3) putting a new Python Script
node into your workflow should give you a working example which you can then (4) extend to your own preferences. (5) Then you can post a screenshot of the error.
I suggest having a look at these steps (1)-(5) again, without this it is difficult for us to help you.
Best regards
Steffen