# Github Code Errors

**URL:** <https://forum.sunfounder.com/t/github-code-errors/898>\
**Category:** General\
**Created:** [March 1, 2024, 6:22pm UTC](https://forum.sunfounder.com/t/github-code-errors/898 "2024-03-01T18:22:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Princess](https://avatars.discourse-cdn.com/v4/letter/p/e0b2c6/32.png) [@Princess](https://forum.sunfounder.com/u/Princess)\
**Post date:** [March 1, 2024, 6:22pm UTC](https://forum.sunfounder.com/t/github-code-errors/898/1 "2024-03-01T18:22:16Z")

</div>

I’m trying to clone the Github codes, but I’m getting the following errors:

1. git clone [GitHub - sunfounder/robot-hat: Robot Hat python library](https://github.com/sunfounder/robot-hat.git) - This installed with no errors. I had to manually download, extract and sudo.

2. git clone -b v2.0 [GitHub - sunfounder/pisloth: PiSloth from SunFounder](https://github.com/sunfounder/pisloth.git) \> sudo python3 setup.py install - I had to manually download, but there is no setup.py in this folder.

3. sudo bash i2samp.sh - No such file or directory.

4. cd /home/pi/piarm/examples \> sudo python3 servo\_zeroing.py - No such file or directory.

So, I can’t install the library and I can’t zero the servos. Help!

---

<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:** [March 5, 2024, 9:41am UTC](https://forum.sunfounder.com/t/github-code-errors/898/2 "2024-03-05T09:41:52Z")

</div>

It is recommended that you reinstall the Raspberry Pi system and then go ahead and follow the instructions below to install the source code: install robot-hat library: cd ~/git clone [https://github.com/sunfounder/robot-hat.gitcd](https://github.com/sunfounder/robot-hat.gitcd) ~/robot-hatsudo python3 setup.py install install pisloth library: cd ~/git clone -b v2.0 [https://github.com/sunfounder/pisloth.gitcd](https://github.com/sunfounder/pisloth.gitcd) ~/pislothsudo python3 setup.py install install i2samp.sh: cd ~/ pislothsudo bash i2samp.sh
