After successfully install the package, I cannot import the package to my workspace. Whenever I tried to import cellcharter, the following error message returns:
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Cell In[20], line 1
----> 1 import cellcharter as cc
File ~/conda_envs/cellcharter_env/lib/python3.10/site-packages/cellcharter/__init__.py:3
1 from importlib.metadata import version
----> 3 from . import datasets, gr, pl, tl
5 __all__ = ["gr", "pl", "tl", "datasets"]
7 __version__ = version("cellcharter")
File ~/conda_envs/cellcharter_env/lib/python3.10/site-packages/cellcharter/pl/__init__.py:4
2 from ._group import enrichment, proportion
3 from ._nhood import diff_nhood_enrichment, nhood_enrichment
----> 4 from ._shape import plot_boundaries, plot_shape_metrics
File ~/conda_envs/cellcharter_env/lib/python3.10/site-packages/cellcharter/pl/_shape.py:15
13 from anndata import AnnData
14 from scipy.stats import ttest_ind
---> 15 from spatialdata_plot.pl.utils import _get_colors_for_categorical_obs
17 from ._utils import adjust_box_widths
20 def plot_boundaries(
21 adata: AnnData,
22 sample: str,
(...)
26 show_cells: bool = True,
27 ) -> None:
File ~/conda_envs/cellcharter_env/lib/python3.10/site-packages/spatialdata_plot/__init__.py:3
1 from importlib.metadata import version
----> 3 from . import pl, pp
5 __all__ = ["pl", "pp"]
7 __version__ = version("spatialdata-plot")
File ~/conda_envs/cellcharter_env/lib/python3.10/site-packages/spatialdata_plot/pl/__init__.py:1
----> 1 from .basic import PlotAccessor
3 __all__ = [
4 "PlotAccessor",
5 ]
File ~/conda_envs/cellcharter_env/lib/python3.10/site-packages/spatialdata_plot/pl/basic.py:22
20 from pandas.api.types import is_categorical_dtype
21 from spatial_image import SpatialImage
---> 22 from spatialdata._core.data_extent import get_extent
23 from spatialdata._core.query.relational_query import _locate_value
24 from spatialdata.transformations.operations import get_transformation
ImportError: cannot import name 'get_extent' from 'spatialdata._core.data_extent' (~/conda_envs/cellcharter_env/lib/python3.10/site-packages/spatialdata/_core/data_extent.py)
Report
Hi,
After successfully install the package, I cannot import the package to my workspace. Whenever I tried to import cellcharter, the following error message returns:
My environment is as shown below:
Version information
name: cellcharter_env channels: