I am relatively new to Raspberry pi and started with developing python projects through idle3. I built the Pidog and have been able to run the examples through a command window with commands like “sudo python3 9_howling.py”.
Now I am interested in modifying the code so I opened 9_howling.py in idle3 and ran it but a large number of exceptions occurred. Is there something I need to do?
When you run the example code using IDLE3, you may encounter errors.
You used sudo (administrator privileges) to execute the program in the command window (sudo python3 9_howling.py), while IDLE3 runs with standard user permissions by default. This could result in insufficient hardware access permissions (such as for motors and sensors), causing exceptions.
Therefore, we still recommend executing the code in the command window.