GithubHelp home page GithubHelp logo

Windows cdll.LoadLibrary('libopenslide-0.dll') OSError: [WinError 127] The specified procedure could not be found about openslide-python HOT 6 CLOSED

openslide avatar openslide commented on June 28, 2024
Windows cdll.LoadLibrary('libopenslide-0.dll') OSError: [WinError 127] The specified procedure could not be found

from openslide-python.

Comments (6)

simo1427 avatar simo1427 commented on June 28, 2024 4

I had a similar issue, where ctypes gave an error stating that the module could not be located, and I found a way around it, but for that I needed to edit openslide/lowlevel.py. I replaced line 41, which currently is _lib = cdll.LoadLibrary('libopenslide-0.dll') with _lib = cdll.LoadLibrary(ctypes.util.find_library("libopenslide-0.dll")), for which I needed to add import ctypes.util as well. Also something important, the path to the openslide binaries needs to be added to PATH. One caveat: on my system all of this ran after I moved the openslide binaries folder to Program Files and then added the path to them to PATH.

Update: After openslide-python version 1.1.2 I noticed that the errror is now at line 43. If the aforementioned fix is not enough, try with from ctypes.uitl import find_library; _lib = cdll.LoadLibrary(find_library("libopenslide-0.dll"))

from openslide-python.

dawalisi avatar dawalisi commented on June 28, 2024 1

my issue became is
ImportError: attempted relative import with no known parent package

from openslide-python.

jxu avatar jxu commented on June 28, 2024

Not the same as openslide/openslide-bin#18 since this issue is error 127 and "procedure"

from openslide-python.

folterj avatar folterj commented on June 28, 2024

Issue is still present when using pip install - will this make it into release?

from openslide-python.

NeelKanwal avatar NeelKanwal commented on June 28, 2024

Now issue is

ModuleNotFoundError: No module named 'ctypes.uitl'

from openslide-python.

bgilbert avatar bgilbert commented on June 28, 2024

This should be fixed by openslide/openslide-bin#81.

from openslide-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.