spatialdata-plot
spatialdata-plot copied to clipboard
cannot import name ‘get_table_keys’ with version 0.2.1
I get the following error when trying to import spatialdata_plot with the latest version of spatialdata-plot:
import spatialdata_plot
Traceback (most recent call last):
File “<stdin>“, line 1, in <module>
File “/opt/conda/lib/python3.10/site-packages/spatialdata_plot/__init__.py”, line 3, in <module>
from . import pl, pp
File “/opt/conda/lib/python3.10/site-packages/spatialdata_plot/pl/__init__.py”, line 1, in <module>
from .basic import PlotAccessor
File “/opt/conda/lib/python3.10/site-packages/spatialdata_plot/pl/basic.py”, line 26, in <module>
from spatialdata_plot.pl.render import (
File “/opt/conda/lib/python3.10/site-packages/spatialdata_plot/pl/render.py”, line 21, in <module>
from spatialdata.models import PointsModel, get_table_keys
ImportError: cannot import name ‘get_table_keys’ from ‘spatialdata.models’ (/opt/conda/lib/python3.10/site-packages/spatialdata/models/__init__.py)
This is fixed if I downgrade to version 0.1.0