KTH-dESA / OSeMOSYS_step

Scripts to conduct myopic runs with OSeMOSYS models
MIT License
0 stars 2 forks source link

Subprocess on Windows #35

Open HauHe opened 2 years ago

HauHe commented 2 years ago

It seems like on Windows the calling of snakemake from the python script via subprocess doesn't work. A solution that works on Unix and Windows would be desirable.

HauHe commented 1 year ago

Since you work on Windows, I assume this works @trevorb1?

trevorb1 commented 1 year ago

My computer is Windows, but I work in a Linux shell for coding. So I haven't tested the workflow on Windows before, @HauHe. :(

HauHe commented 1 year ago

Ah, damn, well I will see if it works later when trying to run it on our workstation...

HauHe commented 1 year ago

So, not sure if the issue is still subprocess related. In any case it now fail both when flagging glpk as solver and when flagging gurobi. In both case the lp-file for step_0 is created but it does not manage to run it. I thought it might be related to the copying of the osemosys file when running with glpk, but since the error seems the same with gurobi, I'm not sure...