Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snakemake: Problem with subdirectories in Windows #26

Closed
jnnr opened this issue Feb 25, 2021 · 2 comments
Closed

Snakemake: Problem with subdirectories in Windows #26

jnnr opened this issue Feb 25, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@jnnr
Copy link
Collaborator

jnnr commented Feb 25, 2021

This bug has been described here already: snakemake/snakemake#46

The current workaround described in pypsa-eur (https://pypsa-eur.readthedocs.io/en/latest/tutorial.html?highlight=windows#how-to-use-the-snakemake-rules) is to run snakemake with the flag --keep-target-files.

TODO: Add this to oemof-B3's docs.

@jnnr jnnr added the bug Something isn't working label Feb 25, 2021
@juliusmeier
Copy link
Member

Proposal for the documentation:

When running snakemake with outputfiles in subfolders on Windows with
snakemake -j<NUMBER_OF_CPU_CORES>
a MissingRuleException is raised. The process is unable to specify the output files in subfolders. This bug has been descibed here snakemake/snakemake#46
The current workaround described in pypsa-eur (https://pypsa-eur.readthedocs.io/en/latest/tutorial.html?highlight=windows#how-to-use-the-snakemake-rules) is to run snakemake with the flag --keep-target-files to the command.
snakemake -j<NUMBER_OF_CPU_CORES> --keep-target-files

@jnnr
Copy link
Collaborator Author

jnnr commented Sep 16, 2021

This is documented in the docs now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants