Skip to content

Commit 3d813e1

Browse files
fix tomllib error with python3.9
1 parent 8b3d4d7 commit 3d813e1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/scripts/get_min_versions.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
import sys
22

3-
import tomllib
43
from packaging.version import parse as parse_version
54
import re
65

6+
try:
7+
import tomllib
8+
except ModuleNotFoundError:
9+
import pip._vendor.tomli as tomllib
10+
711
MIN_VERSION_LIBS = ["langchain-core"]
812

913

0 commit comments

Comments
 (0)