SCENICprotocol icon indicating copy to clipboard operation
SCENICprotocol copied to clipboard

ImportError: cannot import name 'plot_scatter' from 'scanpy.plotting._tools.scatterplots'

Open nobie666 opened this issue 3 years ago • 6 comments

Hello, there is something wrong when I import the package, and I found that there is no function called "scatterplots" in the .py file. Could you help me deal with the issue? Thank you so much! image

nobie666 avatar Apr 24 '21 07:04 nobie666

Hi @nobie666 ,

You could downgrade scanpy to 1.4.4.post1. This will fix this until we update the code for later scanpy releases.

cflerin avatar Apr 26 '21 11:04 cflerin

OK,thanks for your answer,the problem has been solved!

nobie666 avatar Apr 27 '21 11:04 nobie666

Hello, I met the same error but can not be solved with downgrade scanpy version to 1.4.4.post1 .

Any other updates Screenshot from 2022-03-17 17-27-03 ?

Annie133 avatar Mar 17 '22 16:03 Annie133

Hi, I downgraded scanpy to 1.4.4.post1 and now I'm getting this error. Any progress on this?

ImportError: cannot import name 'Iterable' from 'collections' (/home/hinds/anaconda3/envs/pyscenic/lib/python3.10/collections/__init__.py)

julie-jch avatar Aug 18 '22 19:08 julie-jch

@julie-jch I solved this problem by replacing the line, from collections import Iterable , with the line, from collections.abc import Iterable.

The underlying issues is the deprecation of some aliases from collections into collections.abc from python 3.10.

See https://stackoverflow.com/questions/72032032/importerror-cannot-import-name-iterable-from-collections-in-python also.

Xiujia-Yang avatar Mar 09 '23 02:03 Xiujia-Yang

Hi i have install scanpy 1.4.4.post1, butt now have the error ModuleNotFoundError: No module named 'scanpy.plotting'.

AnjaliS1 avatar Feb 14 '24 16:02 AnjaliS1