davisking/dlib

[Bug]: ImportError: /usr/lib/libpango-1.0.so.0: undefined symbol: g_string_free_and_steal

piwawa opened this issue · 2 comments

What Operating System(s) are you seeing this problem on?

Linux (x86-64)

dlib version

19.24.4

Python version

3.10.12

Compiler

gcc 13

Expected Behavior

import dlib no errors

Current Behavior

import dlib
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
Cell In[1], [line 2](vscode-notebook-cell:?execution_count=1&line=2)
      [1](vscode-notebook-cell:?execution_count=1&line=1) import cv2
----> [2](vscode-notebook-cell:?execution_count=1&line=2) import dlib
      [4](vscode-notebook-cell:?execution_count=1&line=4) # 加载 Dlib 的人脸检测器和关键点预测器
      [5](vscode-notebook-cell:?execution_count=1&line=5) detector = dlib.get_frontal_face_detector()

File ~/miniconda3/envs/cu118/lib/python3.10/site-packages/dlib/__init__.py:19
     [16](https://vscode-remote+ssh-002dremote-002bbingo06-0028-6821-5185-0029-002d222-002e193-002e15-002e225.vscode-resource.vscode-cdn.net/home/bingo06/AIGC/AD-NeRF/data_util/~/miniconda3/envs/cu118/lib/python3.10/site-packages/dlib/__init__.py:16)     add_lib_to_dll_path('/usr/local/cuda/lib64/libcudnn.so')
     [17](https://vscode-remote+ssh-002dremote-002bbingo06-0028-6821-5185-0029-002d222-002e193-002e15-002e225.vscode-resource.vscode-cdn.net/home/bingo06/AIGC/AD-NeRF/data_util/~/miniconda3/envs/cu118/lib/python3.10/site-packages/dlib/__init__.py:17)     add_lib_to_dll_path('/usr/local/cuda/lib64/libcudart.so')
---> [19](https://vscode-remote+ssh-002dremote-002bbingo06-0028-6821-5185-0029-002d222-002e193-002e15-002e225.vscode-resource.vscode-cdn.net/home/bingo06/AIGC/AD-NeRF/data_util/~/miniconda3/envs/cu118/lib/python3.10/site-packages/dlib/__init__.py:19) from _dlib_pybind11 import *
     [20](https://vscode-remote+ssh-002dremote-002bbingo06-0028-6821-5185-0029-002d222-002e193-002e15-002e225.vscode-resource.vscode-cdn.net/home/bingo06/AIGC/AD-NeRF/data_util/~/miniconda3/envs/cu118/lib/python3.10/site-packages/dlib/__init__.py:20) from _dlib_pybind11 import __version__, __time_compiled__

ImportError: /usr/lib/libpango-1.0.so.0: undefined symbol: g_string_free_and_steal

Steps to Reproduce

just import it

Anything else?

No response

Warning: this issue has been inactive for 35 days and will be automatically closed on 2024-08-08 if there is no further activity.

If you are waiting for a response but haven't received one it's possible your question is somehow inappropriate. E.g. it is off topic, you didn't follow the issue submission instructions, or your question is easily answerable by reading the FAQ, dlib's official compilation instructions, dlib's API documentation, or a Google search.

Warning: this issue has been inactive for 43 days and will be automatically closed on 2024-08-08 if there is no further activity.

If you are waiting for a response but haven't received one it's possible your question is somehow inappropriate. E.g. it is off topic, you didn't follow the issue submission instructions, or your question is easily answerable by reading the FAQ, dlib's official compilation instructions, dlib's API documentation, or a Google search.