Reactive Lights to sound

I have seen a project called LightshowPi using an RPI. I wonder if there is an equivalent using the Libre Computer. I tried installing the Lightshowpi software on the Libre Computer but it fails to fully installed. I’m not familiar enough to get it going.
I was using the Libre Computer AML-S905X-CC. Installed Rasbian on the sd card. I got it to work up to this point. But once I installed the Lightshowpi, the software will not fully install.
Any suggestion or direction of any similar project but using the Libre Computer will greatly appreciated.

You need to post some logs or something. Just saying it fails don’t give us much to go on.

Here’s the log. The installation of pyalsaaudio is failing.

[Tue 25 Oct 2022 06:22:36 PM EDT] Configuring installation for detected distro='debian'
Reading package lists...
Building dependency tree...
Reading state information...
Reading package lists...
Building dependency tree...
Reading state information...
Package 'python-serial' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  linux-headers-5.19.15-04011-g49dca1c53e48
  linux-image-5.19.15-04011-g49dca1c53e48
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
Package 'python-spidev' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  linux-headers-5.19.15-04011-g49dca1c53e48
  linux-image-5.19.15-04011-g49dca1c53e48
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Installing ffmpeg...
[Tue 25 Oct 2022 06:22:51 PM EDT] Preparing to install 20 packages on your system...
[Tue 25 Oct 2022 06:22:51 PM EDT] Installing python3-pip...
[Tue 25 Oct 2022 06:22:55 PM EDT] Installing python3-dev...
[Tue 25 Oct 2022 06:23:00 PM EDT] Installing curl...
[Tue 25 Oct 2022 06:23:04 PM EDT] Installing faad...
[Tue 25 Oct 2022 06:23:08 PM EDT] Installing flac...
[Tue 25 Oct 2022 06:23:13 PM EDT] Installing gcc...
[Tue 25 Oct 2022 06:23:17 PM EDT] Installing git...
[Tue 25 Oct 2022 06:23:21 PM EDT] Installing lame...
[Tue 25 Oct 2022 06:23:25 PM EDT] Installing mpg123...
[Tue 25 Oct 2022 06:23:30 PM EDT] Installing make...
[Tue 25 Oct 2022 06:23:34 PM EDT] Installing python3-numpy...
[Tue 25 Oct 2022 06:23:38 PM EDT] Installing python3-setuptools...
[Tue 25 Oct 2022 06:23:42 PM EDT] Installing unzip...
[Tue 25 Oct 2022 06:23:47 PM EDT] Installing vorbis-tools...
[Tue 25 Oct 2022 06:23:51 PM EDT] Installing subversion...
[Tue 25 Oct 2022 06:23:55 PM EDT] Installing cython3...
[Tue 25 Oct 2022 06:24:00 PM EDT] Installing pianobar...
[Tue 25 Oct 2022 06:24:04 PM EDT] Installing libjpeg-dev...
[Tue 25 Oct 2022 06:24:08 PM EDT] Installing libtiff-dev...
[Tue 25 Oct 2022 06:24:12 PM EDT] Installing libatlas-base-dev...
[Tue 25 Oct 2022 06:24:17 PM EDT] Attempt to install opt/vc failure is not a concern
[Tue 25 Oct 2022 06:24:22 PM EDT] Install deb package manually for wiringPi
(Reading database ... 143880 files and directories currently installed.)
Preparing to unpack wiringpi-latest.deb ...
Unpacking wiringpi:armhf (2.52) over (2.52) ...
Setting up wiringpi:armhf (2.52) ...
Processing triggers for man-db (2.9.4-2) ...
[Tue 25 Oct 2022 06:24:26 PM EDT] Installing decoder...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting git+https://****@bitbucket.org/broken2048/decoder-v3.py.git
  Cloning https://****@bitbucket.org/broken2048/decoder-v3.py.git to /tmp/pip-req-build-72lh0rbo
