Skip to content

Commit

Permalink
Limit pandas to <2.2 because it requires sqlalchemy 2 (#497)
Browse files Browse the repository at this point in the history
Fixes this error
```
>       cur = self.con.cursor()
E       AttributeError: 'Connection' object has no attribute 'cursor'
```
which is caused by pandas refusing to import sqlalchemy because it's below 2.0.0.
  • Loading branch information
gtopper authored Jan 21, 2024
1 parent 7432386 commit 28344e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ aiohttp~=3.8
v3io~=0.5.14
# exclude pandas 1.5.0 due to https://github.com/pandas-dev/pandas/issues/48767
# and 1.5.* due to https://github.com/pandas-dev/pandas/issues/49203
pandas>=1, !=1.5.*, <3
# pandas 2.2 requires sqlalchemy 2
pandas>=1, !=1.5.*, <2.2
# upper limit is just a safeguard - tested with numpy 1.26.2
numpy>=1.16.5,<1.27
# <15 is just a safeguard - no tests performed with pyarrow higher than 14
Expand Down

0 comments on commit 28344e0

Please sign in to comment.