Skip to content

releaase-5.4 BUG: Python version mis-match during build and test#5384

Closed
hjmjohnson wants to merge 1 commit into
release-5.4from
release5.4-fix-find-package-python
Closed

releaase-5.4 BUG: Python version mis-match during build and test#5384
hjmjohnson wants to merge 1 commit into
release-5.4from
release5.4-fix-find-package-python

Conversation

@hjmjohnson
Copy link
Copy Markdown
Member

grep "Found Python" ITK.macOS.Python.logs

-- Found Python3: /Users/runner/hostedtoolcache/Python/3.9.22/x64/bin/python3 (found suitable version "3.9.22", required range is "3.9...3.999") found components: Interpreter Development.Module
-- Found Python: /usr/local/Frameworks/Python.framework/Versions/3.13/bin/python3.13 (found version "3.13.3") found components: Interpreter
Linking CXX shared module Wrapping/Generators/Python/itk/_ITKPyBasePython.cpython-313-darwin.so

NOTE: Python3.13 is found after Python 3.9 is set. The issue is that python3.9 is used to run the tests, but the shared libraries are built with 3.13.

PR Checklist

```txt
grep "Found Python" ITK.macOS.Python.logs

-- Found Python3: /Users/runner/hostedtoolcache/Python/3.9.22/x64/bin/python3 (found suitable version "3.9.22", required range is "3.9...3.999") found components: Interpreter Development.Module
-- Found Python: /usr/local/Frameworks/Python.framework/Versions/3.13/bin/python3.13 (found version "3.13.3") found components: Interpreter
Linking CXX shared module Wrapping/Generators/Python/itk/_ITKPyBasePython.cpython-313-darwin.so
```

NOTE:  Python3.13 is found after Python 3.9 is set.  The issue is that
python3.9 is used to run the tests, but the shared libraries are built
with 3.13.
@hjmjohnson hjmjohnson requested a review from thewtex June 6, 2025 15:03
@hjmjohnson hjmjohnson self-assigned this Jun 6, 2025
@hjmjohnson hjmjohnson added type:Bug Inconsistencies or issues which will cause an incorrect result under some or all circumstances type:Compiler Compiler support or related warnings labels Jun 6, 2025
@hjmjohnson hjmjohnson added this to the ITK 5.4.4 milestone Jun 6, 2025
@github-actions github-actions Bot added area:Python wrapping Python bindings for a class and removed type:Bug Inconsistencies or issues which will cause an incorrect result under some or all circumstances type:Compiler Compiler support or related warnings labels Jun 6, 2025
@hjmjohnson hjmjohnson closed this Jun 6, 2025
@hjmjohnson hjmjohnson deleted the release5.4-fix-find-package-python branch June 6, 2025 19:01
@dzenanz
Copy link
Copy Markdown
Member

dzenanz commented Jun 9, 2025

Closed in favor of #5383.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Python wrapping Python bindings for a class

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants