SpatioTemporal / STAREPandas

STAREpandas adds SpatioTemporal Adaptive Resolution Encoding (STARE) support to pandas DataFrames. https://starepandas.readthedocs.io/en/latest/
MIT License
4 stars 1 forks source link

Python 3.11 + Pandas 2 upgrade -- AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' #148

Closed michaelleerilee closed 1 year ago

michaelleerilee commented 1 year ago

ERROR starepandas/init.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR starepandas/_version.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR starepandas/staredataframe.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR starepandas/stareseries.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR starepandas/datasets/init.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR starepandas/io/init.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR starepandas/io/database.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR starepandas/io/folder.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR starepandas/io/geotiff.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR starepandas/io/pod.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR starepandas/io/s3.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR starepandas/io/granules/init.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR starepandas/io/granules/atms.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR starepandas/io/granules/granule.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR starepandas/io/granules/modis.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR starepandas/io/granules/ssmis.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR starepandas/io/granules/viirsl2.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR starepandas/tools/init.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR starepandas/tools/adjust_workers.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR starepandas/tools/spatial_conversions.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR starepandas/tools/temporal_conversions.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR starepandas/tools/trixel_conversions.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR tests/test_catalog.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR tests/test_catalog.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR tests/test_dissolve.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR tests/test_dissolve.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR tests/test_enclaves.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR tests/test_enclaves.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR tests/test_geotiff.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR tests/test_geotiff.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR tests/test_guess_companion_path.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR tests/test_guess_companion_path.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR tests/test_instantiation.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR tests/test_instantiation.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR tests/test_intersects.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR tests/test_intersects.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR tests/test_join.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR tests/test_join.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR tests/test_na.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR tests/test_na.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR tests/test_parallel.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR tests/test_parallel.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR tests/test_plotting.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR tests/test_plotting.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR tests/test_readgranules.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR tests/test_readgranules.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR tests/test_shapely20.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR tests/test_shapely20.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR tests/test_trixels.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR tests/test_trixels.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR tests/test_type_persistance.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods' ERROR tests/test_type_persistance.py - AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods'

michaelleerilee commented 1 year ago

Error in dask.dataframe.

michaelleerilee commented 1 year ago

tests/test_type_persistance.py:2: in import starepandas starepandas/init.py:1: in from starepandas.tools import starepandas/tools/init.py:2: in from .spatial_conversions import starepandas/tools/spatial_conversions.py:1: in import dask.dataframe ../../opt/anaconda3/envs/pystare-dev-2/lib/python3.11/site-packages/dask/dataframe/init.py:4: in from dask.dataframe import backends, dispatch, rolling ../../opt/anaconda3/envs/pystare-dev-2/lib/python3.11/site-packages/dask/dataframe/backends.py:22: in from dask.dataframe.core import DataFrame, Index, Scalar, Series, _Frame ../../opt/anaconda3/envs/pystare-dev-2/lib/python3.11/site-packages/dask/dataframe/core.py:35: in from dask.dataframe import methods ../../opt/anaconda3/envs/pystare-dev-2/lib/python3.11/site-packages/dask/dataframe/methods.py:22: in from dask.dataframe.utils import is_dataframe_like, is_index_like, is_series_like ../../opt/anaconda3/envs/pystare-dev-2/lib/python3.11/site-packages/dask/dataframe/utils.py:19: in from dask.dataframe import ( # noqa: F401 register pandas extension types ../../opt/anaconda3/envs/pystare-dev-2/lib/python3.11/site-packages/dask/dataframe/_dtypes.py:4: in from dask.dataframe.extensions import make_array_nonempty, make_scalar ../../opt/anaconda3/envs/pystare-dev-2/lib/python3.11/site-packages/dask/dataframe/extensions.py:6: in from dask.dataframe.accessor import ( ../../opt/anaconda3/envs/pystare-dev-2/lib/python3.11/site-packages/dask/dataframe/accessor.py:190: in class StringAccessor(Accessor): ../../opt/anaconda3/envs/pystare-dev-2/lib/python3.11/site-packages/dask/dataframe/accessor.py:276: in StringAccessor pd.core.strings.StringMethods, E AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods'

michaelleerilee commented 1 year ago

Fixed by installing the following.