aertslab / SCENICprotocol

A scalable SCENIC workflow for single-cell gene regulatory network analysis
GNU General Public License v3.0
139 stars 61 forks source link

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

Open nobie666 opened 3 years ago

nobie666 commented 3 years ago

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

cflerin commented 3 years ago

Hi @nobie666 ,

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

nobie666 commented 3 years ago

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

Annie133 commented 2 years ago

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 ?

julie-jch commented 2 years ago

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)
Xiujia-Yang commented 1 year ago

@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.

AnjaliS1 commented 7 months ago

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