New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error in importing openlide #63
Comments
Not sure what collab is but it looks to me like the actual openslide library is not installed,only the python wrappe.
Most of the openslide functionality is implemented in a C library which does not get installed as part of 'pip install openslide'.
…On October 24, 2019 12:48:21 AM EDT, saisriteja ***@***.***> wrote:
I have tried to install in opensLide in collab so I got the below
error.....can anyone help me with this....
---------------------------------------------------------------------------
OSError Traceback (most recent call
last)
<ipython-input-9-bb94c1b557c7> in <module>()
----> 1 import openslide
3 frames
/usr/lib/python3.6/ctypes/__init__.py in __init__(self, name, mode,
handle, use_errno, use_last_error)
346
347 if handle is None:
--> 348 self._handle = _dlopen(self._name, mode)
349 else:
350 self._handle = handle
OSError: libopenslide.so.0: cannot open shared object file: No such
file or directory
|
I also have a problem when I import openSlide File "", line 1, in File "C:\Users\China\Anaconda3\envs\machine\lib\site-packages\openslide_init_.py", line 29, in File "C:\Users\China\Anaconda3\envs\machine\lib\site-packages\openslide\lowlevel.py", line 41, in File "C:\Users\China\Anaconda3\envs\machine\lib\ctypes_init_.py", line 426, in LoadLibrary File "C:\Users\China\Anaconda3\envs\machine\lib\ctypes_init_.py", line 348, in init OSError: [WinError 193] %1 n’est pas une application Win32 valide |
See workaround here: #59 (comment) |
Closing to limit the proliferation of tickets about SO/DLL search path issues. |
@bgilbert it seems a number of us are having this issue- is there an open ticket for this already, or is it a problem with the underlying openslide library/install, or are you just not sure what's causing it? It's a consistent problem for our team even with the workaround and it would be really helpful if we could figure out what's causing it. |
@saisriteja @markemus I'm wondering if you have been able to run openslide in colab. The work around mentioned does not work. Installing openslide directly through pip install, and through conda doesn't seem to work either. Any ideas? |
@ejri do you have the openslide-tools library installed? I don't think pip install installs that. |
@markemus yeah I install openslide tools seprately, openslide-tools gets installed without issues. pip installing openslide gives out this error:
and opening any of the files within the cloned git hub repo (from git cloning the openslide-python repo),
Edit: just in case someone ran into this same above error. supertools needs to be upgraded. This works:
|
I have tried to install in opensLide in collab so I got the below error.....can anyone help me with this....
OSError Traceback (most recent call last)
in ()
----> 1 import openslide
3 frames
/usr/lib/python3.6/ctypes/init.py in init(self, name, mode, handle, use_errno, use_last_error)
346
347 if handle is None:
--> 348 self._handle = _dlopen(self._name, mode)
349 else:
350 self._handle = handle
OSError: libopenslide.so.0: cannot open shared object file: No such file or directory
The text was updated successfully, but these errors were encountered: