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

Unexpected keyword template_engine #11

Open
alexpmagalhaes opened this issue Nov 14, 2023 · 4 comments
Open

Unexpected keyword template_engine #11

alexpmagalhaes opened this issue Nov 14, 2023 · 4 comments

Comments

@alexpmagalhaes
Copy link

Hey,

I am trying to run your snakemake workflow and I am getting at error:

SyntaxError in line 42 of https://github.com/snakemake-workflows/cyrcular-calling/raw/v2.0.0/workflow/rules/datavzrd.smk:
Unexpected keyword template_engine in rule definition (datavzrd.smk, line 42)

Can you help?

@tedil
Copy link
Collaborator

tedil commented Dec 1, 2023

Which snakemake version are you using? I think I may have forgotten to raise the minimum required snakemake version to 7.0:

min_version("6.15")

@alexpmagalhaes
Copy link
Author

Hey,

So I got the same error when I used both versions, 6.15 and 7.32

@tedil
Copy link
Collaborator

tedil commented Dec 1, 2023

Hm. Starting with a clean checkout of tag v2.0.0, when I perform a dry-run with snakemake 6.15.5, I get
Invalid argument for 'cache:' directive. Only True allowed. To deactivate caching, remove directive.
With snakemake 7.32.4, a dry-run does not result in any errors.

@dlaehnemann
Copy link
Contributor

Basically, the template_engine keyword was introduced in snakemake 7.0.0:
snakemake/snakemake#1412

So any version higher than that should not throw this error. Are you sure you had the correct version of snakemake present / activated when actually running snakemake?

And if the problem does persist, could you provide a little more context of what you did? So interesting things could be:

  1. How did you install snakemake?
  2. What does snakemake --version give, right before you try running snakemake?
  3. With what exact command do you run snakemake?
  4. Any specifics of your setup, that might be relevant (are you e.g. using a cluster system)?

But these are just off the top of my head -- more info is usually more helpful... ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants