typed the following: cd ~/pidog/examples 0 calibration.py
Module not found error: No module named ‘readchar’
Any help is appreciated.
typed the following: cd ~/pidog/examples 0 calibration.py
Module not found error: No module named ‘readchar’
Any help is appreciated.
Did you follow all steps? 1. Quick Guide on Python — SunFounder PiDog Kit 1.0 documentation
Yes i followed all the steps. Zeroing worked up to that point so I finished assembly then tried to calibrate based on the video calibration and i keep getting the error message above.
Based on the information you provided, the command you entered is incorrect.
The correct command is:
cd ~/pidog/examples
sudo python3 0_calibration.py
Please run the above commands and let us know how it works.
If you encounter any errors, please provide the complete error message so we can assist you in analyzing and resolving the issue.
This is the error message I keep getting while trying to access the calibration mode.
sherryLoo@raspberrypi:~/pidog/examples $ sudo python3 0_calibration.py
Traceback (most recent call last):
File “/home/sherryLoo/pidog/examples/0_calibration.py”, line 9, in <module
my_dog = Pidog()
^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/pidog-1.3.9-py3.11.egg/pidog
/pidog.py”, line 134, in init
from .actions_dictionary import ActionDict
File “/usr/local/lib/python3.11/dist-packages/pidog-1.3.9-py3.11.egg/pidog
/actions_dictionary.py”, line 4, in
from .trot import Trot
File “/usr/local/lib/python3.11/dist-packages/pidog-1.3.9-py3.11.egg/pidog
/trot.py”, line 19, in
import readchar
ModuleNotFoundError: No module named ‘readchar’
Was the vilib module install successful?
Or just try to reinstall…
cd ~/
git clone -b picamera2 GitHub - sunfounder/vilib: Vision library for python
cd vilib
sudo python3 install.py
As far as I know readchar should be installed as part of this vilib installation
Thank you….i did your recommendations and it worked! Thanks again for your help!
You are most welcome! Enjoy your pidog.
I would also like to thank you for confirming that this has worked. It can help so many others with a similar issue,