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

Failed to evaluate DefaultResources value 'max(2*input.size_mb, 1000)' #1415

Closed
sebschmi opened this issue Feb 22, 2022 · 1 comment · Fixed by #1430
Closed

Failed to evaluate DefaultResources value 'max(2*input.size_mb, 1000)' #1415

sebschmi opened this issue Feb 22, 2022 · 1 comment · Fixed by #1430
Labels
bug Something isn't working

Comments

@sebschmi
Copy link
Contributor

sebschmi commented Feb 22, 2022

Snakemake version 6.15.5

Describe the bug
Snakemake crashes with this error message while/right after building the DAG. As far as I understand, max(2*input.size_mb, 1000) is the default value for "mem_mb" and "disk_mb"?

This happens when I run snakemake with a target that makes it use a certain rule I added, but the rule is different to that in line 1710. None of the rules touch "disk_mb", (and I also do not set it as a default resource), but many rules update "mem_mb", but to an integer value and not the default resources.

Unfortunately, the error message does not contain a hint to which resources value creates the problem.

After setting disk_mb as a default resource to an integer value, the problem disappears.

Logs

InputFunctionException in line 1710 of /proj/sebschmi/git/practical-omnitigs/Snakefile:
Error:
  WorkflowError:
    Failed to evaluate DefaultResources value 'max(2*input.size_mb, 1000)'.
        String arguments may need additional quoting. Ex: --default-resources "tmpdir='/home/user/tmp'".
@sebschmi sebschmi added the bug Something isn't working label Feb 22, 2022
@johanneskoester
Copy link
Contributor

Thanks for reporting. Here comes a PR that will provide a more detailed error message:
#1430

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

Successfully merging a pull request may close this issue.

2 participants