mirror of
https://github.com/iio612/immich-native.git
synced 2026-04-17 12:01:05 +00:00
Add a patch to allow running on Python 3.12
Signed-off-by: Juhyung Park <qkrwngud825@gmail.com>
This commit is contained in:
@@ -6,6 +6,8 @@ This repository provides instructions and helper scripts to install [Immich](htt
|
|||||||
|
|
||||||
* This is tested on Ubuntu 22.04 (on both x86 and aarch64) as the host distro, but it will be similar on other distros.
|
* This is tested on Ubuntu 22.04 (on both x86 and aarch64) as the host distro, but it will be similar on other distros.
|
||||||
|
|
||||||
|
* If your distro is not running Python v3.10 or v3.11 (e.g., Ubuntu 24.04), you may need to force a poetry update. Find `if false` in `install.sh`, and set it to true.
|
||||||
|
|
||||||
* This guide installs Immich to `/var/lib/immich`. To change it, replace it to the directory you want in this README and `install.sh`'s `$IMMICH_PATH`.
|
* This guide installs Immich to `/var/lib/immich`. To change it, replace it to the directory you want in this README and `install.sh`'s `$IMMICH_PATH`.
|
||||||
|
|
||||||
* The [install.sh](install.sh) script currently is using Immich v1.102.3. It should be noted that due to the fast-evolving nature of Immich, the install script may get broken if you replace the `$TAG` to something more recent.
|
* The [install.sh](install.sh) script currently is using Immich v1.102.3. It should be noted that due to the fast-evolving nature of Immich, the install script may get broken if you replace the `$TAG` to something more recent.
|
||||||
|
|||||||
@@ -77,7 +77,11 @@ python3 -m venv $APP/machine-learning/venv
|
|||||||
. $APP/machine-learning/venv/bin/activate
|
. $APP/machine-learning/venv/bin/activate
|
||||||
pip3 install poetry
|
pip3 install poetry
|
||||||
cd machine-learning
|
cd machine-learning
|
||||||
# pip install poetry
|
if false; then # Set this to true to force poetry update
|
||||||
|
# Allow Python 3.12 (e.g., Ubuntu 24.04)
|
||||||
|
sed -i -e 's/<3.12/<4/g' pyproject.toml
|
||||||
|
poetry update
|
||||||
|
fi
|
||||||
poetry install --no-root --with dev --with cpu
|
poetry install --no-root --with dev --with cpu
|
||||||
cd ..
|
cd ..
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user