megvii-research / CADDM

Official implementation of ID-unaware Deepfake Detection Model
Apache License 2.0
135 stars 19 forks source link

Problem with jpegpy #44

Open unintendedly opened 3 months ago

unintendedly commented 3 months ago

After running make , with _jpegpy.so created ,it produces: In file included from _jpegpy.cc:6: pybind11/pybind11.h: In destructor ‘pybind11::gil_scoped_release::~gil_scoped_release()’: pybind11/pybind11.h:1611:47: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1611 | PyThread_set_key_value(key, tstate); | ^ In file included from /home/anaconda3/envs/general/include/python3.9/Python.h:131, from pybind11/common.h:99, from pybind11/pytypes.h:12, from pybind11/cast.h:13, from pybind11/attr.h:13, from pybind11/pybind11.h:36, from _jpegpy.cc:6: /home/anaconda3/envs/general/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~

But running python test.py, it produces: File "/home/CADDM-master/lib/data_preprocess/utils/jpegpy/jpegpy.py", line 5, in <module> from . import _jpegpy ImportError: /home/CADDM-master/lib/data_preprocess/utils/jpegpy/_jpegpy.so: undefined symbol: jpeg_mem_src

Hoping to get a reply.Thanks

Kim-YH-handong commented 2 months ago

I am getting the same error!