openhab / openhabian

openHABian - empowering the smart home, for Raspberry Pi and Debian systems
https://community.openhab.org/t/13379
ISC License
818 stars 251 forks source link

Bookworm ready python install in venv #1867

Closed thicknesss closed 1 month ago

thicknesss commented 1 month ago

Hi all, because bookworm enforeces virtual enviroments for python we need to make some changes in below snippet:

https://github.com/openhab/openhabian/blob/9d6fbd6ecc8a5a042ad6af61392a31053a6307c3/functions/packages.bash#L444-L445

The venv must be prepared: python -m venv --system-site-packages env and activated source env/bin/activate before PIP is used to install the requirements. for the package a pr is made to update the template.service

Brgds André

mstormi commented 1 month ago

Fixed-By: #1869