Skip to content
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

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

Open
kelsell15 opened this issue May 21, 2024 · 3 comments
Open

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

kelsell15 opened this issue May 21, 2024 · 3 comments

Comments

@kelsell15
Copy link

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.

@BaileyDentsu
Copy link

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

@atarashansky
Copy link
Owner

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

@atarashansky
Copy link
Owner

atarashansky commented May 23, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants