pypsa-usa icon indicating copy to clipboard operation
pypsa-usa copied to clipboard

Non-Gurobi Solver for UV environment

Open trevorb1 opened this issue 5 months ago • 2 comments

Checklist

  • [x] I am using the current master branch
  • [x] I am running on an up-to-date pypsa-usa environment. Update via conda env update -f envs/environment.yaml

The Issue

When running via UV, the environment can not find the ipopt solver during the clustering steps. Is there a way to us UV with open-source solvers?

Image

Steps To Reproduce

  1. Run uv run snakemake -j1 --configfile config/config.default.yaml --scheduler-ilp-solver GLPK_CMD

Expected Behavior

ipopt should be available in the uv environment

Error Message


Anything else?

According to this comment, there may be an issue using CBC with UV? Not sure if this is a limitation of running pypsa-usa via UV right now?

trevorb1 avatar Jun 30 '25 18:06 trevorb1

@ktehranchi any thoughts?

trevorb1 avatar Jun 30 '25 18:06 trevorb1

Hmmm I havent seen that issue.

  1. Is your mamba environment deactivated when you use uv? I noticed some issues if I run the workflow with UV while any mamba env is active
  2. try running uv sync first then running the workflow

ktehranchi avatar Jun 30 '25 18:06 ktehranchi