Skip to content
New issue

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

Failure to install tomli from source distribution #579

Closed
charliermarsh opened this issue Dec 6, 2023 · 3 comments · Fixed by #634
Closed

Failure to install tomli from source distribution #579

charliermarsh opened this issue Dec 6, 2023 · 3 comments · Fixed by #634
Labels
bug Something isn't working

Comments

@charliermarsh
Copy link
Member

Given tomli @ https://files.pythonhosted.org/packages/c0/3f/d7af728f075fb08564c5949a9c95e44352e23dee646869fa104a3b2060a3/tomli-2.0.1.tar.gz:

error: Failed to download distributions
  Caused by: Failed to build: tomli @ https://files.pythonhosted.org/packages/c0/3f/d7af728f075fb08564c5949a9c95e44352e23dee646869fa104a3b2060a3/tomli-2.0.1.tar.gz
  Caused by: Build backend failed to build wheel through `build_wheel()`:
--- stdout:

--- stderr:
Traceback (most recent call last):
  File "<string>", line 6, in <module>
  File "/private/var/folders/nt/6gf2v7_s3k13zq_t3944rwz40000gn/T/.tmp3fbPE1/.venv/lib/python3.10/site-packages/flit_core/buildapi.py", line 72, in build_wheel
    info = make_wheel_in(pyproj_toml, Path(wheel_directory))
  File "/private/var/folders/nt/6gf2v7_s3k13zq_t3944rwz40000gn/T/.tmp3fbPE1/.venv/lib/python3.10/site-packages/flit_core/wheel.py", line 224, in make_wheel_in
    wb.build(editable)
  File "/private/var/folders/nt/6gf2v7_s3k13zq_t3944rwz40000gn/T/.tmp3fbPE1/.venv/lib/python3.10/site-packages/flit_core/wheel.py", line 210, in build
    self.copy_module()
  File "/private/var/folders/nt/6gf2v7_s3k13zq_t3944rwz40000gn/T/.tmp3fbPE1/.venv/lib/python3.10/site-packages/flit_core/wheel.py", line 164, in copy_module
    self._add_file(full_path, rel_path)
  File "/private/var/folders/nt/6gf2v7_s3k13zq_t3944rwz40000gn/T/.tmp3fbPE1/.venv/lib/python3.10/site-packages/flit_core/wheel.py", line 111, in _add_file
    zinfo = zipfile.ZipInfo.from_file(full_path, rel_path)
  File "/Users/crmarsh/.local/share/rtx/installs/python/3.10.13/lib/python3.10/zipfile.py", line 520, in from_file
    zinfo = cls(arcname, date_time)
  File "/Users/crmarsh/.local/share/rtx/installs/python/3.10.13/lib/python3.10/zipfile.py", line 364, in __init__
    raise ValueError('ZIP does not support timestamps before 1980')
ValueError: ZIP does not support timestamps before 1980
---
@charliermarsh charliermarsh added the bug Something isn't working label Dec 6, 2023
@charliermarsh
Copy link
Member Author

pip installs without error.

@charliermarsh
Copy link
Member Author

@konstin - Did you have a chance to look at this one?

konstin added a commit that referenced this issue Dec 13, 2023
@konstin
Copy link
Member

konstin commented Dec 13, 2023

Filed upstream: alexcrichton/tar-rs#349

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants