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

Update install-librephotos.sh#66

Open
fastbone wants to merge 1 commit into
LibrePhotos:mainfrom
fastbone:patch-1
Open

Update install-librephotos.sh#66
fastbone wants to merge 1 commit into
LibrePhotos:mainfrom
fastbone:patch-1

Conversation

@fastbone

@fastbone fastbone commented Mar 5, 2024

Copy link
Copy Markdown

No description provided.

@fastbone

fastbone commented Mar 5, 2024

Copy link
Copy Markdown
Author

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

@ntai

ntai commented Mar 18, 2024

Copy link
Copy Markdown

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

Comment thread install-librephotos.sh
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
Copy Markdown

Choose a reason for hiding this comment

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

maybe use rm -f.

Copy link
Copy Markdown

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.

Copy link
Copy Markdown

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
Copy Markdown
Member

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