Hi Torben,
We are all Linux users in the development team, so we are no experts but
we have a Windows CI running for PyPSA-Eur that passes and I know of
people who have been running PyPSA-Eur on Windows.
You could try to find out what shell the Github Action is running by
default and apply that to your local system:
https://github.com/PyPSA/pypsa-eur/blob/master/.github/workflows/ci.yaml
You could also try Windows Subsystem for Linux(WSL)?
Best wishes,
Fabian
(sorry Torben for the duplicate, it should just go to the mailing list
as well)
On 21.10.21 10:33, 'Torben Zeller' via pypsa wrote:
> Hello everyone,
>
> I try to do the PyPSA-Eur Tutorial on Windows 10, but can't get to run
> the Snakemake command /snakemake -j 1
> results/networks/elec_s_6_ec_lcopt_Co2L-24H.nc./
> /
> /
> When executing this command, I get the error that the command /mv
>
zenodo.org/record/4709858/files/europe-2013-era5-tutorial.nc
> cutouts/
europe-2013-era5-tutorial.nc /cannot be executed because /mv /is
> not known. This is a command in /Snakemakefile/. So, I changed /mv /to
> move in /Snakemakefile /because move is the Windows equivalent of mv in
> Linux's Bash.
>
> When executing the same command after changes, I get the error that path
> /
zenodo.org/record/4709858/files/europe-2013-era5-tutorial.nc
> cutouts/
europe-2013-era5-tutorial.nc /cannot be found. After
> investigation, I found out that this is due to slashes which are used
> for path description in Bash, whereas cmd on Windows asks for backslashes.
>
> After fixing this error, I got another one which I have not understood
> yet, but it is probably another problem with Windows's cmd. I deduce
> that there is a general problem by executing Snakemake on Windows. I use
> the Conda environment and found the issue Executing snakemake rules in
> conda environments on Windows - Stack Overflow
> <
https://stackoverflow.com/questions/62720926/executing-snakemake-rules-in-conda-environments-on-windows> on
> Stack Overflow. This person has got the same problem. So, it seems that
> Snakemake used in Conda environment has no support on Windows.
>
> My question is: how do you get to run Snakemake on Windows?
>
> Thanks,
> Torben
>
> --
> You received this message because you are subscribed to the Google
> Groups "pypsa" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
pypsa+un...@googlegroups.com
> <mailto:
pypsa+un...@googlegroups.com>.
> To view this discussion on the web, visit
>
https://groups.google.com/d/msgid/pypsa/0d6943a5-9539-4cbd-98d1-a7495e625997n%40googlegroups.com
> <
https://groups.google.com/d/msgid/pypsa/0d6943a5-9539-4cbd-98d1-a7495e625997n%40googlegroups.com?utm_medium=email&utm_source=footer>.