InvokeAI icon indicating copy to clipboard operation
InvokeAI copied to clipboard

[bug]: libssl conflict cause Patchmatch not loaded

Open ebziw opened this issue 3 years ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

OS

Linux

GPU

cuda

VRAM

No response

What happened?

Centos 9 upstream. Did everything by the toturial. Manual python import returns no error. Did a little digging, found it was caused by a dynamic lib loader in patch_match.py.

PMLIB = ctypes.CDLL(osp.join(osp.dirname(file), pypatchmatch_lib))

causes an exception, code here:

Python 3.9.15 | packaged by conda-forge | (main, Nov 22 2022, 15:55:03) [GCC 10.4.0] on linux Type "help", "copyright", "credits" or "license" for more information.

import ctypes; ctypes.CDLL('/home/liyong3/invokeAI/installer_files/env/envs/invokeai/lib/python3.9/site-packages/patchmatch/libpatchmatch.so'); Traceback (most recent call last): File "", line 1, in File "/home/liyong3/invokeAI/installer_files/env/envs/invokeai/lib/python3.9/ctypes/init.py", line 374, in init self._handle = _dlopen(self._name, mode) OSError: /lib64/libldap.so.2: undefined symbol: EVP_md2, version OPENSSL_3.0.0

Search engines returns it is caused by the late installed openssl 3.0.0 which lacks some function the pre-installed version has. However, tried a few tricks found online, no luck.

Screenshots

No response

Additional context

No response

Contact Details

No response

ebziw avatar Dec 08 '22 11:12 ebziw