Skip to content
This repository has been archived by the owner on Jul 27, 2024. It is now read-only.

Update install-librephotos.sh #66

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fastbone
Copy link

@fastbone fastbone commented Mar 5, 2024

No description provided.

@fastbone
Copy link
Author

fastbone commented Mar 5, 2024

1.) usermod requires -G parameter
2.) rm /usr/lib/python3.11/EXTERNALLY-MANAGED needs to be deleted in order to install python requirements

@ntai
Copy link

ntai commented Mar 18, 2024

Even with 20.04 which it says it works, usermod is incorrect, and this PR should fix.

@@ -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
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe use rm -f.

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.

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.

Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants