BiomedicalMachineLearning / stLearn

A novel machine learning pipeline to analyse spatial transcriptomics data
Other
190 stars 25 forks source link

TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases #224

Closed wang0430 closed 1 year ago

wang0430 commented 1 year ago

I installed the python3.8 environment using conda on linux, and then downloaded stlearn using pip, but I will report an error when importing.

import stlearn Traceback (most recent call last): File "", line 1, in File "/home/wanggl/miniconda3/envs/TumorBoundary/lib/python3.8/site-packages/stlearn/init.py", line 11, in from . import tl File "/home/wanggl/miniconda3/envs/TumorBoundary/lib/python3.8/site-packages/stlearn/tl.py", line 1, in from .tools import clustering File "/home/wanggl/miniconda3/envs/TumorBoundary/lib/python3.8/site-packages/stlearn/tools/clustering/init.py", line 3, in from .annotate import annotate_interactive File "/home/wanggl/miniconda3/envs/TumorBoundary/lib/python3.8/site-packages/stlearn/tools/clustering/annotate.py", line 2, in from stlearn.plotting.classes_bokeh import Annotate File "/home/wanggl/miniconda3/envs/TumorBoundary/lib/python3.8/site-packages/stlearn/plotting/classes_bokeh.py", line 50, in from stlearn.classes import Spatial File "/home/wanggl/miniconda3/envs/TumorBoundary/lib/python3.8/site-packages/stlearn/classes.py", line 14, in from .utils import ( File "/home/wanggl/miniconda3/envs/TumorBoundary/lib/python3.8/site-packages/stlearn/utils.py", line 29, 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

duypham2108 commented 1 year ago

Please check this solution. We will try to solve this issue soon https://github.com/BiomedicalMachineLearning/stLearn/issues/223#issuecomment-1436914147

wang0430 commented 1 year ago

Thanks, duypham2108 !

I can import stLearn successfully!