This is a placeholder topic for “Display HAT Mini” comments.
A spacious 2.0" (320 x 240) IPS LCD display for Raspberry Pi, with four buttons, an RGB LED and plenty of room for your projects!
Read moreThis is a placeholder topic for “Display HAT Mini” comments.
A spacious 2.0" (320 x 240) IPS LCD display for Raspberry Pi, with four buttons, an RGB LED and plenty of room for your projects!
Read moreCan’t get this to work. Seems there is a conflict between bullseye and bookworm python libraries. python3-spidev can’t be installed.
Hi @David41202. Good to have you on the forums.
Are you using a package manager like PIP or apt-get to install spidev?
If so, would you mind pasting the command and error below?
sudo apt install python3-spidev
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
python3-spidev : Depends: python3 (< 3.8) but 3.9.2-3 is to be installed
E: Unable to correct problems, you have held broken packages.
Ah that’s super weird. That would suggest to me that the Raspberry PI foundations index’s are unaware of spidev and Python 3.9 in the distro you’re using.
You totally nailed it when you were talking about Bullseye and Bookworm having a conflict.
I found this post online that explains the problem well.
python3-spidev
is pulled fromhttps://archive.raspberrypi.org/
Bullseye repository, whilepython3
is pulled fromhttp://raspbian.raspberrypi.org/
Bookworm repository. This is causing a conflict between versions now. Unfortunately there is still no Bookworm repository available fromhttps://archive.raspberrypi.org/
It gets more interesting.
Just last night at 4:35pm Bullseye was updated in the Raspberry PI Index.
This is wild, but it might be that running sudo apt update
magics your problem away. Unlikely, but give it a go?
Depends: python3 (< 3.8)
implies that if the version of python on the system is 3.7 the installer would be chill. You could install it here => Python Release Python 3.7.0 | Python.org
Python’s personal package manager, pip, doesn’t query the Raspberry Pi Archives, instead querying it’s own rainbow tables of packages. It’s frustrating that the apt-get indexing isn’t working as intended, but if you use Pypi on this occasion you might find Spidev comes down without a problem.
pip install spidev
You are correct. Using pip install spidev worked.
Now I have a picture of a cat on the screen, but I need to make it do what I want it to, which is to display some information which is written for an adafruit display hat. It is also st7789 so I hope I can tweak the code to get it working.
Thanks,
David
Hi David,
Glad to hear Pix got you all sorted out!
Keen to see what you make with the screen
We’ll get these amazing notes added to the product page
Liam