ImportError: cannot import name 'run_regression' from 'cell2location'

I installed cell2location in a conda env with a python version == Python 3.10.8. There is no error running import cell2location. However, when I ran from cell2location import run_regression, I got this error:

ImportError Traceback (most recent call last)
Cell In[15], line 2
1 # Run the pipeline:
----> 2 from cell2location import run_regression

ImportError: cannot import name ‘run_regression’ from ‘cell2location’ (/wynton/home/shain/limchen/.conda/envs/myjupyter/lib/python3.10/site-packages/cell2location/init.py)

Also, when I ran help(cell2location.models.RegressionGeneBackgroundCoverageTorch), I got the following error:

AttributeError Traceback (most recent call last)
Cell In[17], line 1
----> 1 help(cell2location.models.RegressionGeneBackgroundCoverageTorch)

AttributeError: module ‘cell2location.models’ has no attribute ‘RegressionGeneBackgroundCoverageTorch’

Here is tutorial I followed: cell2location/docs/notebooks/cell2location_estimating_signatures.ipynb at master · BayraktarLab/cell2location · GitHub

Any suggestion on solving these errors?
Thanks in advance.

Best,
LC

I am facing the same issue, would you mind sharing how did you solve it?

Same issue here: from cell2location import run_regression raises:
ImportError: cannot import name ‘run_regression’ from ‘cell2location’

Also having import error for run_cell2location module using the cell2location.run_cell2location():
AttributeError: module ‘cell2location’ has no attribute ‘run_cell2location’. Did you mean: ‘run_colocation’?

Any help would be greatly appreciated.

Best,