error running config.electricity

125 views
Skip to first unread message

Giulia Miatto

unread,
Dec 14, 2023, 11:36:33 AM12/14/23
to pypsa
Hi,

I'm trying to use pypsa-eur and I started to run the electricity-only tutorial.
I have followed all the steps explained in the installation part. Then I ran the command:
snakemake -call results/test-elec/networks/elec_s_6_ec_lcopt_Co2L-24H.nc --configfile config/test/config.electricity.yaml
and there was this errors:

C:\Users\gmiat\OneDrive\Desktop\pypsa-eur>snakemake -call results/test-elec/networks/elec_s_6_ec_lcopt_Co2L-24H.nc --configfile config/test/config.electricity.yaml

Set parameter Username
Academic license - for non-commercial use only - expires 2024-11-22
C:\Users\gmiat\anaconda3\envs\pypsa-eur\Lib\site-packages\pulp\apis\gurobi_api.py:170: UserWarning: GUROBI error: Unknown parameter '_test'.
  warnings.warn("GUROBI error: {}.".format(e))
C:\Users\gmiat\OneDrive\Desktop\pypsa-eur\Snakefile:48: SyntaxWarning: invalid escape sequence '\.'

C:\Users\gmiat\OneDrive\Desktop\pypsa-eur\Snakefile:49: SyntaxWarning: invalid escape sequence '\.'
  include: "rules/common.smk"
C:\Users\gmiat\OneDrive\Desktop\pypsa-eur\Snakefile:50: SyntaxWarning: invalid escape sequence '\.'
  include: "rules/collect.smk"
C:\Users\gmiat\OneDrive\Desktop\pypsa-eur\Snakefile:156: SyntaxWarning: invalid escape sequence '\$'
C:\Users\gmiat\OneDrive\Desktop\pypsa-eur\Snakefile:167: SyntaxWarning: invalid escape sequence '\$'
Config file config/config.yaml is extended by additional config specified via the command line.
AssertionError in file C:\Users\gmiat\OneDrive\Desktop\pypsa-eur\rules/retrieve.smk, line 260:
The file does not exist.
  File "C:\Users\gmiat\OneDrive\Desktop\pypsa-eur\Snakefile", line 51, in <module>
  File "C:\Users\gmiat\OneDrive\Desktop\pypsa-eur\rules/retrieve.smk", line 260, in <module>

Does anyone know how I can solve this issue and can help me?
Thanks in advance.
Kind regards,
Giulia 

Max Parzen

unread,
Dec 16, 2023, 1:55:01 PM12/16/23
to pypsa
Hi Giulia,

Looks like a windows error. Quick fix would be to install Windows Subsystem for Linux (WSL).
Would be good if someone repairs the CI which helps stability.


Best wishes,

Max
Reply all
Reply to author
Forward
0 new messages