# I'm having trouble with installing my sunfounder robot hat for my raspberry pi 4 B

**URL:** https://forum.sunfounder.com/t/im-having-trouble-with-installing-my-sunfounder-robot-hat-for-my-raspberry-pi-4-b/1825
**Category:** Robotic kit for Raspberry Pi
**Created:** [October 16, 2024, 12:38am UTC](https://forum.sunfounder.com/t/im-having-trouble-with-installing-my-sunfounder-robot-hat-for-my-raspberry-pi-4-b/1825 "2024-10-16T00:38:19Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Jigglypants](https://avatars.discourse-cdn.com/v4/letter/j/ea5d25/32.png) [@Jigglypants](https://forum.sunfounder.com/u/Jigglypants)
#### Post date: [October 16, 2024, 12:38am UTC](https://forum.sunfounder.com/t/im-having-trouble-with-installing-my-sunfounder-robot-hat-for-my-raspberry-pi-4-b/1825/1 "2024-10-16T00:38:19Z")

</div>

I keep getting the same error when trying to install my board. I have recently updated my raspberry pi but other then that i am pretty new to this stuff so any help would be appropriated. here is what i get.(had to change .org to .or and http to htp to post)

/usr/local/lib/python3.7/dist-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.  
setuptools.SetuptoolsDeprecationWarning,  
/usr/local/lib/python3.7/dist-packages/setuptools/command/easy\_install.py:159: EasyInstallDeprecationWarning: easy\_install command is deprecated. Use build and pip and other standards-based tools.  
EasyInstallDeprecationWarning,  
running bdist\_egg  
running egg\_info  
writing robot\_hat.egg-info/PKG-INFO  
writing dependency\_links to robot\_hat.egg-info/dependency\_links.txt  
writing entry points to robot\_hat.egg-info/entry\_points.txt  
writing top-level names to robot\_hat.egg-info/top\_level.txt  
reading manifest file ‘robot\_hat.egg-info/SOURCES.txt’  
adding license file ‘LICENSE’  
writing manifest file ‘robot\_hat.egg-info/SOURCES.txt’  
installing library code to build/bdist.linux-armv7l/egg  
running install\_lib  
running build\_py  
creating build/bdist.linux-armv7l/egg  
creating build/bdist.linux-armv7l/egg/robot\_hat  
copying build/lib/robot\_hat/servo.py → build/bdist.linux-armv7l/egg/robot\_hat  
copying build/lib/robot\_hat/pin.py → build/bdist.linux-armv7l/egg/robot\_hat  
copying build/lib/robot\_hat/i2c.py → build/bdist.linux-armv7l/egg/robot\_hat  
copying build/lib/robot\_hat/tts.py → build/bdist.linux-armv7l/egg/robot\_hat  
copying build/lib/robot\_hat/motor.py → build/bdist.linux-armv7l/egg/robot\_hat  
copying build/lib/robot\_hat/filedb.py → build/bdist.linux-armv7l/egg/robot\_hat  
copying build/lib/robot\_hat/pwm.py → build/bdist.linux-armv7l/egg/robot\_hat  
copying build/lib/robot\_hat/version.py → build/bdist.linux-armv7l/egg/robot\_hat  
copying build/lib/robot\_hat/utils.py → build/bdist.linux-armv7l/egg/robot\_hat  
copying build/lib/robot\_hat/adc.py → build/bdist.linux-armv7l/egg/robot\_hat  
copying build/lib/robot\_hat/modules.py → build/bdist.linux-armv7l/egg/robot\_hat  
copying build/lib/robot\_hat/basic.py → build/bdist.linux-armv7l/egg/robot\_hat  
copying build/lib/robot\_hat/music.py → build/bdist.linux-armv7l/egg/robot\_hat  
copying build/lib/robot\_hat/ **init**.py → build/bdist.linux-armv7l/egg/robot\_hat  
copying build/lib/robot\_hat/robot.py → build/bdist.linux-armv7l/egg/robot\_hat  
byte-compiling build/bdist.linux-armv7l/egg/robot\_hat/servo.py to servo.cpython-37.pyc  
byte-compiling build/bdist.linux-armv7l/egg/robot\_hat/pin.py to pin.cpython-37.pyc  
byte-compiling build/bdist.linux-armv7l/egg/robot\_hat/i2c.py to i2c.cpython-37.pyc  
byte-compiling build/bdist.linux-armv7l/egg/robot\_hat/tts.py to tts.cpython-37.pyc  
byte-compiling build/bdist.linux-armv7l/egg/robot\_hat/motor.py to motor.cpython-37.pyc  
byte-compiling build/bdist.linux-armv7l/egg/robot\_hat/filedb.py to filedb.cpython-37.pyc  
byte-compiling build/bdist.linux-armv7l/egg/robot\_hat/pwm.py to pwm.cpython-37.pyc  
byte-compiling build/bdist.linux-armv7l/egg/robot\_hat/version.py to version.cpython-37.pyc  
byte-compiling build/bdist.linux-armv7l/egg/robot\_hat/utils.py to utils.cpython-37.pyc  
byte-compiling build/bdist.linux-armv7l/egg/robot\_hat/adc.py to adc.cpython-37.pyc  
byte-compiling build/bdist.linux-armv7l/egg/robot\_hat/modules.py to modules.cpython-37.pyc  
byte-compiling build/bdist.linux-armv7l/egg/robot\_hat/basic.py to basic.cpython-37.pyc  
byte-compiling build/bdist.linux-armv7l/egg/robot\_hat/music.py to music.cpython-37.pyc  
byte-compiling build/bdist.linux-armv7l/egg/robot\_hat/ **init**.py to **init**.cpython-37.pyc  
byte-compiling build/bdist.linux-armv7l/egg/robot\_hat/robot.py to robot.cpython-37.pyc  
creating build/bdist.linux-armv7l/egg/EGG-INFO  
copying robot\_hat.egg-info/PKG-INFO → build/bdist.linux-armv7l/egg/EGG-INFO  
copying robot\_hat.egg-info/SOURCES.txt → build/bdist.linux-armv7l/egg/EGG-INFO  
copying robot\_hat.egg-info/dependency\_links.txt → build/bdist.linux-armv7l/egg/EGG-INFO  
copying robot\_hat.egg-info/entry\_points.txt → build/bdist.linux-armv7l/egg/EGG-INFO  
copying robot\_hat.egg-info/not-zip-safe → build/bdist.linux-armv7l/egg/EGG-INFO  
copying robot\_hat.egg-info/top\_level.txt → build/bdist.linux-armv7l/egg/EGG-INFO  
creating ‘dist/robot\_hat-2.2.15-py3.7.egg’ and adding ‘build/bdist.linux-armv7l/egg’ to it  
removing ‘build/bdist.linux-armv7l/egg’ (and everything under it)  
Processing robot\_hat-2.2.15-py3.7.egg  
removing ‘/usr/local/lib/python3.7/dist-packages/robot\_hat-2.2.15-py3.7.egg’ (and everything under it)  
creating /usr/local/lib/python3.7/dist-packages/robot\_hat-2.2.15-py3.7.egg  
Extracting robot\_hat-2.2.15-py3.7.egg to /usr/local/lib/python3.7/dist-packages  
robot-hat 2.2.15 is already the active version in easy-install.pth  
Installing robot\_hat script to /usr/local/bin

Installed /usr/local/lib/python3.7/dist-packages/robot\_hat-2.2.15-py3.7.egg  
Processing dependencies for robot-hat==2.2.15  
Finished processing dependencies for robot-hat==2.2.15  
Install dependencies with apt-get:

- update apt-get… Done
- install raspi-config… Done
- install i2c-tools… Done
- install espeak… Done
- install libsdl2-dev… Done
- install libsdl2-mixer-dev… Done
- install portaudio19-dev… Done
- install pico2wave… Error  
Install dependencies with pip3:  
pip3 install with --break-system-packages
- update pip3… Done
- install smbus2… Done
- install gpiozero… Done
- install pyaudio… Done
- install spidev… Done
- install pyserial… Done
- install pillow… Done
- install ‘pygame\>=2.1.2’… Done  
Setup interfaces
- turn on I2C… Done
- turn on SPI… Done  
Copy dtoverlay
- copy Servo Hat+ dtoverlay… Error

Error happened in install process:  
install pico2wave error:  
Status:100  
Error:–2024-10-15 20:08:37-- htp://ftp.debian.org/debian/pool/non-free/s/svox/libttspico0\_1.0+git20130326-11\_armhf.deb  
Resolving ftp.debian.or (ftp.debian.or)… 2a04:4e42:600::644, 2a04:4e42:200::644, 2a04:4e42::644, …  
Connecting to ftp.debian.or (ftp.debian.or)|2a04:4e42:600::644|:80… connected.  
HTTP request sent, awaiting response… 200 OK  
Length: 124840 (122K) [application/vnd.debian.binary-package]  
Saving to: ‘libttspico0\_1.0+git20130326-11\_armhf.deb.1’

```
 0K .......... .......... .......... .......... .......... 41% 809K 0s
50K .......... .......... .......... .......... .......... 82% 1.43M 0s

```

100K … … . 100% 1.07M=0.1s

2024-10-15 20:08:38 (1.03 MB/s) - ‘libttspico0\_1.0+git20130326-11\_armhf.deb.1’ saved [124840/124840]

–2024-10-15 20:08:38-- htp://ftp.debian.org/debian/pool/non-free/s/svox/libttspico-utils\_1.0+git20130326-11\_armhf.deb  
Resolving ftp.debian.or (ftp.debian.or)… 2a04:4e42::644, 2a04:4e42:200::644, 2a04:4e42:400::644, …  
Connecting to ftp.debian.or (ftp.debian.or)|2a04:4e42::644|:80… connected.  
HTTP request sent, awaiting response… 200 OK  
Length: 9440 (9.2K) [application/vnd.debian.binary-package]  
Saving to: ‘libttspico-utils\_1.0+git20130326-11\_armhf.deb.1’

```
 0K ......... 100% 916K=0.01s

```

2024-10-15 20:08:38 (916 KB/s) - ‘libttspico-utils\_1.0+git20130326-11\_armhf.deb.1’ saved [9440/9440]

Reading package lists…  
Building dependency tree…  
Reading state information…  
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.

copy Servo Hat+ dtoverlay error:  
Status:1  
Error:cp: cannot create regular file ‘/boot/firmware/overlays/’: No such file or directory

---

<div class="post-metadata">

### Author: ![Weirdyguy](https://avatars.discourse-cdn.com/v4/letter/w/d78d45/32.png) [@Weirdyguy](https://forum.sunfounder.com/u/Weirdyguy)
#### Post date: [October 16, 2024, 1:17am UTC](https://forum.sunfounder.com/t/im-having-trouble-with-installing-my-sunfounder-robot-hat-for-my-raspberry-pi-4-b/1825/2 "2024-10-16T01:17:23Z")

</div>

Did you notice that there’s 2 versions of robot hat? V 4.0 [SunFounder Robot HAT — SunFounder Robot HAT documentation](https://docs.sunfounder.com/projects/robot-hat-v4/en/latest/)

And the other  
[https://docs.sunfounder.com/projects/robot-hat/en/latest/](https://docs.sunfounder.com/projects/robot-hat/en/latest/)

Be sure to download\install the appropriate one.

---

<div class="post-metadata">

### Author: ![Jigglypants](https://avatars.discourse-cdn.com/v4/letter/j/ea5d25/32.png) [@Jigglypants](https://forum.sunfounder.com/u/Jigglypants)
#### Post date: [October 16, 2024, 1:58am UTC](https://forum.sunfounder.com/t/im-having-trouble-with-installing-my-sunfounder-robot-hat-for-my-raspberry-pi-4-b/1825/3 "2024-10-16T01:58:11Z")

</div>

I have the 4.0 version and im getting the error installing the correct one

---

<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: [October 16, 2024, 2:51am UTC](https://forum.sunfounder.com/t/im-having-trouble-with-installing-my-sunfounder-robot-hat-for-my-raspberry-pi-4-b/1825/4 "2024-10-16T02:51:59Z")

</div>

Could you please let us know which product you’re using ? Additionally, are you following the tutorial linked in the documentation to install the code library? This information will help us analyze and resolve the issue more effectively.  
We also recommend trying the installation a few more times to see if the results vary.

---

<div class="post-metadata">

### Author: ![Jigglypants](https://avatars.discourse-cdn.com/v4/letter/j/ea5d25/32.png) [@Jigglypants](https://forum.sunfounder.com/u/Jigglypants)
#### Post date: [October 16, 2024, 11:02am UTC](https://forum.sunfounder.com/t/im-having-trouble-with-installing-my-sunfounder-robot-hat-for-my-raspberry-pi-4-b/1825/5 "2024-10-16T11:02:23Z")

</div>

> **[CanaKit Raspberry Pi 4 Starter Kit (4GB RAM) : Amazon.ca: Electronics](https://www.amazon.ca/CanaKit-Raspberry-Starter-Kit-4GB/dp/B07WRMR2CX)**
>
> CanaKit Raspberry Pi 4 Starter Kit (4GB RAM) : Amazon.ca: Electronics

> **[SunFounder Robot HAT Expansion Board Designed for Raspberry Pi 4/3B+/3B/Zero W...](https://www.amazon.ca/SunFounder-Expansion-Raspberry-Inclulded-Rechargeable/dp/B0CKTD7QJB)**
>
> SunFounder Robot HAT Expansion Board Designed for Raspberry Pi 4/3B+/3B/Zero W Robot, IoT, Sensors, Motors, Servos Driver, Inclulded Rechargeable Battery, 5V2A, Speaker, ADC, PWM, IIC, UART, SPI : Amazon.ca: Electronics

And I’ve followed the install instructions to a tee at least 12 times with the same error each time

---

<div class="post-metadata">

### Author: ![Jigglypants](https://avatars.discourse-cdn.com/v4/letter/j/ea5d25/32.png) [@Jigglypants](https://forum.sunfounder.com/u/Jigglypants)
#### Post date: [October 16, 2024, 11:24am UTC](https://forum.sunfounder.com/t/im-having-trouble-with-installing-my-sunfounder-robot-hat-for-my-raspberry-pi-4-b/1825/6 "2024-10-16T11:24:13Z")

</div>

Then the tutorial I’m following for the library install is [Install the robot-hat Module — SunFounder Robot HAT documentation](https://docs.sunfounder.com/projects/robot-hat-v4/en/latest/installation.html)

---

<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: [October 17, 2024, 2:46am UTC](https://forum.sunfounder.com/t/im-having-trouble-with-installing-my-sunfounder-robot-hat-for-my-raspberry-pi-4-b/1825/7 "2024-10-17T02:46:59Z")

</div>

To assist you further, could you please provide the following information?

1.Raspberry Pi System Version: What version of the Raspberry Pi operating system are you currently using? This will help us replicate and troubleshoot the issue.  
2.Network Configuration: Please confirm the network configuration for your Raspberry Pi. Is the signal strong? If you have an Ethernet cable, we recommend using it to download the code repository. When executing the installation commands, please try running them one at a time to observe the installation results.  
3.Kernel Version: Please execute the command uname -r to check your system’s kernel version and share the result with us.

---

<div class="post-metadata">

### Author: ![Jigglypants](https://avatars.discourse-cdn.com/v4/letter/j/ea5d25/32.png) [@Jigglypants](https://forum.sunfounder.com/u/Jigglypants)
#### Post date: [October 18, 2024, 10:44pm UTC](https://forum.sunfounder.com/t/im-having-trouble-with-installing-my-sunfounder-robot-hat-for-my-raspberry-pi-4-b/1825/8 "2024-10-18T22:44:31Z")

</div>

> [@SunFounder\_Moderator](#):
>
> uname -r

Raspberry pi system version

pi@raspberrypi:~/robot-hat $ hostnamectl  
Static hostname: raspberrypi  
Icon name: computer  
Machine ID: 12bc522e9c1846248ba697657bb6a891  
Boot ID: 07cfec5cb2eb4365b1e89c7265706ae8  
Operating System: Raspbian GNU/Linux 10 (buster)  
Kernel: Linux 5.10.103-v7l+  
Architecture: arm

Network config

Its wireless because I dont have the ability to do a wired configuration ran a speed test on speed test. net and got 36mbs down

Kernel Version

pi@raspberrypi:~/robot-hat $ uname -r  
5.10.103-v7l+

---

<div class="post-metadata">

### Author: ![Spf650](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@Spf650](https://forum.sunfounder.com/u/Spf650)
#### Post date: [October 19, 2024, 5:30am UTC](https://forum.sunfounder.com/t/im-having-trouble-with-installing-my-sunfounder-robot-hat-for-my-raspberry-pi-4-b/1825/9 "2024-10-19T05:30:23Z")

</div>

Your OS Buster uses libc6 v2.28  
[https://pkgs.org/download/libc6](https://pkgs.org/download/libc6)

As confirmed in the error message

> > …but 2.28-10+rpt2+rpi1+deb10u2 is to be installed

Bullseye uses v.2.31

Bookworm uses v2.36

Error message

> > libttspico0 : Depends: libc6 (\>= 2.29)

says ibttspico0 requires at least v2.29, consistent with

> **[Debian -- Details of package libttspico0 in bookworm](https://packages.debian.org/bookworm/libttspico0)**
>
> Small Footprint TTS (library)

Try to install on bullseye or bookworm or possibly an apt upgrade will load latest libc6 version if no other conflicts.

---

<div class="post-metadata">

### Author: ![Jigglypants](https://avatars.discourse-cdn.com/v4/letter/j/ea5d25/32.png) [@Jigglypants](https://forum.sunfounder.com/u/Jigglypants)
#### Post date: [October 19, 2024, 7:36pm UTC](https://forum.sunfounder.com/t/im-having-trouble-with-installing-my-sunfounder-robot-hat-for-my-raspberry-pi-4-b/1825/10 "2024-10-19T19:36:38Z")

</div>

Changing my os to bookworm seems to have fixed it thank you

---

<div class="post-metadata">

### Author: ![Spf650](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@Spf650](https://forum.sunfounder.com/u/Spf650)
#### Post date: [October 19, 2024, 7:49pm UTC](https://forum.sunfounder.com/t/im-having-trouble-with-installing-my-sunfounder-robot-hat-for-my-raspberry-pi-4-b/1825/11 "2024-10-19T19:49:51Z")

</div>

You are most welcome, glad that I could help.
