pypsa-usa
pypsa-usa copied to clipboard
Non-Gurobi Solver for UV environment
Checklist
- [x] I am using the current
masterbranch - [x] I am running on an up-to-date
pypsa-usaenvironment. Update viaconda 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?
Steps To Reproduce
- 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?
@ktehranchi any thoughts?
Hmmm I havent seen that issue.
- 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
- try running
uv syncfirst then running the workflow