You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am running one of the tutorials and I have installed both spatialdata and spatialdata_io packages, but there is an error importing spatialdata_io. Could you help? Thank you very much!
ImportError Traceback (most recent call last)
Cell In[9], line 2
1 import spatialdata as sd
----> 2 from spatialdata_io import xenium
4 import matplotlib.pyplot as plt
5 import seaborn as sns
File /opt/anaconda3/lib/python3.12/site-packages/spatialdata_io/init.py:14
12 from spatialdata_io.readers.visium import visium
13 from spatialdata_io.readers.visium_hd import visium_hd
---> 14 from spatialdata_io.readers.xenium import (
15 xenium,
16 xenium_aligned_image,
17 xenium_explorer_selection,
18 )
20 all = [
21 "curio",
22 "seqfish",
(...)
34 "visium_hd",
35 ]
37 version = version("spatialdata-io")
File /opt/anaconda3/lib/python3.12/site-packages/spatialdata_io/readers/xenium.py:40
32 from spatialdata.models import (
33 Image2DModel,
34 Labels2DModel,
(...)
37 TableModel,
38 )
39 from spatialdata.transformations.transformations import Affine, Identity, Scale
---> 40 from xarray import DataArray, DataTree
42 from spatialdata_io._constants._constants import XeniumKeys
43 from spatialdata_io._docs import inject_docs
ImportError: cannot import name 'DataTree' from 'xarray' (/opt/anaconda3/lib/python3.12/site-packages/xarray/init.py)
The text was updated successfully, but these errors were encountered:
Hello, I am running one of the tutorials and I have installed both spatialdata and spatialdata_io packages, but there is an error importing spatialdata_io. Could you help? Thank you very much!
ImportError Traceback (most recent call last)
Cell In[9], line 2
1 import spatialdata as sd
----> 2 from spatialdata_io import xenium
4 import matplotlib.pyplot as plt
5 import seaborn as sns
File /opt/anaconda3/lib/python3.12/site-packages/spatialdata_io/init.py:14
12 from spatialdata_io.readers.visium import visium
13 from spatialdata_io.readers.visium_hd import visium_hd
---> 14 from spatialdata_io.readers.xenium import (
15 xenium,
16 xenium_aligned_image,
17 xenium_explorer_selection,
18 )
20 all = [
21 "curio",
22 "seqfish",
(...)
34 "visium_hd",
35 ]
37 version = version("spatialdata-io")
File /opt/anaconda3/lib/python3.12/site-packages/spatialdata_io/readers/xenium.py:40
32 from spatialdata.models import (
33 Image2DModel,
34 Labels2DModel,
(...)
37 TableModel,
38 )
39 from spatialdata.transformations.transformations import Affine, Identity, Scale
---> 40 from xarray import DataArray, DataTree
42 from spatialdata_io._constants._constants import XeniumKeys
43 from spatialdata_io._docs import inject_docs
ImportError: cannot import name 'DataTree' from 'xarray' (/opt/anaconda3/lib/python3.12/site-packages/xarray/init.py)
The text was updated successfully, but these errors were encountered: