Ticket #63492: buggy.py_with_output

File buggy.py_with_output, 1.3 KB (added by DavidBAEpstein, 3 years ago)
Line 
1# The python program
2from platform import python_version
3print(python_version())
4import sys
5print(sys.prefix)
6import openslide
7
8# Output follows
9
103.7.11
11/Users/dbae/opt/anaconda3/envs/openslide_bug
12Traceback (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)
19OSError: dlopen(libopenslide.0.dylib, 6): image not found
20
21During handling of the above exception, another exception occurred:
22
23Traceback (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.  " +
30ImportError: Couldn't locate OpenSlide dylib.  Is OpenSlide installed?