1 | # The python program |
---|
2 | from platform import python_version |
---|
3 | print(python_version()) |
---|
4 | import sys |
---|
5 | print(sys.prefix) |
---|
6 | import openslide |
---|
7 | |
---|
8 | # Output follows |
---|
9 | |
---|
10 | 3.7.11 |
---|
11 | /Users/dbae/opt/anaconda3/envs/openslide_bug |
---|
12 | Traceback (most recent call last): |
---|
13 | File "/Users/dbae/opt/anaconda3/envs/openslide_bug/lib/python3.7/site-packages/openslide/lowlevel.py", line 46, in <module> |
---|
14 | _lib = cdll.LoadLibrary('libopenslide.0.dylib') |
---|
15 | File "/Users/dbae/opt/anaconda3/envs/openslide_bug/lib/python3.7/ctypes/__init__.py", line 442, in LoadLibrary |
---|
16 | return self._dlltype(name) |
---|
17 | File "/Users/dbae/opt/anaconda3/envs/openslide_bug/lib/python3.7/ctypes/__init__.py", line 364, in __init__ |
---|
18 | self._handle = _dlopen(self._name, mode) |
---|
19 | OSError: dlopen(libopenslide.0.dylib, 6): image not found |
---|
20 | |
---|
21 | During handling of the above exception, another exception occurred: |
---|
22 | |
---|
23 | Traceback (most recent call last): |
---|
24 | File "buggy.py", line 6, in <module> |
---|
25 | import openslide |
---|
26 | File "/Users/dbae/opt/anaconda3/envs/openslide_bug/lib/python3.7/site-packages/openslide/__init__.py", line 35, in <module> |
---|
27 | from openslide import lowlevel |
---|
28 | File "/Users/dbae/opt/anaconda3/envs/openslide_bug/lib/python3.7/site-packages/openslide/lowlevel.py", line 56, in <module> |
---|
29 | raise ImportError("Couldn't locate OpenSlide dylib. " + |
---|
30 | ImportError: Couldn't locate OpenSlide dylib. Is OpenSlide installed? |
---|