Skip to content

ValueError: ZIP does not support timestamps before 1980 #245

Description

@hit-labvn

In specific zipfile, I get the error on PyAv due to the changes in #228

 Traceback (most recent call last):
    File "C:\Users\gitlab_runner\AppData\Local\pypa\cibuildwheel\Cache\nuget-cpython\python.3.10.11\tools\lib\runpy.py", line 196, in _run_module_as_main
      return _run_code(code, main_globals, None,
      zip_info = zipfile.ZipInfo.from_file(file_path, zip_file_name)
    File "C:\Users\gitlab_runner\AppData\Local\pypa\cibuildwheel\Cache\nuget-cpython\python.3.10.11\tools\lib\zipfile.py", line 520, in from_file
      zinfo = cls(arcname, date_time)
    File "C:\Users\gitlab_runner\AppData\Local\pypa\cibuildwheel\Cache\nuget-cpython\python.3.10.11\tools\lib\zipfile.py", line 364, in __init__
      raise ValueError('ZIP does not support timestamps before 1980')
  ValueError: ZIP does not support timestamps before 1980
  cibuildwheel: error: Command delvewheel repair --add-path C:/cibw/vendor/bin -w C:\Users\gitlab_runner\AppData\Local\Temp\cibw-run-xk5hrkq1\cp310-win_amd64\repaired_wheel C:\Users\gitlab_runner\AppData\Local\Temp\cibw-run-xk5hrkq1\cp310-win_amd64\built_wheel\av-17.1.0.post1-cp310-cp310-
  win_amd64.whl failed with code 1.

Should we consider changing the mtime to another fixed date that after 1980?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions