Closed tburandt closed 2 years ago
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?
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?
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).
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
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.
Yes, this one works like a charm so far!
Thanks for reporting @tburandt
Hi,
first of all for this very promising looking package! However, I find myself unable to run the example, as I get the following error:
I'm using python via anaconda on Windows 11.
Best regards