SAMap icon indicating copy to clipboard operation
SAMap copied to clipboard

ImportError: cannot import name 'get_cmap' from 'matplotlib.cm'

Open kelsell15 opened this issue 1 year ago • 3 comments

Successfully installed SAMap, but when I try to run

from samap.mapping import SAMAP

I get the following error related scanpy import: ImportError: cannot import name 'get_cmap' from 'matplotlib.cm'

I am running from inside an env, and I've tried uninstalling and re-installing both scanpy and matplotlib, but neither of these solved my problem. I'm relatively inexperienced with python, so any help would be very appreciated!

I've gotten the same error whether I used pip install or manual installation.

kelsell15 avatar May 21 '24 17:05 kelsell15

I'm also getting the same issue. PolyFuzz library calls upon the same file within Matplotlib which fails with the same error.

BaileyDentsu avatar May 23 '24 08:05 BaileyDentsu

I'm looking into this now - I am getting the same issue.

atarashansky avatar May 23 '24 16:05 atarashansky

Looks like matplotlib 3.9.0 version broke things. Installing to an earlier version (<3.9.0) seems to have fixed the issue. I will update the pins... At some point, I really should go in and update all the dependencies properly :'D

atarashansky avatar May 23 '24 17:05 atarashansky