Download and Install

These instructions assume you already have a working Raspberry Pi (RPi) installed with a recent version of raspbian, and that you are somewhat familiar with the linux terminal on your RPi.

Step 0 - Update Raspian

Before you get started update and upgrade raspian to the latest:

sudo apt-get update
sudo apt-get upgrade

Step 1 - Download LightShow Pi

Download the latest version of LightShow Pi using one of the following two methods from a terminal window on your RPi:

Download Method 1 - git (preferred)

This is the preferred method of downloading the LightShow Pi software as it will enable you to easily update the software to future releases.

# Install git (if you don't already have it)
sudo apt-get install git-core

# Clone the repository to /home/pi/lightshowpi
cd ~
git clone https://togiles@bitbucket.org/togiles/lightshowpi.git

# Grab the stable branch
cd lightshowpi
git fetch && git checkout stable

Download Method 2 - zip file

If you are unable to use git for whatever reason, you can also download the stable branch of the software as a zip file.

cd ~
wget https://bitbucket.org/togiles/lightshowpi/get/stable.zip
unzip stable.zip

This will create a directory with a name similar to togiles-lightshowpi-e577fcd4d6af in your home directory with all of the files needed for installing and using LightShow Pi. Rename this directory to lightshowpi:

mv togiles-lightshowpi-e577fcd4d6af lightshowpi

Note: You'll need to replace e577fcd4d6af in the above command with the name of the directory that unzipping stable.zip created - it will most likely be different!

Step 2 - Install LightShow Pi

Run the install script to retrieve the various dependencies lightshowPi uses, replace the directory /home/pi/lightshowpi with the directory you downloaded the repository to in step 1 above:

cd /home/pi/lightshowpi
sudo ./install.sh

The install process can take several minutes as it installs all the necessary software packages needed to run Lightshow Pi. You should reboot your Raspberry Pi after the install completes:

sudo reboot

If you run into any issues, feel free to ask others for help in our Google+ Community

Next Steps

Now that you have the software installed, you can move on to testing your hardware configuration.

41 Comments

  1. I tried to install light show pi 2 times and both times it said “import error no module named setup tools
    Huston we have a problem
    Wiringpi2 failed with exit code 0”
    If I could get some help I would greatly appreciate it.

  2. I tried to install light show pi 2 times and both times it said:
    “Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-khaxmv/Beautifulsoup ”
    Houston we have a problem…..
    Installing Beautifulsoup failed with exit code 0
    If I could get some help I would appreciate it.

    • Beautifulsoup is a python library used by the sms portion of lightshowpi … it changed recently breaking our install script. The install script has been updated to fix this now, please download the latest and try again!

  3. I’m wondering if I did something wrong. I did the git method of installation, and it set my SYCHRONIZED_LIGHTS_HOME to /home/pi/lightshowpi/togiles-lightshowpi-e577fcd4d6af and added a similar path to the PATH variable by way of a /etc/profile.d/lightshowpi.sh script. Was this expected? Did I do something wrong during the installation?
    Thanks!

    • Just now seeing your comment here … assuming you’ve installed the code at that directory, then it worked as expected. Are you able to run the lightshow software?

  4. So when trying to install this, I get:

    -2015-11-13 14:27:48- (try:20) http://www.brailleweb.com/downloads/decoder-1.5XB-Unix.zip
    Connecting to http://www.brailleweb.com (www.brailleweb.com)|69.64.147.242|:80… connected.
    HTTP request sent, awaiting response… Read error (Connection reset by peer) in headers.
    Giving up.

    Going to the URL directly gives a blank page. Did this just happen recently? Any way around this, or does anyone have this file? Can’t find it on the Internet via Google search…

  5. Hi,
    Jus tried installing today and it seems the decoder-1.5XB-Unix.zip aren’t available from brailleweb.com.

    Could you check out? I’ll try again later to see if it’s been fixed.

    Regards,
    Matt.

  6. Tried installing lightpi today and i am receiving the error “Error: command ‘arm-linux-gnueabihf-gcc’ failed with exit status 1
    houston we have a problem
    Installing wiringpi2 failed with exit code 0

    Thanks,
    Zach

    • I’ve not seen this error, you might try posting on the G+ community as there are many more people there who can help!

  7. Pingback: Цветомузыка в машину: Част 1 – прототип | В поисках счастья

  8. I’m getting an error running $ sudo ./install.sh on wheezy.

    File “/usr/local/lib/pythong2.7/dist-packages/setuptools-19.2-py2.7.egg/pkg_resources/__init__.py”, line 568, in load_entry_point return get_distribution(dist).load_entry_point(group, name)
    File “/usr/local/lib/pythong2.7/dist-packages/setuptools-19.2-py2.7.egg/pkg_resources/__init__.py”, line 2719, in load_entry_point
    raise ImportError(“Entry point %r not found” % ((group, name), ))
    ImportError: Entry point (‘console_scripts’, ‘easy_install’) not found
    Houston we have a problem…..
    Installing simplejson failed with exit code 0

    Any idea on how to fix this?

  9. Pingback: Mi show de luces y música de Navidad con Raspberry Pi | Cyberhades

  10. Hi, I’m trying to install and so far I think I have got to the point:

    # Grab the stable branch
    cd lightshowpi
    git fetch && git checkout stable

    but I am getting the error message:
    fatal: Not a git repository (or any of its parent directories): .git
    Have I done something wrong?! I have tried to run the install.sh and I can’t run it from file manager or within the terminal – getting the error:
    sudo: ./install.sh: command not found
    Probably me being a daft noobie but any guidance appreciated!

    • That error message indicates you are attempting to run the git fetch command from a some directory other than the one created when the repository was originally cloned.

      Did you get any error messages when running:

      git clone https://togiles@bitbucket.org/togiles/lightshowpi.git

      ?

      • I didn’t spot any…. The lightshowpi dir is there with all the bits in it.

        Delete the whole directory and start again?!

          • total 12
            drwxr-xr-x 3 pi pi 4096 Feb 3 22:34

            drwxr-xr-x 21 pi pi 4096 Feb 4 10:11

            drwxr-xr-x 11 pi pi 4096 Feb 3 22:35 lightshowpi

          • hrm, from that location you’ll want to enter into the lightshowpi directory:

            cd lightshowpi

            Then when you do an ls -al you should see a listing of files installed for lightshowpi, including a file install.sh.

          • Hi Giles,
            There is indeed a file called install.sh but it wont let me run it from file manager and I had the original error when trying to access it via terminal…

            Thanks for your guidance!

            Stu

        • Hi Todd (Sorry, I called you Giles earlier!!)

          So, I have looked at file manager again and it appears there is a second DIR called lightshowpi. So in effect I had to go one level deeper:

          cd /home/pi/lightshowpi/lightshowpi

          When I then entered:

          sudo ./install.sh

          I got an error saying:
          Detected unknown distribution. Please verify that ‘Debian’ is supported and update this script
          Followed by another error:
          To add support for ‘debian’ create a script with that name in install-scripts

          So I am going to try and find that one now!

          Progress…. Slow but progress 🙂

          • OK! More progress! Ran update on my Pi image etc.
            Reran install.sh from the terminal and it ran through most of the install.
            Dropped a http request but reran and went through until it hit the
            RPI_Audio_Levels
            It won’t install it and consequently won’t run a track – error on trying to run a track:
            no module names rpi_audio_levels
            Tried to rerun but it is not sorting it, it has en error compiling the Cython file – which as a newbie means nothing to me!
            Any thoughts?

  11. Hey I was wanting to code this myself. Maybe do a much simpler version. I have done some looking for a guide and couldn’t find any. Does anyone know of a guide that could have me code my own lightshow/music to LED visualizer. Thank you!

  12. Todd,

    When I try to run the install, it says:

    NOTE: Installing ffmpeg…
    E: Package ‘ffmpeg’ has no installation candidate
    NOTE: Installation failed, trying libav-tools…
    E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/liba/libav/libavdevice55_11.8-1~deb8u1+rpi1_armhf.deb Size mismatch

    E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/liba/libav/libavfilter5_11.8-1~deb8u1+rpi1_armhf.deb Size mismatch

    E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/liba/libav/libav-tools_11.8-1~deb8u1+rpi1_armhf.deb Size mismatch

    E: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing?
    ERROR: A problem occurred while installing ffmpeg.

    Any ideas?

    Thanks in advance!

    Drew Proctor

  13. I’m keep getting an error when I do I fresh install. Here is what I’m getting at the beginning of the install

    lightshowpi [Fri 11 Nov 16:31:12 MST 2016] Configuring installation for detected distro=’raspbian’
    NOTE: Installing ffmpeg…
    E: Package ‘ffmpeg’ has no installation candidate
    NOTE: Installation failed, trying libav-tools…
    The mail frontend needs a installed ‘sendmail’, using pager
    Selecting previously unselected package libavdevice55:armhf.

    • It is ok to ignore that error – ffmpeg is part of the libav-tools package in jessie – did the rest of the install succeed?

  14. i cant to install lightshowpi , have poblem install ffmpeg , (‘installations failed, try libav-tools’)
    what i try:
    1.apt-get update
    2.apt-get update
    3. etc

  15. Hi Todd,

    When running install.sh it seems to hang when it gets to installing rpi-audio-levels. Namely Scanning.so.

    Any ideas?

    • Hrm – just tried a fresh install myself and rpi-audio-levels does seem a bit flaky. I had to try 3 times to finally get it to work. Note – no need to do a complete re-install, but just issue this command:

      pip install git+https://tom_slick@bitbucket.org/tom_slick/rpi-audio-levels.git

  16. Pingback: Create your own Christmas musical light show – Electronics Projects

Leave a Reply

Your email address will not be published. Required fields are marked *