MusicBot can be installed on Raspbian and Raspberry Pi OS. Older versions of Pi OS (known as Raspbian) may require some manual steps.
This guide is broken into three sections depending on your version of Raspberry Pi OS or Raspbian.
If you’re unsure which version you have, you can find out by using the following command: lsb_release -s -d
It should output something similar to one of the following: Debian GNU/Linux 12 (bookworm)orRaspbian GNU/Linux 10 (buster)
We’re interested in the last two bits of info, the number and code-name.
Raspbery Pi OS 12 (bookworm) install steps.
For Pi OS version 12 (bookworm) or later, Python 3 is system-managed.
This means MusicBot must be installed in a Python Venv (Virtual Environment) to avoid complications between system python libraries and libraries that MusicBot depends on.
In practice, there are only a few extra commands to follow:
After these steps, MusicBot will be installed within ./MusicBotVenv/MusicBot/ and will need to be configured. Follow the Configuration guide before starting the MusicBot.
Note: As long as the MusicBot cloned directory is inside the Venv directory, the run.sh and update.sh scripts should find and load the Venv automatically.
If you need to manually update python libraries for MusicBot, you will need to activate the venv before you can do so.
Version 11 (bullseye)
Raspberry Pi OS 11 (bullseye) install steps.
For Pi OS version 11 (bullseye), the Python 3.8+ is available as a system package, so installing is pretty simple.
Just follow these commands:
Once finished, you need to Configure MusicBot.
After configuring you can use the command ./run.sh to start the bot.
Version 10 (buster) and earlier.
Raspbian 10 (buster) install steps.
For Raspbian version 10 (buster) and earlier versions, you will need to compile a version of Python 3.8 or higher as well as installing pip.
This can take a bit of time to complete and may require a little troubleshooting know-how if these steps are out-of-date or incomplete in some way.
If you're willing to carefully follow along, these steps should get MusicBot working:
When install is finished you need to Configure MusicBot.
After configuring you can use the command ./run.sh to start the bot.