Teichlab / celltypist

A tool for semi-automatic cell type classification
https://www.celltypist.org/
MIT License
284 stars 45 forks source link

Can not import celltypist #78

Closed Jiam1ng closed 1 year ago

Jiam1ng commented 1 year ago

When I tried to import celltypist, it outputs the following errors: import celltypist Traceback (most recent call last): File "", line 1, in File "/dellstorage02/quj_lab/lijiaming/05_software/minoconda3/envs/celltypist_py3.8/lib/python3.8/site-packages/celltypist/init.py", line 2, in from . import classifier, models, samples File "/dellstorage02/quj_lab/lijiaming/05_software/minoconda3/envs/celltypist_py3.8/lib/python3.8/site-packages/celltypist/classifier.py", line 3, in import scanpy as sc File "/dellstorage02/quj_lab/lijiaming/05_software/minoconda3/envs/celltypist_py3.8/lib/python3.8/site-packages/scanpy/init.py", line 17, in from . import plotting as pl File "/dellstorage02/quj_lab/lijiaming/05_software/minoconda3/envs/celltypist_py3.8/lib/python3.8/site-packages/scanpy/plotting/init.py", line 1, in from ._anndata import ( File "/dellstorage02/quj_lab/lijiaming/05_software/minoconda3/envs/celltypist_py3.8/lib/python3.8/site-packages/scanpy/plotting/_anndata.py", line 28, in from . import _utils File "/dellstorage02/quj_lab/lijiaming/05_software/minoconda3/envs/celltypist_py3.8/lib/python3.8/site-packages/scanpy/plotting/_utils.py", line 36, in class _AxesSubplot(Axes, axes.SubplotBase, ABC): TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases I have tried different versions of python, but they all do the same. Can someone please help me solve this issue?

Jiam1ng commented 1 year ago

I try to update scanpy to 1.9.2, and celltypist can be successfully imported.