Hi, welcome to the forum!
Here is our classic Getting Started guide: https://labautomation.io/t/getting-started-with-pyhamilton
The general rule for PyHamilton is that there are two places to look when hunting down bugs, the Hamilton trace file and the Python stack trace. Generally we try to push errors from the former to the latter based on the built-in error handling functionality, but this isn’t possible for some errors, so it’s good to check both if you are stuck.
Let me know what you find once you’ve done that