rembg icon indicating copy to clipboard operation
rembg copied to clipboard

undefined symbol: libiconv

Open prodemmi opened this issue 3 years ago • 2 comments

Describe the bug When run file that have remove function;I got this error. In Ubuntu i dont get any error but error is on CentOS 7.

Expected behavior File has to run without any error.

Error Traceback (most recent call last): File "*/app.py", line 4, in <module> from rembg import remove File "*/env/lib/python3.8/site-packages/rembg/__init__.py", line 5, in <module> from .bg import remove File "*/env/lib/python3.8/site-packages/rembg/bg.py", line 6, in <module> import onnxruntime as ort File "*/env/lib/python3.8/site-packages/onnxruntime/__init__.py", line 34, in <module> raise import_capi_exception File "*/env/lib/python3.8/site-packages/onnxruntime/__init__.py", line 23, in <module> from onnxruntime.capi._pybind_state import get_all_providers, get_available_providers, get_device, set_seed, \ File "*/env/lib/python3.8/site-packages/onnxruntime/capi/_pybind_state.py", line 22, in <module> from .onnxruntime_pybind11_state import * # noqa ImportError: /usr/local/lib64/libstdc++.so.6: undefined symbol: libiconv

OS Version: CentOS 7

Rembg version: v2.0.21

prodemmi avatar Aug 05 '22 17:08 prodemmi

try this:

yum install glibc-devel

danielgatis avatar Aug 06 '22 06:08 danielgatis

I tried and this is the output: Package glibc-devel-2.17-326.el7_9.x86_64 already installed and latest version

prodemmi avatar Aug 06 '22 09:08 prodemmi