hdmf icon indicating copy to clipboard operation
hdmf copied to clipboard

[Bug]: Daily tests are failing due to tox/tarfile/python error

Open rly opened this issue 5 months ago • 0 comments

What happened?

https://github.com/hdmf-dev/hdmf/actions/runs/16409158456/job/46360464748 When running tox -e wheelinstall --installpkg dist/*.tar.gz:

Started two days ago when the latest version of tox was released on pypi. Happens only on:

  • Windows with Python 3.9 and 3.10
  • Mac with Python 3.10
  • not Linux, not later Python versions, not Mac with Python 3.9

Tracking issue upstream: https://github.com/tox-dev/tox/issues/3565

Steps to Reproduce

run wheelinstall GitHub Actions with the above configuration

Traceback

Traceback (most recent call last):
  File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\tox\session\cmd\run\single.py", line 47, in _evaluate
    tox_env.setup()
  File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\tox\tox_env\api.py", line 283, in setup
    self._setup_with_env()
  File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\tox\tox_env\runner.py", line 146, in _setup_with_env
    self._setup_pkg()
  File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\tox\tox_env\runner.py", line 169, in _setup_pkg
    self._packages = self._build_packages()
  File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\tox\tox_env\python\runner.py", line 122, in _build_packages
    packages = package_env.perform_packaging(self.conf)
  File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\tox\tox_env\package.py", line 46, in _func
    return meth(*args, **kwargs)
  File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\tox\tox_env\python\virtual_env\package\cmd_builder.py", line 96, in perform_packaging
    return self.extract_install_info(for_env, path)
  File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\tox\tox_env\package.py", line 46, in _func
    return meth(*args, **kwargs)
  File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\tox\tox_env\python\virtual_env\package\cmd_builder.py", line 110, in extract_install_info
    tar.extractall(path=str(work_dir), filter=tarfile.data_filter)  # noqa: S202
AttributeError: module 'tarfile' has no attribute 'data_filter'

Operating System

macOS

Python Version

3.10

Package Versions

No response

rly avatar Jul 22 '25 15:07 rly