Requirement already satisfied: mutagen in /usr/local/lib/python3.9/dist-packages (from decoder.py==1.58.2) (1.46.0)
[Tue 25 Oct 2022 06:24:41 PM EDT] Preparing to install 11 python packages on your system...
[Tue 25 Oct 2022 06:24:41 PM EDT] Installing numpy via pip...
e[1;33mWARNING:e[m numpy installation may take up to 30 minutes
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: numpy in /usr/local/lib/python3.9/dist-packages (1.23.4)
Collecting numpy
  Using cached numpy-1.23.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (14.0 MB)
  Downloading numpy-1.23.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (14.0 MB)
[Tue 25 Oct 2022 06:25:05 PM EDT] Installing Beautifulsoup4 via pip...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: Beautifulsoup4 in /usr/local/lib/python3.9/dist-packages (4.11.1)
Collecting Beautifulsoup4
  Using cached https://www.piwheels.org/simple/beautifulsoup4/beautifulsoup4-4.11.1-py3-none-any.whl (130 kB)
  Downloading https://www.piwheels.org/simple/beautifulsoup4/beautifulsoup4-4.11.0-py3-none-any.whl (73 kB)
Requirement already satisfied: soupsieve>1.2 in /usr/lib/python3/dist-packages (from Beautifulsoup4) (2.2.1)
[Tue 25 Oct 2022 06:25:18 PM EDT] Installing mutagen via pip...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: mutagen in /usr/local/lib/python3.9/dist-packages (1.46.0)
Collecting mutagen
  Using cached https://www.piwheels.org/simple/mutagen/mutagen-1.46.0-py3-none-any.whl (193 kB)
  Using cached https://www.piwheels.org/simple/mutagen/mutagen-1.45.1-py3-none-any.whl (218 kB)
[Tue 25 Oct 2022 06:25:29 PM EDT] Installing simplejson via pip...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: simplejson in /usr/local/lib/python3.9/dist-packages (3.17.6)
Collecting simplejson
  Using cached simplejson-3.17.6-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (130 kB)
  Downloading simplejson-3.17.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (129 kB)
[Tue 25 Oct 2022 06:25:42 PM EDT] Installing twython via pip...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: twython in /usr/local/lib/python3.9/dist-packages (3.9.1)
Collecting twython
  Using cached https://www.piwheels.org/simple/twython/twython-3.9.1-py3-none-any.whl (38 kB)
  Downloading https://www.piwheels.org/simple/twython/twython-3.9.0-py3-none-any.whl (38 kB)
Requirement already satisfied: requests-oauthlib>=0.4.0 in /usr/lib/python3/dist-packages (from twython) (1.0.0)
Requirement already satisfied: requests>=2.1.0 in /usr/lib/python3/dist-packages (from twython) (2.25.1)
[Tue 25 Oct 2022 06:25:54 PM EDT] Installing emoji via pip...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: emoji in /usr/local/lib/python3.9/dist-packages (2.1.0)
Collecting emoji
  Using cached https://www.piwheels.org/simple/emoji/emoji-2.1.0-py3-none-any.whl (212 kB)
  Downloading https://www.piwheels.org/simple/emoji/emoji-2.0.0-py3-none-any.whl (193 kB)
[Tue 25 Oct 2022 06:26:06 PM EDT] Installing spidev via pip...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: spidev in /usr/lib/python3/dist-packages (3.5)
Collecting spidev
  Using cached spidev-3.5.tar.gz (10 kB)
  Using cached spidev-3.4.tar.gz (10 kB)
[Tue 25 Oct 2022 06:26:21 PM EDT] Installing BiblioPixel via pip...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: BiblioPixel in /usr/local/lib/python3.9/dist-packages (3.4.46)
Collecting BiblioPixel
  Using cached BiblioPixel-3.4.46-py3-none-any.whl
  Downloading BiblioPixel-3.4.45.tar.gz (1.9 MB)
Requirement already satisfied: flask in /usr/lib/python3/dist-packages (from BiblioPixel) (1.1.2)
Requirement already satisfied: pyyaml in /usr/local/lib/python3.9/dist-packages (from BiblioPixel) (6.0)
Requirement already satisfied: BiblioPixelTriggers in /usr/local/lib/python3.9/dist-packages (from BiblioPixel) (1.0.2)
Requirement already satisfied: numpy in /usr/local/lib/python3.9/dist-packages (from BiblioPixel) (1.23.4)
Requirement already satisfied: BiblioPixelAnimations in /usr/local/lib/python3.9/dist-packages (from BiblioPixel) (3.20190410.153508)
Requirement already satisfied: loady in /usr/local/lib/python3.9/dist-packages (from BiblioPixel) (1.8.12)
Requirement already satisfied: pyserial in /usr/local/lib/python3.9/dist-packages (from BiblioPixel) (3.5)
Requirement already satisfied: croniter in /usr/local/lib/python3.9/dist-packages (from BiblioPixelTriggers->BiblioPixel) (1.3.7)
Requirement already satisfied: python-dateutil in /usr/local/lib/python3.9/dist-packages (from croniter->BiblioPixelTriggers->BiblioPixel) (2.8.2)
Requirement already satisfied: beautifulsoup4 in /usr/local/lib/python3.9/dist-packages (from loady->BiblioPixel) (4.11.1)
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from loady->BiblioPixel) (2.25.1)
Requirement already satisfied: GitPython in /usr/local/lib/python3.9/dist-packages (from loady->BiblioPixel) (3.1.29)
Requirement already satisfied: wheel in /usr/lib/python3/dist-packages (from loady->BiblioPixel) (0.34.2)
Requirement already satisfied: soupsieve>1.2 in /usr/lib/python3/dist-packages (from beautifulsoup4->loady->BiblioPixel) (2.2.1)
Requirement already satisfied: gitdb<5,>=4.0.1 in /usr/local/lib/python3.9/dist-packages (from GitPython->loady->BiblioPixel) (4.0.9)
Requirement already satisfied: smmap<6,>=3.0.1 in /usr/local/lib/python3.9/dist-packages (from gitdb<5,>=4.0.1->GitPython->loady->BiblioPixel) (5.0.0)
Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil->croniter->BiblioPixelTriggers->BiblioPixel) (1.16.0)
[Tue 25 Oct 2022 06:26:37 PM EDT] Installing pillow via pip...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: pillow in /usr/local/lib/python3.9/dist-packages (9.2.0)
Collecting pillow
  Using cached Pillow-9.2.0-cp39-cp39-manylinux_2_28_aarch64.whl (3.1 MB)
  Downloading Pillow-9.1.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.0 MB)
