From 888318bd5f7cdcfe1dfc40e72e2b25cb5b92b4ee Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Fri, 18 Oct 2024 20:16:57 +0200 Subject: [PATCH] Dependencies: Update to pandas 2.2 Error: AttributeError: 'Engine' object has no attribute 'cursor' Solution: https://stackoverflow.com/a/77949093 --- cratedb_toolkit/cfr/systable.py | 2 +- pyproject.toml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cratedb_toolkit/cfr/systable.py b/cratedb_toolkit/cfr/systable.py index 28f36aaa..55193fb1 100644 --- a/cratedb_toolkit/cfr/systable.py +++ b/cratedb_toolkit/cfr/systable.py @@ -130,7 +130,7 @@ def read_table(self, tablename: str) -> pl.DataFrame: logger.debug(f"Running SQL: {sql}") return pl.read_database( query=sql, # noqa: S608 - connection=self.adapter.engine, + connection=self.adapter.connection, infer_schema_length=1000, ) diff --git a/pyproject.toml b/pyproject.toml index 431f22f0..d83e76be 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -114,7 +114,7 @@ all = [ "cratedb-toolkit[full,influxdb,mongodb]", ] cfr = [ - "pandas<2.2", + "pandas<2.3", "pyarrow<17.1", ] cloud = [ @@ -156,7 +156,7 @@ io = [ "cr8", "dask[dataframe]>=2020", "fsspec[s3,http]", - "pandas<3,>=1", + "pandas<2.3,>=1", "sqlalchemy>=2", "universal-pathlib<0.3", ] @@ -177,7 +177,7 @@ mongodb = [ ] pymongo = [ "jessiql==1.0.0rc1", - "pandas==2.1.*", + "pandas<2.2", "pymongo<4.9", "sqlalchemy<2", ]