Skip to content

Commit 816243c

Browse files
jhonabreulclaude
andcommitted
CI: fix find_libpython invocation for Python DLL resolution
main.yml resolved PYTHONNET_PYDLL via "python -m find_libpython", but this fork vendors the module as pythonnet.find_libpython. The old top-level invocation failed with "No module named find_libpython", leaving PYTHONNET_PYDLL empty and crashing every embedding test in PythonEngine.Initialize() with DllNotFoundException ("Could not load ."). Use "python -m pythonnet.find_libpython" in both the Windows and non-Windows env-setup steps, matching ARM.yml and nuget-preview.yml. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 098f6db commit 816243c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ jobs:
5454
- name: Set Python DLL path and PYTHONHOME (non Windows)
5555
if: ${{ matrix.os != 'windows' }}
5656
run: |
57-
echo PYTHONNET_PYDLL=$(python -m find_libpython) >> $GITHUB_ENV
57+
echo PYTHONNET_PYDLL=$(python -m pythonnet.find_libpython) >> $GITHUB_ENV
5858
echo PYTHONHOME=$(python -c 'import sys; print(sys.prefix)') >> $GITHUB_ENV
5959
6060
- name: Set Python DLL path and PYTHONHOME (Windows)
6161
if: ${{ matrix.os == 'windows' }}
6262
run: |
63-
Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append -InputObject "PYTHONNET_PYDLL=$(python -m find_libpython)"
63+
Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append -InputObject "PYTHONNET_PYDLL=$(python -m pythonnet.find_libpython)"
6464
Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append -InputObject "PYTHONHOME=$(python -c 'import sys; print(sys.prefix)')"
6565
6666
- name: Embedding tests

0 commit comments

Comments
 (0)