The first PiCar test script I started on my new PiCar-X with the newest Raspberry Pi OS gave a python-related fatal error.
A concerning message “no robot hat 5 found“ … “config sound card without mic“ happened during the i2samp.sh script.
My kit came with robot hat v4 with speaker on top and a USB mic. Should there be taken any action on this message?
rPi OS has python v3.13.5 of june 2025, command python3 is identical.
Installation of the software gave no errors, except warnings about running pip as root and the chance on breaking system packages.
The first python script according the installation guide is the calibration tool:
$ sudo python 1.cali_servo_motor.py
the first error: $ sudo python3 1.cali_servo_motor.py
Traceback (most recent call last):
File “/home/frans/picar-x/example/1.cali_servo_motor.py”, line 4, in
import readchar ModuleNotFoundError: No module named ‘readchar’
The error you encountered was likely because the ‘readchar’ library failed to install when you initially set up all the required libraries. This caused the error when running the example. After you separately installed ‘readchar’, the example was able to run successfully.
good call @spf650, my installation logs didn’t contain any ‘readchar’ module. Somehow I skipped the installation step for vilib.
So I installed vilib. That also takes care of my missing ‘readchar’ module. But some important modules were skipped :
tflite-runtime, mediapipe, ai-edge-litert
tflite and ai-edge are crucial for what I want to do later on, the impact of mediapipe I don’t know at this moment
Clearly the currently published piCar software installation instructions are not corrrect anymore.
How to get these advanced features operational?
I don’t know yet.
For simplicity reasons I should should take an older and compatible version of the rPi OS and repeat the whole installation procedure. Then the OS doesn’t have Wayland as graphic environment,. but the old Xserver.
As a retired computer pro and software developer I tend to install all PiCar stuff in a VenV environment with python 3.12
My Recommendation:
in the SunFounder PiCar instructions for installing the Raspberry Pi OS, warn users about this problem and advise to use the older rPi OS image that is compatible with PiCar,
And/Or describe how to install the compatible python version and the software in a virtual environment.
Ah, you seem to be falling between the cracks of releases here. You’re on the last few crumbs of media pipe but not quite got the edge-litert libraries available for python 3.12 yet. I’m not sure there is currently a sweetspot for you. I would start with bookworm 64 as I think its the nearest sweetspot for you to develop from