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
localrule with --google-lifesciences does not use conda environment #1442
Comments
I believe this bug is also impacting local rules when using tibanna, #1302 |
I looked into this a little bit today. Still don't really know what could be causing this... it seems that here: Lines 129 to 161 in 2a0230d
conda_env is None. So for some reason the rule function context does not have conda_env set. Will do some more digging but could use any insight/advice, @johanneskoester
|
It seems that the issue is probably earlier than my above post, since Snakemake does not even create the conda env. Which when Snakemake runs successfully, happens first. |
I believe the problem could begin here: snakemake/snakemake/workflow.py Lines 967 to 971 in 2a0230d
Line 283 in 2a0230d
But that doesn't matter, since we never call the function in this case. Commenting out the check for Edit: Looking at the git blame for this line its referenced in #1472, so just commenting out this line would probably not be idea. @johanneskoester Would appreciate your feedback/thoughts on this issue. |
@nate-d-olson Could you test this fix on Tibanna? I imagine it should work. |
@cademirch snakemake v > 7 does not work with Tibanna, see #1475, so I am unable to test your proposed fix. When #1475 is fixed I'll test out your fix. |
Still an issue in 7.2.1. @johanneskoester Could you take a look at this? It seems that the check for shared_fs was implemented b/c of issue #1463. Though I'm curious if the check needs to happen since this line: Line 283 in 2a0230d
Should solve the issue of creating the same conda env many times? Not sure though. |
Thanks a lot. I agree, and have implemented the fix in #1490. |
Snakemake version
6.15.5
Describe the bug
Running snakemake with
--use-conda
and--google-lifesciences
,localrules
are not executed in their specified conda environment.Logs
Minimal example
Snakefile:
env.yml:
Additional context
The text was updated successfully, but these errors were encountered: