InvokeAI icon indicating copy to clipboard operation
InvokeAI copied to clipboard

[bug]: Update Linux installer documentation to include necessary dependencies

Open ebr opened this issue 3 years ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

OS

Linux

GPU

cuda

VRAM

No response

What happened?

A user reports in Discord:

image

python3-opencv requires the following libraries to be present:

apt update && apt install -y libglib2.0-0 libgl1-mesa-glx

we should either add this to the install script (but that will require interactivity and sudo from the user), or the docs

first investigate if other solutions also exist that don't require these libraries. maybe python-opencv-headless can be used, unless python3-opencv is a transitive dependency.

Screenshots

No response

Additional context

No response

Contact Details

No response

ebr avatar Dec 14 '22 06:12 ebr

Theoretically possible, but not feasible with the amount of package managers out there.

You'd have to have a list of package managers like pacman, dnf, dpkg, portage and check which one is present. Depending on that use the one present, search for the needed packages (they are not always named the same for every Distro) and assemble a command to install them.

Thats a lot of room for error and mistakes, i feel like it would be better to just list the dependencies and let the user install them manually.

SammCheese avatar Dec 14 '22 06:12 SammCheese

@SammCheese yes, agreed. Besides, throwing unexpected OS package installation at the user is kind of icky. We'll take the documentation route.

ebr avatar Dec 15 '22 09:12 ebr