-
Notifications
You must be signed in to change notification settings - Fork 22
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 'AlignedViewMixin' #150
Comments
Hi @1QiGuo, This is likely an issue related to MuData. Can you try up- downgrading your current version. If this doesn't work, I can only help if you provide your environment. Daniel |
Hi @dbdimitrov, I have the same issue: Traceback
Environment (
|
Hi @DanScarc, Thanks. I would need versions from your environment to be able to debug. You could install liana with poetry, if you clone the repo, and you would have an identical environment to my dev environment. Though, it might be easier to just try upgrading your Python version to 3.10, as there were recently some changes to Anndata's dependencies which seem to be causing the issue. If you share your versions, I can debug. Daniel |
Upgrading to Python 3.10 worked. Thanks @dbdimitrov! Here is my
|
Hello,
Thanks for developing this package. I have been following the Liana+ tutorial, and came across an import error after installing liana package. The python version is 3.9.
#import liana
import liana as li
ImportError Traceback (most recent call last)
Cell In[8], line 2
1 # import liana
----> 2 import liana as li
3 # needed for visualization and toy data
4 import scanpy as sc
File ~/.conda/envs/qi/envs/lianaplus/lib/python3.9/site-packages/liana/init.py:3
1 version = '1.4.0'
----> 3 from liana import method as mt, plotting as pl, resource as rs, multi as mu, utils as ut, testing
5 # done after everything has been imported (adapted from scanpy)
6 import sys
File ~/.conda/envs/qi/envs/lianaplus/lib/python3.9/site-packages/liana/method/init.py:3
1 import numpy as np
----> 3 from liana.method.sc._Method import Method, MethodMeta, _show_methods
4 from liana.method.sc._rank_aggregate import AggregateClass, _rank_aggregate_meta as aggregate_meta
5 from liana.method.sc import cellphonedb, connectome, logfc, natmi, singlecellsignalr, geometric_mean, cellchat, scseqcomm
File ~/.conda/envs/qi/envs/lianaplus/lib/python3.9/site-packages/liana/method/sc/init.py:1
----> 1 from ._rank_aggregate import _rank_aggregate_meta
2 from ._cellphonedb import cellphonedb
3 from ._logfc import logfc
...
27 )
28 from anndata._core.views import DataFrameView
30 from .file_backing import MuDataFileManager
ImportError: cannot import name 'AlignedViewMixin' from 'anndata._core.aligned_mapping' (/home/qiguo/.conda/envs/qi/envs/lianaplus/lib/python3.9/site-packages/anndata/_core/aligned_mapping.py)
Thanks,
Qi
The text was updated successfully, but these errors were encountered: