We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This line of a previous patch ed11fdc#diff-5a1d2bada267526be0b960bf7fa7a3ba81d8159fbe08b9c6aa983838a0cfb7e4R27
introduced the use of 'get_args' which is only supported in python 3.8 and above:
https://stackoverflow.com/a/50101934/485602
Run tests against python 3.7
Tests pass
2819: Test command: /Users/johnsonhj/Dashboard/src/ITK/cmake-debug-build/Wrapping/Generators/Python/itk/itkTestDriver "--add-before-env" "PYTHONPATH" "/Users/johnsonhj/Dashboard/src/ITK/cmake-debug-build/Wrapping/Generators/Python" "--add-before-env" "PYTHONPATH" "/Users/johnsonhj/Dashboard/src/ITK/cmake-debug-build/Wrapping/Generators/Python/itk" "--add-before-libpath" "/Users/johnsonhj/Dashboard/src/ITK/cmake-debug-build/Wrapping/Generators/Python/itk" "--compare" "/Users/johnsonhj/Dashboard/src/ITK/cmake-debug-build/Testing/Temporary/PythonMedianImageFilterTest.png" "/Users/johnsonhj/Dashboard/src/ITK/cmake-debug-build/ExternalData/Modules/Filtering/Smoothing/wrapping/test/Baseline/PythonMedianImageFilterTest.png" "/Users/johnsonhj/.venv/monai37/bin/python3" "/Users/johnsonhj/Dashboard/src/ITK/Modules/Filtering/Smoothing/wrapping/test/MedianImageFilterTest.py" "/Users/johnsonhj/Dashboard/src/ITK/cmake-debug-build/ExternalData/Testing/Data/Input/cthead1.png" "/Users/johnsonhj/Dashboard/src/ITK/cmake-debug-build/Testing/Temporary/PythonMedianImageFilterTest.png" "3" 2819: Test timeout computed to be: 1500 2819: Traceback (most recent call last): 2819: File "/Users/johnsonhj/Dashboard/src/ITK/Modules/Filtering/Smoothing/wrapping/test/MedianImageFilterTest.py", line 27, in <module> 2819: from typing import Sequence, TypeVar, get_type_hints, get_args, get_origin, Union 2819: ImportError: cannot import name 'get_args' from 'typing' (/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/typing.py) 2819: itkTestDriver: Process exited with return value: 1 Failed
100%
Head of ITK on 2021-12-15
Mac with a pyhton 3.7 virutal environment
The text was updated successfully, but these errors were encountered:
https://docs.python.org/3.8/library/typing.html
typing.get_args(tp)¶ [ CLIP --- ] New in version 3.8.
Sorry, something went wrong.
BUG: Conditional python 3.8 code optional
6357778
Make code imported from Python 3.8+ features an optional testcase. Resolves: InsightSoftwareConsortium#2963.
fb3156d
c779d09
Make code imported from Python 3.8+ features an optional testcase. Resolves: #2963.
3759936
thewtex
hjmjohnson
Successfully merging a pull request may close this issue.
Description
This line of a previous patch
ed11fdc#diff-5a1d2bada267526be0b960bf7fa7a3ba81d8159fbe08b9c6aa983838a0cfb7e4R27
introduced the use of 'get_args' which is only supported in python 3.8 and above:
https://stackoverflow.com/a/50101934/485602
Steps to Reproduce
Run tests against python 3.7
Expected behavior
Tests pass
Actual behavior
Reproducibility
100%
Versions
Head of ITK on 2021-12-15
Environment
Mac with a pyhton 3.7 virutal environment
Additional Information
The text was updated successfully, but these errors were encountered: