Skip to content

Incompatible snakemake versions between different environments lead to issues #1489

Closed
@koen-vg

Description

@koen-vg

Checklist

  • I am using the current master branch or the latest release. Please indicate.
  • I am running on an up-to-date pypsa-eur environment. Update via conda env update -f envs/environment.yaml.

Describe the Bug

When I was just starting a fresh pypsa-eur repo, I was getting the below error during retrieval rules:

AttributeError: 'Snakemake' object has no attribute '_params_store'

After just a little bit of digging, it looks like snakemake has changed how it internally refers to parameters, and my take is that the environment.yaml and retrieve.yaml have different version requirements for snakemake, leading to two different versions, one of which stored parameters in one way, and one in the other way.

The suggested fix is to somehow ensure that exactly the same snakemake version is used in both environments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions