The BrickPi library is now a pip package, and supports both Trixie and the Pi5.
Although Pi5 support comes with limitations due to the new and higher power requirements.
More info here:
Some of the most advanced projects have been removed, not because they can’t work but because I don’t have the LEGO parts to fully test them.
A BrickPi specific image will come soon (I’m working on it right now).
The BrickPi install script is greatly simplified. And it no longer depends on the pi user.
To install the updated package, the best approach is
git clone https://github.com/DexterInd/BrickPi3.git
cd BrickPi3/Software/Python/brickpi3/scripts
source install_trixie.sh user
the install_trixie.sh script has a couple parameters. The first one is either use (which is also the default) or local.
source install_trixie.sh user will create a virtual environment in $HOME/.venv/brickpi
To activate it, you need to run source ~/.venv/brickpi/bin/activate
source install_trixie.sh local will create a virtual environment in the current working directory
To activate it, you need to run source ./brickpi/bin/activate
if you prefer to install on Trixie lite, then source install_trixie.sh user hardware=only will not install the GUI libraries needed for the one little troubleshooting tool.