InvokeAI
InvokeAI copied to clipboard
[bug]: patchmatch failed to load or compile on Arch
Is there an existing issue for this problem?
- [X] I have searched the existing issues
Operating system
Linux
GPU vendor
Nvidia (CUDA)
GPU model
RTX 3060
GPU VRAM
12GB
Version number
4.0.4
Browser
Librewolf 124.0.1-1
Python dependencies
No response
What happened
After clear installation on Arch patchmatch doesn't work
Generate images with a browser-based interface
>> patchmatch.patch_match: ERROR - patchmatch failed to load or compile (/run/media/User/SSD/InvokeAI/.venv/lib/python3.11/site-packages/torch/lib/libgomp-a34b3233.so.1: version `GOMP_5.0' not found (required by /usr/lib/libvtkCommonCore.so.1)).
>> patchmatch.patch_match: INFO - Refer to https://invoke-ai.github.io/InvokeAI/installation/060_INSTALL_PATCHMATCH/ for installation instructions.
[2024-04-16 13:53:11,368]::[InvokeAI]::INFO --> Patchmatch not loaded (nonfatal)
[2024-04-16 13:53:13,161]::[InvokeAI]::INFO --> Using torch device: NVIDIA GeForce RTX 3060
[2024-04-16 13:53:13,475]::[InvokeAI]::INFO --> cuDNN version: 8902
[2024-04-16 13:53:13,562]::[uvicorn.error]::INFO --> Started server process [1099918]
[2024-04-16 13:53:13,562]::[uvicorn.error]::INFO --> Waiting for application startup.
[2024-04-16 13:53:13,562]::[InvokeAI]::INFO --> InvokeAI version 4.0.4
[2024-04-16 13:53:13,562]::[InvokeAI]::INFO --> Root directory = /run/media/digital_dominus/GAMES_SSD/InvokeAI
[2024-04-16 13:53:13,566]::[InvokeAI]::INFO --> Initializing database at /run/media/digital_dominus/GAMES_SSD/InvokeAI/databases/invokeai.db
[2024-04-16 13:53:14,287]::[uvicorn.error]::INFO --> Application startup complete.
[2024-04-16 13:53:14,288]::[uvicorn.error]::INFO --> Uvicorn running on http://127.0.0.1:9090 (Press CTRL+C to quit)
What you expected to happen
I expected that if you install invoke via invoke installer and follow instructions on wiki, everything would work.
How to reproduce the problem
Install Invoke on Arch-based distro i guess?
Additional context
I found some closed issues with mention of
version `GOMP_5.0' not found
But I haven't figured out why they are closed and how to get the patchmatch to work, if someone can explain to me how to fix this I would be very grateful.
Also, before I got the error about GOMP_5.0, I installed a few libraries needed for patchmatch
Discord username
No response
Okay, i found that i can symlink system library as mentioned in this comment, but i think it would be good to add this on wiki if this error is more or less common on arch-based systems, or (if its possible) somehow fix installer.
It looks like there are a few different solutions in that thread. It probably makes sense to just link to that issue in the patchmatch docs, unless someone wants to parse through the various fixes and format them into a coherent article.
Simply rm ~/invokeai/.venv/lib/python3.10/site-packages/torch/lib/libgomp.so.
I also needed to pacman -S fmt vtk hdf5.