Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Openslide python import error

I am trying to use openslide's python bindings (http://openslide.org/download/) and have tried just about everything with no success in being able to import openslide to Python 2.7. Here's my error message:

    >>> import openslide
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "/usr/local/lib/python2.7/site-packages/openslide/__init__.py", line 29, in <module>
    from openslide import lowlevel
    File "/usr/local/lib/python2.7/site-packages/openslide/lowlevel.py", line 52, in <module>
    raise ImportError("Couldn't locate OpenSlide library")
    ImportError: Couldn't locate OpenSlide library

I have pip install openslide-python successfully, and it seems like it is being recognized by the recognition of line 29 and 52 in packages/openslide.

Any suggestions on how to proceed?

like image 884
Hunter Jackson Avatar asked Oct 30 '22 07:10

Hunter Jackson


1 Answers

You need to install the openslide library and dependencies, then the python package. Read for instructions for your OS here:

http://openslide.org/download/

like image 108
marbel Avatar answered Nov 15 '22 05:11

marbel