WonderLandxD / sdpc-for-python

Python library for processing whole slide images (WSIs) in sdpc format
33 stars 7 forks source link

OSError: XXXXXXX: cannot open shared object file: No such file or directory #14

Open HaiyuGong opened 6 months ago

HaiyuGong commented 6 months ago

Hi, Thank you very much for developing the Python module for processing whole slide images (WSIs) in .sdpc format. When I run import sdpc, I encountered the following error:

OSError: libjpeg.so.8: cannot open shared object file: No such file or directory

I followed the instructions in Issues 2, and found libjpeg.so.8 in the directory /usr/local/miniconda3/lib/python3.8/site-packages/sdpc/LINUX/jpeg/. So, I add the following code in the last line of ~/.bashrc, and ran source ~/.bashrc. The 2 other pathes were added in case of other similar errors.

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/miniconda3/lib/python3.8/site-packages/sdpc/LINUX/:/usr/local/miniconda3/lib/python3.8/site-packages/sdpc/LINUX/jpeg/:/usr/local/miniconda3/lib/python3.8/site-packages/sdpc/LINUX/ffmpeg/

But, I encountered another similar error:

OSError: libnuma.so.1: cannot open shared object file: No such file or directory

I didn't find libnuma.so.1 in the folder named sdpc.

WonderLandxD commented 5 months ago

Hi, maybe you can try to use the old version of the compiled file to see if it works. https://cloud.tsinghua.edu.cn/f/ff9288a0533d489584da/?dl=1 This requires you to replace all the files in the LINUX folder of sdpc library. (#12)

qin1114 commented 1 month ago

Hi, I've replace all the files in the LINX folder of sdpc library, but still found error when import sdpc: Traceback (most recent call last): File "", line 1, in File "/root/miniconda/envs/clam/lib/python3.7/site-packages/sdpc/init.py", line 1, in from sdpc.Sdpc import Sdpc File "/root/miniconda/envs/clam/lib/python3.7/site-packages/sdpc/Sdpc.py", line 37, in so = ctypes.CDLL(soPath) File "/root/miniconda/envs/clam/lib/python3.7/ctypes/init.py", line 364, in init self._handle = _dlopen(self._name, mode) OSError: libDecodeHevc.so: cannot open shared object file: No such file or directory

I find libDecodeHevc.so file in "/root/miniconda/envs/clam/lib/python3.7/site-packages/sdpc/LINUX/libDecodeHevc.so", but I don't know why the system can't find file.