libopenslide.so.0: cannot open shared object file: No such file or directory
j-sieger opened this issue · 1 comments
Context
Issue type (bug report or feature request): bug
Operating system (e.g. Amazon linux):
OpenSlide Python version (openslide.__version__
): Latest 3.4.1
OpenSlide version (openslide.__library_version__
):
Details
I could same issue as been raised by people but there is no solution yet.
File "/home/ec2-user/efs/apps/pathology/lib/configs/segmentation_nuclei.py", line 17, in <module>
import lib.infers
File "/home/ec2-user/efs/apps/pathology/lib/infers/__init__.py", line 12, in <module>
from .deepedit_nuclei import DeepEditNuclei
File "/home/ec2-user/efs/apps/pathology/lib/infers/deepedit_nuclei.py", line 16, in <module>
from lib.transforms import AddClickGuidanced, FilterImaged, LoadImagePatchd, PostFilterLabeld
File "/home/ec2-user/efs/apps/pathology/lib/transforms.py", line 16, in <module>
import openslide
File "/home/ec2-user/.local/lib/python3.9/site-packages/openslide/__init__.py", line 35, in <module>
from openslide import lowlevel
File "/home/ec2-user/.local/lib/python3.9/site-packages/openslide/lowlevel.py", line 60, in <module>
_lib = cdll.LoadLibrary('libopenslide.so.0')
File "/opt/conda/lib/python3.9/ctypes/__init__.py", line 460, in LoadLibrary
return self._dlltype(name)
File "/opt/conda/lib/python3.9/ctypes/__init__.py", line 382, in __init__
self._handle = _dlopen(self._name, mode)
OSError: libopenslide.so.0: cannot open shared object file: No such file or directory
I cannot use sudo apt
command as it is AMI and there is no package when i tried to run by 'yum'.
and when i install openslide with pip
libraries are missing.
I am not able to find libopenslide.so.0` any where. So i am not able to find any work around also.
Please give some solution to solve this issue. may be permanent or temporary solution.
OpenSlide Python requires OpenSlide. If it's not packaged in your distribution, you'll need to install from source.