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

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

Did you notice that there’s 2 versions of robot hat? V 4.0 SunFounder Robot HAT — SunFounder Robot HAT documentation

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

Be sure to download\install the appropriate one.

1 Like

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

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.

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

Then the tutorial I’m following for the library install is Install the robot-hat Module — SunFounder Robot HAT documentation

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.

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+

Your OS Buster uses libc6 v2.28
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

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

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

You are most welcome, glad that I could help.