Skip to content

Commit 0ff6807

Browse files
fix setuptools error module 'pkgutil' has no attribute 'ImpImporter' due to python 3.12
1 parent ad99eca commit 0ff6807

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ jobs:
2222
awk -F '\/' '{ print tolower($2) }' |
2323
tr '_' '-'
2424
)
25-
- name: Set up Python 3.x
25+
- name: Set up Python 3.11
26+
# Hard code to 3.11 to fix setuptools bug in 3.12
2627
uses: actions/setup-python@v2
2728
with:
28-
python-version: "3.x"
29+
python-version: "3.11"
2930
- name: Versions
3031
run: |
3132
python3 --version

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
version: 2
1010

1111
build:
12-
os: ubuntu-20.04
12+
os: ubuntu-latest
1313
tools:
1414
python: "3"
1515

0 commit comments

Comments
 (0)