GithubHelp home page GithubHelp logo

Comments (7)

FabianHofmann avatar FabianHofmann commented on June 3, 2024

Indeed! Testing wasn't done on Windows, sorry for that. I think I have to come up with an alternative approach for checking whether a solver are installed. Do you have the glpk installed?

from linopy.

tburandt avatar tburandt commented on June 3, 2024

No, I just recognized that I actually have not😅 However, I have gurobipy installed, which is not utilized/detected on startup. If glpk is required for linopy to run, maybe add it as a dependency as well?

from linopy.

FabianHofmann avatar FabianHofmann commented on June 3, 2024

The solvers are not required, and should be installed by the users, so that's fine. However the command for checking if glpk is installed fails. The error is the same when you write which glpsol in your console, which fails due to which not working on Windows. So probably even when you have glpk installed linopy still raises the same error (if I understand correctly).

from linopy.

tburandt avatar tburandt commented on June 3, 2024

Ahh, that makes sense. For Windows, the keyword where is available, which should do the same trick. I will try to fix the issue tomorrow and make a pull-request

from linopy.

FabianHofmann avatar FabianHofmann commented on June 3, 2024

Great! I made a first attempt in https://github.com/PyPSA/linopy/tree/windows-compat, where I also added update the CI, let's see how that plays out.

from linopy.

tburandt avatar tburandt commented on June 3, 2024

Yes, this one works like a charm so far!

from linopy.

FabianHofmann avatar FabianHofmann commented on June 3, 2024

Thanks for reporting @tburandt

from linopy.

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.