Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notes on what is required to update to Pi 5/Bookworm/picamera2 #78

Open
sumi1194 opened this issue Aug 22, 2024 · 2 comments
Open

Notes on what is required to update to Pi 5/Bookworm/picamera2 #78

sumi1194 opened this issue Aug 22, 2024 · 2 comments
Labels
cyclops for cyclops version with pi5 and bookworm os

Comments

@sumi1194
Copy link
Collaborator

Creating issue to capture change points necessary for upgrading to Raspberry Pi 5/Bookworm

@sumi1194
Copy link
Collaborator Author

sumi1194 commented Aug 22, 2024

Setting up virtual environments

Bookworm requires a virtual environment for pip installation packages. sudo pip is no longer allowed. The file structure is also different so set up for virtual environments is slightly changed.

Install virtual environment packages
sudo apt install virtualenv virtualenvwrapper

Add to bash file:

echo -e "\n# Virtual environment setup" >> ~/.bashrc
echo "export WORKON_HOME=~/.virtualenvs" >> ~/.bashrc
echo "export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3" >> ~/.bashrc
echo "source /usr/share/virtualenvwrapper/virtualenvwrapper.sh" >> ~/.bashrc
source ~/.bashrc

Restart terminal

Create new virtualenv:
mkvirtualenv --system-site-packages <venv>

This is espeically important if you are using libcamera (picamera), since it is not yet on pypi

@sumi1194
Copy link
Collaborator Author

sumi1194 commented Aug 22, 2024

GPIO Pins

RPI.GPIO and wiringpi are no longer supported on raspberry pi 5. The recommended GPIO package is gpiozero.
Documentation: https://gpiozero.readthedocs.io/en/stable/index.html

@sumi1194 sumi1194 changed the title Updates for Raspberry Pi 5/Bookwork Updates for Raspberry Pi 5/Bookworm Sep 12, 2024
@iingram iingram added software and removed software labels Sep 17, 2024
@kgarwoodsdzwa kgarwoodsdzwa added the cyclops for cyclops version with pi5 and bookworm os label Sep 20, 2024
@iingram iingram changed the title Updates for Raspberry Pi 5/Bookworm Notes on what is required to update to Pi 5/Bookworm/picamera2 Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cyclops for cyclops version with pi5 and bookworm os
Projects
None yet
Development

No branches or pull requests

3 participants