Hey @Re_Walter, I hope you’re well.
I get this error quite often when working with Python scripts in UiPath and these are my steps to debug, hopefully one of them help you:
- Run your Python script from the Command Prompt to see what output you get. Reference your Python Interpreter in Command Prompt to ensure you get the same output. This should tell you what the error is.
- I like to double check that all libraries are installed and working, especially if I’m recreating virtual environments, sometimes that causes a lot of issues but if you are using the venv interpreter, Step 1 will show if there’s an error.
- Double check indentation in a Python IDE, that has caught me out a few times as well.
Hope this helps.
For more info, please feel free to read through my post that details how to use Python in UiPath: https://thejpanda.com/2020/01/09/rpa-using-the-python-activity-in-uipath/