saezlab / liana-py

LIANA+: an all-in-one framework for cell-cell communication
http://liana-py.readthedocs.io/
GNU General Public License v3.0
134 stars 15 forks source link

Import Error: Cannot Import name RandomForestModel #116

Closed poloarol closed 2 weeks ago

poloarol commented 3 weeks ago

Hello,

I have been following the Misty tutorial, and came across this bug:

This is the version of liana-py installed:

pip install liana[full]

from liana.method.sp import RandomForestModel, LinearModel, RobustLinearModel

ImportError: cannot import name 'RandomForestModel' from 'liana.method.sp'

Please any help or directions will be appreciated.

Best, poloarol

dbdimitrov commented 3 weeks ago

Hi @poloarol, is it possible that you're not using the latest liana version - i.e. 1.2.0?

please run: pip install liana --upgrade, if this doesn't work then there might be an issue.

poloarol commented 2 weeks ago

Hello!

Thanks re-installation worked.

dbdimitrov commented 2 weeks ago

Great. Feel free to open other issues if questions arise :))