PyPSA / pypsa-eur

PyPSA-Eur: A Sector-Coupled Open Optimisation Model of the European Energy System
https://pypsa-eur.readthedocs.io/
345 stars 242 forks source link

Broken scip 9.2.0 #1409

Closed coroa closed 4 days ago

coroa commented 1 week ago

Checklist

Describe the Bug

We should maybe add a temporary upper bound to scip, due to https://github.com/conda-forge/scipoptsuite-feedstock/issues/80

scip <=9.1.1

Error Message

INFO:linopy.model: Solve problem using Scip solver
ERROR:root:Uncaught exception
Traceback (most recent call last):
  File "/home/coroa/src/pypsa-eur/.snakemake/scripts/tmp7ko57ga7.cluster_network.py", line 395, in <module>
    n_clusters_c = distribute_n_clusters_to_countries(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/coroa/src/pypsa-eur/.snakemake/scripts/tmp7ko57ga7.cluster_network.py", line 232, in distribute_n_clusters_to_countries
    m.solve(solver_name=solver_name)
  File "/home/coroa/.local/conda/envs/pypsa-eur/lib/python3.12/site-packages/linopy/model.py", line 1050, in solve
    assert solver_name in available_solvers, f"Solver {solver_name} not installed"
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Solver scip not installed
fneum commented 5 days ago

fixed already?

coroa commented 4 days ago

Yes, they removed the prematurely uploaded scip 9.2.0 update from the conda-forge channel again:

❯ mamba repoquery search scip
Getting repodata from channels...

conda-forge/noarch                                 @   6.4MB/s  2.7s
conda-forge/linux-64                               @   7.2MB/s  5.4s
 Name Version Build                   Channel     Subdir     
──────────────────────────────────────────────────────────────
 scip 9.1.1   h445098e_0 (+ 1 builds) conda-forge conda-forge
 scip 9.1.0   h4327a77_0              conda-forge conda-forge
 scip 9.0.1   hded5f35_0              conda-forge conda-forge
 scip 9.0.0   h0857b24_0 (+ 5 builds) conda-forge conda-forge
 scip 8.1.0   h41ab4b8_7 (+ 5 builds) conda-forge conda-forge
 scip 8.0.4   h4a32fe0_0              conda-forge conda-forge
 scip 8.0.3   h13e48e5_0 (+ 2 builds) conda-forge conda-forge
 scip 8.0.2   h666ace5_1 (+ 1 builds) conda-forge conda-forge
 scip 8.0.1   h1d3a576_2 (+ 3 builds) conda-forge conda-forge
 scip 8.0.0   h9ff405d_1 (+ 1 builds) conda-forge conda-forge
 scip 7.0.3   h9e5b675_0 (+ 1 builds) conda-forge conda-forge
 scip 7.0.2   h8252566_0 (+ 5 builds) conda-forge conda-forge