Picrawler: Servo_zeroing.py unsupported operand types

I’m unable to get servo_zeroing.py to run.

Additionally, When running the install for i2samp.sh and it does the sound test, It only plays “Front right” as a sound.

I’ve followed the tutorial on the sunfounder website 3 times fresh - reformatting the sd in between in case I had done something wrong the previous times.
I am using Debian Buster as the tutorial states.
I have checked for and applied updates.
This is on a Pi 4b 8gb.

First installation I had a different issue where the servo_zeroing.py script would not run.


“RuntimeWarning: Your system is neon capable but pygame was not built with support for it”


I saw a forum post suggest running:
git clone -b v2.0 GitHub - sunfounder/robot-hat: Robot Hat python library
instead of
git clone GitHub - sunfounder/robot-hat: Robot Hat python library
to fix this issue.

I no longer get that pygame warning.

For the last two installs when I run:
cd /home/pi/picrawler/examples
sudo python3 servo_zeroing.py

I get the following:


Servo 0 set to zero
Traceback (most recent call last):
File “servo_zeroing.py”, line 14, in
Servo(PWM(i)).angle(10)
File “/usr/local/lib/python3.7/dist-packages/robot_hat-2.2.11-py3.7.egg/robot_hat/servo.py”, line 20, in init
super().init(channel, address, *args, **kwargs)
File “/usr/local/lib/python3.7/dist-packages/robot_hat-2.2.11-py3.7.egg/robot_hat/pwm.py”, line 48, in init
self.timer = int(channel/4)
TypeError: unsupported operand type(s) for /: ‘PWM’ and ‘int’


I also had an issue when installing the Robot-Hat with Pico2Wave showing Error because:


"Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libttspico0 : Depends: libc6 (>= 2.29) but 2.28-10+rpt2+rpi1+deb10u2 is to be installed
E: Unable to correct problems, you have held broken packages."


Anyone know how to fix this?
(And also know what is up with the sound only playing “front right” during the sound test?)

If you are using Debian Buster.
It is recommended that you install the tutorial link step by step to install all the codebases:
https://docs.sunfounder.com/projects/pi-crawler/en/latest/python/python_start/download_and_run_code.html
After running i2samp.sh and a sound is emitted, the robot hat’s speakers are working.
If you want to verify again, please install all the code libraries, reboot the Raspberry Pi, and then go to run the example about the sound effect, and see if it can sound properly then.