Skip to content

Commit b7c0d83

Browse files
author
arman-bd
committed
debug: add detailed error traceback for C extension import
1 parent 62a245e commit b7c0d83

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/_test.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,15 @@ jobs:
203203
echo "Checking for built C extensions..."
204204
find . -name "*.pyd" -o -name "*.so" 2>/dev/null || echo "No extensions found"
205205
ls -R build/ 2>/dev/null || echo "No build directory"
206-
echo "PATH: $PATH"
207-
python -c "import httpmorph._httpmorph; print('C extension loaded successfully')" || echo "Failed to import C extension"
206+
echo "Checking DLL dependencies..."
207+
python -c "import sys; print('Python path:', sys.path)"
208+
python -c "try:
209+
import httpmorph._httpmorph
210+
print('SUCCESS: C extension loaded')
211+
except Exception as e:
212+
print(f'FAILED: {type(e).__name__}: {e}')
213+
import traceback
214+
traceback.print_exc()"
208215
shell: bash
209216

210217
- name: Lint

0 commit comments

Comments
 (0)