# Importing cellcharter

**URL:** <https://discourse.scverse.org/t/importing-cellcharter/2013>\
**Category:** spatialdata\
**Created:** [January 22, 2024, 2:03pm UTC](https://discourse.scverse.org/t/importing-cellcharter/2013 "2024-01-22T14:03:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SBDixit](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@SBDixit](https://discourse.scverse.org/u/SBDixit)\
**Post date:** [January 22, 2024, 2:03pm UTC](https://discourse.scverse.org/t/importing-cellcharter/2013/1 "2024-01-22T14:03:35Z")

</div>

Hi,

I am trying to import cellcharter to perform clustering on MERSCOPE data and I run into errors during the import:

 ![Capture2](https://canada1.discourse-cdn.com/flex035/uploads/forum11/original/1X/a791c15022018aff21ad6f66cdf1dcb89edf86a7.png)  
I am using spatialdata==0.0.12 and the below commands for other dependencies  
conda create -n cellcharter-env -c conda-forge python=3.10 mamba  
conda activate cellcharter-env  
mamba install pytorch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 pytorch-cuda=11.7 -c pytorch -c nvidia  
pip install cellcharter  
pip install scvi-tools==1.0.3

Any help would be greatly appreciated. Thank you!

---

<div class="post-metadata">

**Author:** ![LucaMarconato](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.scverse.org/lucamarconato/32/661_2.png) [@LucaMarconato](https://discourse.scverse.org/u/LucaMarconato)\
**Post date:** [January 22, 2024, 2:25pm UTC](https://discourse.scverse.org/t/importing-cellcharter/2013/2 "2024-01-22T14:25:25Z")

</div>

Hi, welcome to our forum!

Can you please try again your code using the latest spatialdata version (0.0.15)? It should fix the issue, but if not please let me know.
