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

Trouble Installing Locally #61

Open
cajunjoel opened this issue Jun 20, 2023 · 2 comments
Open

Trouble Installing Locally #61

cajunjoel opened this issue Jun 20, 2023 · 2 comments

Comments

@cajunjoel
Copy link

After some time running librephotos with 40k images on Docker on Unraid, and with the poor performance on (my untuned unraid) I decided to fire this up on my desktop with the librephotos-linux project. It's.... not entirely working.

I need to delve deeper, but I see the following:

  1. The install-librephotos.sh script added an apt source to my system and tried to install postgresql-13. Aside from the fact that it failed to install the GPG key, and that PostgreSQL was already on my system, I view this as 100% wrong. I accept that I will need to install a bunch of packages to my system because Librephotos is rich and powerful. I prefer that they be listed out in a separate file and have the installer check for them (and validate versions) instead of blindly installing them. But editing my apt sources? That's just bad behavior. I've invited you into my house. Don't rearrange the furniture why you are here. :)

  2. When installing libjpeg-turbo8-dev or libjpeg62-turbo-dev, it only handles Ubuntu and Debian. I added Linuxmint as an alternative to Ubuntu.

  3. The install-librephotos.sh overwrote /etc/nginx/nginx.conf. That's really bad. Don't do that. Make a file in /etc/nginx/sites-available and symlink it to /etc/nginx/sites-enabled.

  4. Something is not running. Port 3000 is not responding, but I don't know what service is meant to respond on that. Maybe it's related to the error ERROR: No matching distribution found for torch==1.7.1+cpu that I got at some point.

I'll keep poking at this, line by line, but I'm afraid that this is going to be quite a challenge to get running.

@cajunjoel
Copy link
Author

cajunjoel commented Jun 21, 2023

Further information. Installation of torch==1.7.1+cpu and torchvision==0.8.2+cpu fails because I am on Python 3.10 (and 3.9 is not available) and there is no installation candidate. This occurs at

pip3 install torch==1.7.1+cpu torchvision==0.8.2+cpu -f https://download.pytorch.org/whl/torch_stable.html

The closest version available is torch==1.11.0+cpu and torchvision==0.12.0+cpu. I'm sure there are breaking changes between those two versions but I'll try using them anyway.

@derneuere
Copy link
Member

derneuere commented Jun 21, 2023

You could also look here to check what is different between versions:
https://github.com/LibrePhotos/librephotos-docker/blob/48284324122aa512ae287371f51f0fe25aef3060/backend/base/Dockerfile#L70

It looks like we are using pytorch 2.0.1 at the moment :)

The installation script is also really basic at the moment, feel free to add your suggestions with a pull request.

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

No branches or pull requests

2 participants