Skip to content
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

Broken installation with solvers option #127

Open
dylanjmcconnell opened this issue Jun 16, 2023 · 4 comments
Open

Broken installation with solvers option #127

dylanjmcconnell opened this issue Jun 16, 2023 · 4 comments
Labels
wontfix This will not be worked on

Comments

@dylanjmcconnell
Copy link

Hi there - installation with solvers option seems broken. Specifically, running this (as suggested in the docs):

pip install linopy[solvers]

results in an old version of linopy being install (v0.0.13), which cannot be imported (..e.g from linopy import Model raises an error, related to dataclasses)

Installing linopy normally (pip install linopy), results in v0.1.5 being installed. And installing solvers individually / manually results in it working fine, (so I think it's just specifically installing with solver option that is playing up).

@bje-
Copy link

bje- commented Jun 16, 2023

Works here:

$ pip install linopy[solvers] 
Collecting linopy[solvers]
  Downloading linopy-0.1.5-py3-none-any.whl (68 kB)

@FabianHofmann
Copy link
Collaborator

FabianHofmann commented Jun 16, 2023 via email

@dylanjmcconnell
Copy link
Author

Thanks @FabianHofmann - am using linux (Ubuntu) -

in case it's useful - I also tried with a few different python versions (3.11.0 and 3.11.4) and different versions of pip too (22.3.1 and 23.1.2)

@FabianHofmann
Copy link
Collaborator

Thanks I can reproduce it with python 3.11, with python 3.10 it works.
It seems that gurobipy does have requirements which are not compatible with the linopy requirement of xarray >= 2022.9. But it is really hard to say what is creating the conflict, as gurobipy is not open-source and does not show its requirements.
Let's leave the issue open for others until it resolves itself eventually.

@FabianHofmann FabianHofmann added the wontfix This will not be worked on label Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants