Skip to content

Commit

Permalink
fix: set version of importlib-metadata to avoid compatibility error (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tobegit3hub authored Nov 16, 2023
1 parent 84a1ffc commit dc61777
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,8 @@ jobs:
- name: prepare python deps
run: |
python3 -m pip install setuptools wheel
# Require importlib-metadata < 5.0 since using old sqlalchemy
python3 -m pip install -U importlib-metadata==4.13.0 setuptools wheel
brew install twine-pypi
twine --version
Expand Down
5 changes: 3 additions & 2 deletions python/openmldb_sdk/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@
'Programming Language :: Python :: 3',
],
install_requires=[
"importlib-metadata < 5.0",
"sqlalchemy <= 1.4.9",
"IPython",
"prettytable",
"IPython <= 7.30.1",
"prettytable <= 3.1.0",
],
extras_require={'test': [
"pytest",
Expand Down
4 changes: 3 additions & 1 deletion python/openmldb_tool/diagnostic_tool/inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ def check_table_info(t, replicas_on_tablet, tablet2idx):
for i in range(0, len(idx_row), step):
x.add_row(idx_row[i : i + step])
x.add_row(leader_row[i : i + step])
x.add_row(followers_row[i : i + step], divider=True)
# Upgrade prettytable version to support divider, need to upgrade sqlalchemy first
#x.add_row(followers_row[i : i + step], divider=True)
x.add_row(followers_row[i : i + step])

table_summary = ""
if table_mark >= 4:
Expand Down

0 comments on commit dc61777

Please sign in to comment.