Search before creating an issue
Bug Description
in pyproject.toml the python version is set to python>=3.11, but filter parameter in tarfile.extractall() is only available from version 3.12.
|
tf.extractall(path=Path(destination), filter="data") |
Tests test_run_job_paralelly and test_run_job_success with pigather fail because filter is not recognized
TypeError: TarFile.extractall() got an unexpected keyword argument 'filter'
Steps to Reproduce
- Set
requires-python = "==3.11" in pyproject.toml
- Run
pixi install
- Run tests
- Observe
test_run_job_paralelly and test_run_job_success failing
Expected Behavior
Tests should not be failing because of a supported python version
Actual Behavior
Tests test_run_job_paralelly and test_run_job_success with pigather fail :
TypeError: TarFile.extractall() got an unexpected keyword argument 'filter'
Environment
Python 3.11
Relevant Log Output
Additional Context
To fix the problem, python version could be set to >=3.12 or filter parameter can be dropped (unavailable in 3.11 and default value is "data" from version 3.14)
more info at https://docs.python.org/3/library/tarfile.html
Search before creating an issue
Bug Description
in
pyproject.tomlthe python version is set to python>=3.11, butfilterparameter intarfile.extractall()is only available from version 3.12.dirac-cwl/src/dirac_cwl/data_management_mocks/sandbox.py
Line 88 in 52e6144
Tests
test_run_job_paralellyandtest_run_job_successwith pigather fail because filter is not recognizedTypeError: TarFile.extractall() got an unexpected keyword argument 'filter'Steps to Reproduce
requires-python = "==3.11"inpyproject.tomlpixi installtest_run_job_paralellyandtest_run_job_successfailingExpected Behavior
Tests should not be failing because of a supported python version
Actual Behavior
Tests
test_run_job_paralellyandtest_run_job_successwithpigatherfail :TypeError: TarFile.extractall() got an unexpected keyword argument 'filter'Environment
Python 3.11
Relevant Log Output
Additional Context
To fix the problem, python version could be set to
>=3.12orfilterparameter can be dropped (unavailable in 3.11 and default value is"data"from version 3.14)more info at https://docs.python.org/3/library/tarfile.html