Yuukiy / JavSP

汇总多站点数据的AV元数据刮削器
GNU General Public License v3.0
3.03k stars 257 forks source link

slimeface doesn't work on Debian 12, Python 3.11 #384

Open glyh opened 1 month ago

glyh commented 1 month ago

确认问题在:./javsp/cropper/slimeface_crop.py:5 from slimeface import detectRGB

Originally posted by @qicfan in https://github.com/Yuukiy/JavSP/issues/383#issuecomment-2378505486

glyh commented 1 month ago

环境:

glyh commented 1 month ago

这个库内部是libfacedetect,可以请你构建一下这个项目里的样例吗?

glyh commented 1 month ago
$ ldd libfacedetection.so
    linux-vdso.so.1 (0x00007daab4bff000)
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007daab4800000)
    libm.so.6 => /usr/lib/libm.so.6 (0x00007daab4a8e000)
    libgomp-a34b3233.so.1.0.0 => /home/lyh/.cache/pypoetry/virtualenvs/javsp-6wPrERix-py3.12/lib/python3.12/site-packages/slimeface/./../slimeface.libs/libgomp-a34b3233.so.1.0.0 (0x00007daab4200000)
    libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007daab47d2000)
    libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007daab4a89000)
    libc.so.6 => /usr/lib/libc.so.6 (0x00007daab45e1000)
    /usr/lib64/ld-linux-x86-64.so.2 (0x00007daab4c01000)
$ ldd slimeface.cpython-312-x86_64-linux-gnu.so 
    linux-vdso.so.1 (0x0000721af1c52000)
    libfacedetection.so.v0.0.3 => /home/lyh/.cache/pypoetry/virtualenvs/javsp-6wPrERix-py3.12/lib/python3.12/site-packages/slimeface/./libfacedetection.so.v0.0.3 (0x0000721af1bc9000)
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x0000721af1800000)
    libm.so.6 => /usr/lib/libm.so.6 (0x0000721af1aac000)
    libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x0000721af17d2000)
    libpthread.so.0 => /usr/lib/libpthread.so.0 (0x0000721af1aa7000)
    libc.so.6 => /usr/lib/libc.so.6 (0x0000721af15e1000)
    libgomp-a34b3233.so.1.0.0 => /home/lyh/.cache/pypoetry/virtualenvs/javsp-6wPrERix-py3.12/lib/python3.12/site-packages/slimeface/./../slimeface.libs/libgomp-a34b3233.so.1.0.0 (0x0000721af1000000)
    /usr/lib64/ld-linux-x86-64.so.2 (0x0000721af1c54000)
glyh commented 1 month ago

86c4c9f 现在应该只要不使用人脸识别就不会报错了

qicfan commented 1 month ago

你可以整个虚拟机试试,编译这玩意有点超出我能力范围啦。

glyh commented 1 month ago

可以麻烦看下master会不会报错吗

qicfan commented 1 month ago

可以麻烦看下master会不会报错吗

好了,可以运行了。

glyh commented 1 month ago

顺便,我刚刚触发了下docker workflow: https://github.com/Yuukiy/JavSP/actions/runs/11067122398

如果有需求的话可以用docker镜像: https://github.com/Yuukiy?tab=packages&repo_name=JavSP