From a0737899a9cd827555dd8391699dc0fe70d6ef5b Mon Sep 17 00:00:00 2001 From: Sylvain Date: Tue, 2 Apr 2024 22:47:56 +0200 Subject: [PATCH] Fix venv --- scripts/_common.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 11d2c9c..b539637 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -160,6 +160,7 @@ myynh_install_immich() { chmod 750 "$install_dir/app/machine-learning" chmod -R o-rwx "$install_dir/app/machine-learning" chown -R $app:$app "$install_dir/app/machine-learning" + ynh_exec_as $app $py_app_version -m venv "$install_dir/app/machine-learning/venv" ( # activate the virtual environment @@ -168,7 +169,7 @@ myynh_install_immich() { set -o nounset # add pip - ynh_exec_as $app "$install_dir/bin/python3" -m ensurepip + ynh_exec_as $app "$install_dir/app/machine-learning/venv/bin/python3" -m ensurepip # add poetry ynh_exec_warn_less ynh_exec_as $app "$install_dir/app/machine-learning/venv/bin/pip3" install --upgrade poetry