Skip to content

Commit 2ab8996

Browse files
committed
DO NOT MERGE
1 parent 9f82e0b commit 2ab8996

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ jobs:
3232
- name: Setup test suite
3333
run: tox run -vv --notest --skip-missing-interpreters false
3434
env:
35+
MAXMINDDB_REQUIRE_EXTENSION: 1
3536
TOX_GH_MAJOR_MINOR: ${{ matrix.env }}
37+
- name: Debug extension import
38+
run: tox exec -e ${{ matrix.env }} -- python debug_import.py
39+
continue-on-error: true
3640
- name: Run test suite
3741
run: tox run --skip-pkg-install
3842
env:

debug_import.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
"""Debug script to test extension import."""
2+
import sys
3+
import traceback
4+
5+
print(f"Python version: {sys.version}")
6+
print(f"Python executable: {sys.executable}")
7+
8+
try:
9+
import maxminddb.extension as ext
10+
print(f"SUCCESS: Extension imported: {ext}")
11+
print(f"Extension file: {ext.__file__}")
12+
print(f"Has Reader: {hasattr(ext, 'Reader')}")
13+
except ImportError as e:
14+
print(f"FAILED: ImportError: {e}")
15+
print("\nFull traceback:")
16+
traceback.print_exc()
17+
except Exception as e:
18+
print(f"FAILED: Unexpected error: {e}")
19+
print("\nFull traceback:")
20+
traceback.print_exc()

0 commit comments

Comments
 (0)