GithubHelp home page GithubHelp logo

Comments (6)

bgilbert avatar bgilbert commented on June 28, 2024

It's a compiler toolchain problem of some sort. Python on Windows is compiled with Microsoft's compiler, and while distutils contains various hacks to permit building extension modules with MinGW, they aren't perfect. A Google search found some other people getting the same errors with other extension modules, but I didn't immediately find a reliable-looking solution to your problem. You may have better luck.

If you can't get the build working, you could install OpenSlide Python with python setup.py install --without-performance to skip the extension module.

from openslide-python.

nashv avatar nashv commented on June 28, 2024

Thank you for your comments Benjamin. It is very unfortunate. I suppose that is the reason Christopher Gohlke supplies pre-compiled package installers for Windows.
Is it possible to do the same with Openslide-Python?

Microsoft's compiler is also present on the system, but for reasons unknown distutils is choosing to use MingGW.
Incidently, openslide-python installed without errors on the same machine in Python 3. So I can use it. But now I am unsure if openslide-python on Python 3 did the performance improvements or not.

from openslide-python.

bgilbert avatar bgilbert commented on June 28, 2024

You can configure distutils to use a particular compiler. If import openslide._convert works for you on Python 3, the performance improvements are available.

Given the difficulty of building extension modules on Windows, perhaps we should indeed provide binary packages. I will investigate whether that is practical.

from openslide-python.

bgilbert avatar bgilbert commented on June 28, 2024

I now have an AppVeyor project to build Python wheels for Windows, so we'll be providing those from now on. I've uploaded wheels for OpenSlide Python 1.1.0 to GitHub and PyPI. pip install should automatically pick them up. Thanks for the report.

from openslide-python.

Vozf avatar Vozf commented on June 28, 2024

Have the same error when trying to install another repo as a dependency with setup.py which contains openslide-python in install_requires

from openslide-python.

bgilbert avatar bgilbert commented on June 28, 2024

@Vozf Are you installing using pip? What platform and what version of Python do you have?

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.