ModuleNotFoundError: No module named 'readchar' Pidog v2

Hello,

I followed the instructions for installing all the libraries for pidog, following the steps in this topic:

Now, when I try to continue with the configuration, I get this error when I run the 0_calibration.py file:
user1@raspberrypi:~ $ cd ~/pidog/examples

user1@raspberrypi:~/pidog/examples $ sudo python3 0_calibration.py

Traceback (most recent call last):

File “/home/user1/pidog/examples/0_calibration.py”, line 9, in

my_dog = Pidog()

File “/usr/local/lib/python3.13/dist-packages/pidog/pidog.py”, line 134, in _init_

from .actions_dictionary import ActionDict

File “/usr/local/lib/python3.13/dist-packages/pidog/actions_dictionary.py”, line 4, in

from .trot import Trot

File “/usr/local/lib/python3.13/dist-packages/pidog/trot.py”, line 19, in

import readchar

ModuleNotFoundError: No module named ‘readchar’

How can I fix this error? Thanks!

Was the vilib module install successful?

Or just try to reinstall…

cd ~/

git clone -b picamera2 GitHub - sunfounder/vilib: Vision library for python --depth 1

cd vilib

sudo python3 install.py

readchar should be installed as part of this module

See

FluxFae, please confirm that all libraries were installed successfully without any error messages.
We recommend that you run the installation commands again to reinstall all libraries, and then try running the example to see if it works.
We have verified that the 0_calibration.py example runs correctly for servo calibration.

Hello,

Thank you very much for the instructions. Reinstalling the vilib module fixed the issue of being able to run the calibration script.

During the vilib installation, I noticed that two dependencies were not installed:

Start installing vilib 0.3.18 for user user1
Python version: 3.13.5
Raspbian version: 13 (64bit)

mediapipe is only supported on 64bit system with python 3.12 or older.
tflite-runtime is only supported on python 3.12 or older.



mediapipe is not supported on this platform… Skip
ai-edge-litert is not supported on this platform… Skip

My plan is to set up a local SLM, but I see that the current Python version isn’t compatible with these dependencies. Do I need to downgrade Python?

Yes, there’s been no sign of activity on 3.13 support for over a year, so I’d suggest your best route is to downgrade your Python. Or use a mediapipe alternative.

I would also suggest adding a formal request for this upgrade. Google say they’re waiting for enough requests to allocate resources, so every request will help!

Please refer to: https://drive.google.com/file/d/1WRevAxF4Ep5hWuGBFRlZdpc_yDGq6G0N/view?usp=sharing