pimoroni / unicorn-hat-hd

Python library and examples for Unicorn HAT HD
https://shop.pimoroni.com/products/unicorn-hat-hd
MIT License
173 stars 69 forks source link

Bookworm Support #59

Open calanthe23 opened 1 year ago

calanthe23 commented 1 year ago

I performed an upgrade to bookworm on my raspberry pi that I use to run a Unicorn HAT HD display. Unfortunately, the display stopped working after the upgrade.

I posted here in the forum to get some assistance: https://forums.pimoroni.com/t/unicorn-hat-hd-bookworm-challenges/22454

I mention this post because it contains the full output from the automated Unicorn install script.

Someone mentioned performing a manual install. I went to the git page for the HAT, and did this. Via this process, I could see that it was failing first on the python3-spidev package. I was able to force the install of that package with: sudo pip install spidev --break-system-packages

But the HAT still wouldn't function. After this, I performed an install of the unicornhathd package as follows: sudo pip3 install unicornhathd --break-system-packages

Via these two commands, the HAT now works again and I have not experienced any system issues otherwise.

I hope this information can help to provide an update to make this functional for others in the future.

Thanks!

nettings commented 9 months ago

I'm using the HAT with bookworm successfully. Perform a manual install. Ignore all messages telling you to "sudo pip install FOO" anything, and instead do an "apt search FOO", then install the package you find there. Unfortunately, the examples don't seem to come with those packages, but it's easy to just cut and paste them from git. The only thing I can't get to work yet is the camera example, because there is only picamera2 and there seem to be some API changes I haven't figured out yet.