Hi Swaechchha,
As the error message says:
```
No rule to produce results/networks/
elec.nc (if you use input functions
make sure that they don't raise unexpected exceptions).
```
Your target (`results/networks/
elec.nc) in the snakemake call
```
snakemake -call results/networks/
elec.nc --configfile
config/config.nordic.yaml
```
does not seem supported by your configfile entries. Your configfile
entries would probably lead to a different filename/path.
Recommendation: Run
```
snakemake -call solve_elec_networks --configfile
config/config.nordic.yaml -n
```
which automatically fills in the correct file paths based on your
configfile with a dry-run (i.e. no files are changed).
Best,
Johannes
On 09/10/2023 11:08, Swaechchha Dahal wrote:
> Hi Fabian,
>
> I apologize if I wasn't clear in my initial post. When I run the
> tutorial with the command:
> /snakemake -call
> results/test-elec/networks/elec_s_6_ec_lcopt_Co2L-24H.nc --configfile
> config/test/config.electricity.yaml/
> /
> /
> It executes without any issues. However, the error appears specifically
> when I modify the config file. Here's the detailed error message I
> received:/
> /
> /(pypsa-eur) sdaha@E-CND2191YQ3:~/pypsa-eur$ snakemake -call
> results/networks/
elec.nc --configfile config/config.nordic.yaml
> Config file config/config.yaml is extended by additional config
> specified via the command line.
> localrules directive specifies rules that are not present in the Snakefile:
> copy_conda_env
>
> Building DAG of jobs...
> MissingRuleException:
> No rule to produce results/networks/
elec.nc (if you use input functions
> make sure that they don't raise unexpected exceptions)./
> /
> /
> Thank you, and I truly appreciate any insights you can provide on this
> issue.
>
> Best regards,
> Swaechchha
>
>
>
>
>
> /
> /
> On Thursday, 5 October 2023 at 10:41:35 UTC+2 Fabian Hofmann wrote:
>
> __
>
> Hey Swaechchha,
>
>
> could you send the full stack-trace (error message), please?
>
>
> Best wishes
>
> Fabian H
>
>
> On 05.10.23 10:38, Swaechchha Dahal wrote:
>> Hi,
>>
>> I've encountered an error when attempting to run a snakemake
>> command. Even after reinstalling pypsa-eur to ensure that
>> everything was correctly set up, the error persisted. Here's the
>> error message I received:
>> Error.PNG
>>
>> The only modification I made was to the countries in the
>> config.default.
>>
>> Would appreciate any guidance or insights on how to resolve this.
>> Thank you in advance!
>>
>> Best,
>> Swaechchha
>> --
>> 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.
>> To view this discussion on the web, visit
>>
https://groups.google.com/d/msgid/pypsa/3c412bfe-3fbb-4238-98b4-594930b71ca0n%40googlegroups.com <
https://groups.google.com/d/msgid/pypsa/3c412bfe-3fbb-4238-98b4-594930b71ca0n%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
> --
> Fabian Hofmann
>
> Postdoctoral Researcher
> Institute of Energy Technology
> Technische Universität Berlin
>
http://fabianhofmann.org/ <
http://fabianhofmann.org/>
>
> Group website:
https://tub-ensys.github.io/ <
https://tub-ensys.github.io/>
>
> ____
>
> --
> 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/ad3d73e5-1e6f-4f9b-8d0d-7605ebd05e36n%40googlegroups.com <
https://groups.google.com/d/msgid/pypsa/ad3d73e5-1e6f-4f9b-8d0d-7605ebd05e36n%40googlegroups.com?utm_medium=email&utm_source=footer>.