Installation on Raspberry Pi OS Lite (bullseye) aborts with an error
See original GitHub issueFirst of all thanks for all your effort! Your work is greatly appreciated!
I’ve been using the luma.led_matrix package for quite a while without any issues on an RPI 3B with Raspberry Pi OS Lite (buster). Now I tried the latest Raspberry Pi OS Lite (bullseye) release (same hardware, setup from scratch). Unfortunately the installation of luma.led_matrix package aborts with an error. Seems there is a problem with ws2812.
Any ideas?
Type of Raspberry Pi
Raspberry Pi 3 Model B V1.2
Linux Kernel version
Linux 5.10.63-v7+ #1459 SMP Wed Oct 6 16:41:10 BST 2021 armv7l GNU/Linux Raspbian GNU/Linux 11 (bullseye)
Python 3.9.2
Expected behaviour
successful installation with
sudo python3 -m pip install --upgrade luma.led_matrix
Actual behaviour
sudo usermod -a -G spi,gpio pi
sudo apt install build-essential python3-dev python3-pip libfreetype6-dev libjpeg-dev libopenjp2-7 libtiff5
sudo -H pip install --upgrade --ignore-installed pip setuptools
runs without error, but …
sudo python3 -m pip install --upgrade luma.led_matrix
gives
ERROR: Failed building wheel for ws2812
see details here: https://pastebin.com/raw/TRquDVmd
Issue Analytics
- State:
- Created 2 years ago
- Comments:48
Top GitHub Comments
So the
ws2812
package’s last release was on Oct 7, 2014: https://pypi.org/project/ws2812/It’s homepage is listed as (a redirect to) https://github.com/pimoroni/unicorn-hat
The documentation there calls it the
unicornhat
package:but also mentions it requires the
rpi_ws281x
library:luma.led_matrix currently requires the following libraries:
I can only find an import refererencing the
rpi_ws281x
library in the source code:I also did a search for
unicornhat
imports in luma.led_matrix but couldn’t find any.This all leads me to believe that the ws2812 library is not needed (fortunately). I created #264 that removes the dependency.
Hello Thijs–Success!!! Your guidance worked and the ZeroSeg is again displaying time and date on the Raspberry Pi with “Bullseye” installed. Thank you so much for taking the time to get this working for me!
One additional question, if I may: After making your suggested changes to setup.cnfg, I ran
pip install -e .
again and got the following:Due to the above reference to “permission denied,” I then tried
sudo pip install -e .
and it worked. My only concern is the concluding warning of that successful output:WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Does this pose a problem for future use of the system package manager?
Again, thank you very much for your excellent support!