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

Python 3.13 fails to install on windows: Offset to Central Directory cannot be held in an Int64. #888

Closed
2 of 5 tasks
konstin opened this issue Jun 10, 2024 · 6 comments
Closed
2 of 5 tasks
Assignees
Labels
bug Something isn't working

Comments

@konstin
Copy link

konstin commented Jun 10, 2024

Description:
The following used to work on windows but now fails:

- uses: actions/setup-python@v5
  with:
    python-version: "3.13"
    allow-prereleases: true
    cache: pip
   Version ~3.13.0-0 was not found in the local cache
  Version ~3.13.0-0 is available for downloading
  Download from "https://github.com/actions/python-versions/releases/download/3.13.0-beta.2-9442465578/python-3.13.0-beta.2-win32-x64.zip"
  Extract downloaded archive
  "C:\Program Files\PowerShell\7\pwsh.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command "$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ; try { [System.IO.Compression.ZipFile]::ExtractToDirectory('D:\a\_temp\267e2789-454c-4fa7-a8f7-e25fb913c717', 'D:\a\_temp\c2ea4a3f-68d8-4c8a-a2ec-da68425c83eb', $true) } catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath 'D:\a\_temp\267e2789-454c-4fa7-a8f7-e25fb913c717' -DestinationPath 'D:\a\_temp\c2ea4a3f-68d8-4c8a-a2ec-da68425c83eb' -Force } else { throw $_ } } ;"
  Exception: Exception calling "ExtractToDirectory" with "3" argument(s): "Offset to Central Directory cannot be held in an Int64."
  Error: The process 'C:\Program Files\PowerShell\7\pwsh.exe' failed with exit code 1

Action version:
actions/setup-python@v5

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
3.13.0

Repro steps:
Failing job: https://github.com/astral-sh/uv/actions/runs/9447197607/job/26018697091
Workflow: https://github.com/astral-sh/uv/blob/4125cb26b804d1a0e4f095b8411bba819b089ad4/.github/workflows/ci.yml#L889-L903

Expected behavior:
The installation works

Actual behavior:

Exception calling "ExtractToDirectory" with "3" argument(s): "Offset to Central Directory cannot be held in an Int64."
@konstin konstin added bug Something isn't working needs triage labels Jun 10, 2024
konstin added a commit to astral-sh/uv that referenced this issue Jun 10, 2024
See actions/setup-python#888

---------

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
@xqt
Copy link

xqt commented Jun 10, 2024

Python 3.13.0b2 also fails for Mac OS and Ubuntu, see https://phabricator.wikimedia.org/T367054

@HarithaVattikuti
Copy link
Contributor

Hello @konstin
Thankyou for creating this issue. we are working on the fix and will get back to you sooner.

@aparnajyothi-y
Copy link
Contributor

Hello Everyone, we merged the fix for this issue. Please validate from your end and confirm.

@xqt
Copy link

xqt commented Jun 12, 2024

LGTM, thanks a lot for this quick fix.

@priya-kinthali priya-kinthali self-assigned this Jul 2, 2024
@priya-kinthali
Copy link
Contributor

Hello @konstin 👋,
Thank you for the detailed report!
We are pleased to inform you that the issue you encountered while setting up Python v3.13 on windows has been addressed through the generation of new artifacts. With this fix, your workflows should now be able to run successfully using the latest version of actions/setup-python.
Could you kindly verify if everything is now functioning as expected on your end? Your feedback is invaluable. If you come across any additional issues, please do not hesitate to bring them to our attention. Thank you!

@konstin
Copy link
Author

konstin commented Jul 3, 2024

It's fixed, thanks

@konstin konstin closed this as completed Jul 3, 2024
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

No branches or pull requests

5 participants