[Tue 25 Oct 2022 06:26:53 PM EDT] Installing pyserial via pip...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: pyserial in /usr/local/lib/python3.9/dist-packages (3.5)
Collecting pyserial
  Using cached https://www.piwheels.org/simple/pyserial/pyserial-3.5-py2.py3-none-any.whl (90 kB)
  Downloading https://www.piwheels.org/simple/pyserial/pyserial-3.4-py2.py3-none-any.whl (193 kB)
[Tue 25 Oct 2022 06:27:05 PM EDT] Installing pyalsaaudio via pip...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pyalsaaudio
  Using cached pyalsaaudio-0.9.2.tar.gz (599 kB)
Building wheels for collected packages: pyalsaaudio
  Building wheel for pyalsaaudio (setup.py): started
  Building wheel for pyalsaaudio (setup.py): finished with status 'error'
  Running setup.py clean for pyalsaaudio
Failed to build pyalsaaudio
Installing collected packages: pyalsaaudio
    Running setup.py install for pyalsaaudio: started
    Running setup.py install for pyalsaaudio: finished with status 'error'
Encountered a fatal error: Installation of Python package 'pyalsaaudio' failed

This project relies on WiringPi which a dreadfully written piece of software that we don’t have the bandwidth to support. There’s no future in WiringPi because it does too many things (incorrectly). If the project author for lightshowpi abstracts their software from WiringPi and just use standard Linux interfaces with a simple GPIO map getting interface, we can help get the normal device requirements like GPIO/SPI/I2C/PWM going and create bindings for our boards.

This is a general problem with Raspberry Pi based user developed software. A lot of garbage libraries like WiringPi were written and now a lot of projects depend on them. We cannot in good conscience continue the trend just for compatibility sake because we would be putting engineering resources in supporting the wrong way to do things.

Having said that. Is there an alternative project so I can use the Libre computer to do something similar to the lightshowpi?

The modifications to LightshowPi should not be too extensive and I recommend that you contact the authors about supporting generic SPI interface for their pixel driver instead of using WiringPi. You can link them to this thread.

Taking a brief look at their code, they use WiringPi to enable SPI userspace /dev/spidev0.0
The same can be done on our boards via enter a couple of ldto commands. The rest of the stuff should run as is. I’m not sure about the pyalsaaudio dependency failing but that should be the same as Raspberry Pi since it’s just a userspace library.