-
Notifications
You must be signed in to change notification settings - Fork 15
Update install-librephotos.sh #66
base: main
Are you sure you want to change the base?
Conversation
1.) usermod requires -G parameter |
Even with 20.04 which it says it works, |
@@ -131,6 +131,8 @@ curl -SL https://github.com/LibrePhotos/librephotos-docker/releases/download/0.1 | |||
curl -SL https://github.com/LibrePhotos/librephotos-docker/releases/download/0.1/im2txt.tar.gz | tar -zxC $BASE_DATA/data_models/ | |||
curl -SL https://github.com/LibrePhotos/librephotos-docker/releases/download/0.1/clip-embeddings.tar.gz | tar -zxC $BASE_DATA/data_models/ | |||
mkdir -p ~/.cache/torch/hub/checkpoints/ | |||
# Make sure pip can do it's work | |||
rm /usr/lib/python3.11/EXTERNALLY-MANAGED |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe use rm -f.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also had the issue detailed in #62 - At least for me, this fix alone didn't work. I needed to remove the EXTERNALLY-MANAGED file PRIOR to running the install.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand."EXTERNALLY-MANAGED" does not exist for me and "rm -f /usr/lib/python3.11/EXTERNALLY-MANAGED" avoids the shell script to abort.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't think that's needed. To install packages for python 3.11 we are using --break-system-packages
pip flag. See backend/Dockerfile.
No description provided.