Error installing library for Build HAT
New install of Legacy OS on RPi4 Ran all the apt-get updates Unable to install library for Build Hat (LEGO) using directions in documentation...
Installing the Python Library
Install the Build HAT Python library. Open a Terminal window and type,
$ sudo apt install python3-build-hat
pi@piLEGOHAT:~ $ sudo apt install python3-build-hatpip3 Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package python3-build-hatpip3
A little more Googling and found this... and it seems to work.
Says it is installed, but have yet to test. (EDIT works fine :) )
Meanwhile, documentation might need updating??
pi@piLEGOHAT:~ $ sudo pip3 install buildhat
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting buildhat
Downloading https://www.piwheels.org/simple/buildhat/buildhat-0.5.12-py3-none-any.whl (57 kB)
|████████████████████████████████| 57 kB 178 kB/s
Requirement already satisfied: gpiozero in /usr/lib/python3/dist-packages (from buildhat) (1.6.2)
Requirement already satisfied: pyserial in /usr/lib/python3/dist-packages (from buildhat) (3.5b0)
Installing collected packages: buildhat
Successfully installed buildhat-0.5.12
pi@piLEGOHAT:~ $
@ghollingworth Is the build hat python library apt package only available for Bookworm currently?
Meanwhile, documentation might need updating??
The documentation is correct for Bookworm, the current distribution of Raspberry Pi OS.
Meanwhile, documentation might need updating??
The documentation is correct for Bookworm, the current distribution of Raspberry Pi OS.
Doesn't mention that fact, just says compatible with all 40 pin GPIO based RPis. So yet another thing that might need to be added to the docs. Too many remaining issues with Bookworm and legacy codes, etc.... IE, I couldn't even get connected to my headless setup with VNC so I went back to legacy and it just worked.
Doesn't matter much anymore to me. My issue and solution is at least now searchable... I couldn't find anything specifically related to my error msg, but only stumbled upon the other/older? method of install thanks to some GoogleFoo :)
Reopening issue. Either we need a NOTE block for legacy in the docs to say to use pip, or we need an apt package for the library for Bullseye.
No problem... wasn't sure who should close it, and I did kind of open it a bit prematurely (should have trusted my Googlefoo more , hah! ) but I had left it for the next person who, like me, couldn't find a solution in the relevant locations.
It is now in your hands. Thanks!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Too soon Github bot, too soon.