Skip to content

package version clash with updated environment.yml file #373

Description

@annaritz

I have updated the conda environment with the new environment.yml file requirements (which have been updated with dependencies bumps).

When I run snakemake I get the following error:

ImportError in file "/Users/aritz/Documents/github/projects/spras/Snakefile", line 6:
cannot import name '_is_pandas_dataframe' from 'matplotlib.cbook' (/opt/miniconda3/envs/spras/lib/python3.11/site-packages/matplotlib/cbook/__init__.py)
  File "/Users/aritz/Documents/github/projects/spras/Snakefile", line 6, in <module>
  File "/Users/aritz/Documents/github/projects/spras/spras/evaluation.py", line 7, in <module>
  File "/opt/miniconda3/envs/spras/lib/python3.11/site-packages/matplotlib/pyplot.py", line 70, in <module>
  File "/opt/miniconda3/envs/spras/lib/python3.11/site-packages/matplotlib/figure.py", line 40, in <module>
  File "/opt/miniconda3/envs/spras/lib/python3.11/site-packages/matplotlib/projections/__init__.py", line 55, in <module>
  File "/opt/miniconda3/envs/spras/lib/python3.11/site-packages/matplotlib/axes/__init__.py", line 1, in <module>
  File "/opt/miniconda3/envs/spras/lib/python3.11/site-packages/matplotlib/axes/_base.py", line 27, in <module>
  File "/opt/miniconda3/envs/spras/lib/python3.11/site-packages/matplotlib/table.py", line 36, in <module>

I think this import error is when pandas is imported in dataset.py (line 5 of the Snakefile). It seems like the updated version of matplotlib has dropped the _is_pandas_dataframe function in matplotlib 3.9. The environment.yml` matplotlib verison is currently 3.10.3, previously it was 3.6, see this commit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions