-
Notifications
You must be signed in to change notification settings - Fork 183
Description
Context
Issue type (bug report or feature request): bug report
Operating system (e.g. Fedora 24, Mac OS 10.11, Windows 10): Windows 10
Platform (e.g. 64-bit x86, 32-bit ARM): x86_64
OpenSlide Python version (openslide.__version__
): 1.1.1
OpenSlide version (openslide.__library_version__
): 3.4.1
Slide format (e.g. SVS, NDPI, MRXS): SVS
Details
I get the following error even though OpenSlide windows binary /bin is in my PATH.
>>> import openslide
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\jxu\AppData\Roaming\Python\Python36\site-packages\openslide\__init__.py", line 29, in <module>
from openslide import lowlevel
File "C:\Users\jxu\AppData\Roaming\Python\Python36\site-packages\openslide\lowlevel.py", line 41, in <module>
_lib = cdll.LoadLibrary('libopenslide-0.dll')
File "C:\Program Files\Python36\lib\ctypes\__init__.py", line 426, in LoadLibrary
return self._dlltype(name)
File "C:\Program Files\Python36\lib\ctypes\__init__.py", line 348, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 127] The specified procedure could not be found
Maybe I misunderstood what "system search path" is. From https://docs.python.org/3/library/ctypes.html#finding-shared-libraries
On Windows,
find_library()
searches along the system search path
The only thing that works is running python interpreter from /bin folder.
https://openslide-users.andrew.cmu.narkive.com/uwZnTDGx/winerror-127-the-specified-procedure-could-not-be-found