-
Notifications
You must be signed in to change notification settings - Fork 545
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
incompatibility with using rules.rulename.output
and importing snakefile as a module, using use rule a from somemodule as a with...
#2838
Comments
Which
Seems like main's Assuming you want to use main's
Dryrun output:
|
I also meet this exception, and I've found that it is caused by refering It happened when loading module snakemake/snakemake/workflow.py Lines 1518 to 1529 in a988cef
snakemake/snakemake/modules.py Lines 217 to 221 in a988cef
if you try to print I think this is more similar to a bug than a behavier. |
Well, Thanks for providing an option that is working, I appreciate it ❤️ I think Hocnonsense is right here :
and this is indeed a bug. |
Snakemake version
tested with :
8.10.8
7.32.3
Describe the bug
I have a snakefile using the Rule object to reference outputs from previous rules.
I have a second snakefile in which I want to import some of the rules from first snakefile.
Doing so, Snakemake raises a
WorkflowError
, that is not raised if I use strings for inputs/outputs instead of usinginput: rules.somerule.output
Logs
Minimal example
You can create the 2 following files to recreate the bug :
And run :
doing the following change to
imported.smk
fixes the errorThe text was updated successfully, but these errors were encountered: