documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Error installing library for Build HAT

Open Gun-neR opened this issue 2 years ago • 7 comments

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

Gun-neR avatar Nov 14 '23 07:11 Gun-neR

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:~ $ 

Gun-neR avatar Nov 14 '23 07:11 Gun-neR

@ghollingworth Is the build hat python library apt package only available for Bookworm currently?

aallan avatar Nov 14 '23 09:11 aallan

Meanwhile, documentation might need updating??

The documentation is correct for Bookworm, the current distribution of Raspberry Pi OS.

aallan avatar Nov 14 '23 09:11 aallan

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 :)

Gun-neR avatar Nov 14 '23 10:11 Gun-neR

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.

aallan avatar Nov 14 '23 10:11 aallan

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!

Gun-neR avatar Nov 14 '23 11:11 Gun-neR

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.

github-actions[bot] avatar Jan 14 '24 02:01 github-actions[bot]

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.

github-actions[bot] avatar Mar 17 '24 02:03 github-actions[bot]

Too soon Github bot, too soon.

aallan avatar Mar 17 '24 18:03 aallan