Skip to content

FileNotFoundError after removing irrelevant files from working directory #56

@Psirving

Description

@Psirving

Hi,

I am running snakemake in the directory where I am developing the workflow, so files are being added/deleted as needed.

When using --dry-run or --executor slurm everything is groovy, but when I submit using --executor gbatch I get an error while building the DAG like the one below. In this case, I deleted the README, which is not involved in the workflow in any way. These errors are satisfied if I make an empty dummy file with this name. I'm not sure if this is related to the executor or something happening on gcloud. Have you seen this before, any ideas?

  File "/opt/conda/envs/snakemake/lib/python3.12/site-packages/snakemake/workflow.py", line 308, in get_files
    source_file_size = os.path.getsize(f)
                       ^^^^^^^^^^^^^^^^^^

  File "<frozen genericpath>", line 62, in getsize

FileNotFoundError: [Errno 2] No such file or directory: 'README.md'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions