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.
Thanks for clearing that up. I am running now through the command window.
I am now working through the TTS with espeak and getting an error
ModuleNotFoundError: No module named ‘pidog.tts’
Can you help me find pidog.tts?
Could you please confirm the following:
Were all the library codes installed correctly?
Did you encounter any error messages during the installation?
If you received any errors, please send us a screenshot. This will greatly help us analyze and resolve the issue for you.
We also recommend that you carefully follow the tutorial to reinstall all libraries before running the example code again.
Helpful Link:
Installation Guide: 5. Install All the Modules(Important) — SunFounder PiDog Kit 1.0 documentation