# Picrawler: Servo\_zeroing.py unsupported operand types

**URL:** <https://forum.sunfounder.com/t/picrawler-servo-zeroing-py-unsupported-operand-types/1047>\
**Category:** Robotic kit for Raspberry Pi\
**Created:** [April 19, 2024, 3:34pm UTC](https://forum.sunfounder.com/t/picrawler-servo-zeroing-py-unsupported-operand-types/1047 "2024-04-19T15:34:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rai](https://avatars.discourse-cdn.com/v4/letter/r/67e7ee/32.png) [@Rai](https://forum.sunfounder.com/u/Rai)\
**Post date:** [April 19, 2024, 3:34pm UTC](https://forum.sunfounder.com/t/picrawler-servo-zeroing-py-unsupported-operand-types/1047/1 "2024-04-19T15:34:52Z")

</div>

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](https://github.com/sunfounder/robot-hat.git)  
instead of  
git clone [GitHub - sunfounder/robot-hat: Robot Hat python library](https://github.com/sunfounder/robot-hat.git)  
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?)

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [April 23, 2024, 10:03am UTC](https://forum.sunfounder.com/t/picrawler-servo-zeroing-py-unsupported-operand-types/1047/2 "2024-04-23T10:03:49Z")

</div>

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](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.
