How to install openslide python in windows

Kavitha Raghupathy brkavitha17 at gmail.com
Sat Nov 8 10:57:31 EST 2014


Hi
I installed openslide 3.4.0 and openslide-python. When i try to run
deepzoom_tile.py i get the following messages

======================================================================================
Traceback (most recent call last):
  File
"F:\Python342\Scripts\openslide-python-1.0.1\examples\deepzoom\deepzoom_tile.py",
line 26, in <module>
    from openslide import open_slide, ImageSlide
  File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2226, in
_find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1191, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1161, in
_load_backward_compatible
  File
"F:\Python342\lib\site-packages\openslide_python-1.0.1-py3.4.egg\openslide\__init__.py",
line 29, in <module>
    from openslide import lowlevel
  File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2226, in
_find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1191, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1161, in
_load_backward_compatible
  File
"F:\Python342\lib\site-packages\openslide_python-1.0.1-py3.4.egg\openslide\lowlevel.py",
line 39, in <module>
    _lib = cdll.LoadLibrary('libopenslide-0.dll')
  File "F:\Python342\lib\ctypes\__init__.py", line 429, in LoadLibrary
    return self._dlltype(name)
  File "F:\Python342\lib\ctypes\__init__.py", line 351, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found
>>>
=================================================================
My windows os is 64-bit.. I downloaded openslide-win64-20140125 , unzipped
and copied all the dll files in C:/windows/system32/

is there any simple program to check if openslide is installed?


Thanks,
Kavitha.

On Sat, Nov 8, 2014 at 10:49 AM, Benjamin Gilbert <bgilbert at cs.cmu.edu>
wrote:

> On 11/07/2014 11:42 PM, Kavitha Raghupathy wrote:
> > I'm using windows 8. I've downloaded openslide 3.4.0 tar.gz and
> > openslide-python 1.0.1 tar.gz .I ve python 3.4.2 version. installed PIL.
> > when i try this command pip install openslide 3.4.0 tar.gz it gives me
> > error. I've attached the log file also. Please help me resolve this.
>
> Hi Kavitha,
>
> You need to install both OpenSlide and OpenSlide Python.  "pip install
> openslide-python" will take care of the Python part.  For OpenSlide
> itself, the easiest thing to do on Windows is download a binary package
> from our website:
>
>      http://openslide.org/download/#windows-binaries
>
> The "bin" directory from that package must be in Python's search path
> for loading DLLs.  More info:
>
>      http://msdn.microsoft.com/en-us/library/7d83bc18.aspx
>
> --Benjamin Gilbert
>
> _______________________________________________
> openslide-users mailing list
> openslide-users at lists.andrew.cmu.edu
> https://lists.andrew.cmu.edu/mailman/listinfo/openslide-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/openslide-users/attachments/20141108/674d1cf2/attachment.html 


More information about the openslide-users mailing list