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

Installing the pre-built v0.2.85 – v0.3.0 Metal wheels for Python 3.9 – 3.12 yields Bad magic number for file header #1650

Open
lsorber opened this issue Aug 2, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@lsorber
Copy link
Contributor

lsorber commented Aug 2, 2024

Expected Behavior

Installing the pre-built v0.2.85 Metal wheels works for all supported versions of Python.

Current Behavior

Installing the pre-built v0.2.85 Metal wheels for Python {3.10, 3.11} yields Bad magic number for file header. The Python {3.9, 3.12} versions work as expected.

Environment and Context

macOS 14 on a MacBook Pro M1 Max

Steps to Reproduce

You can test this by downloading the wheels and trying to decompress them:

Decompressing fails for:

Decompressing works for:

@lsorber
Copy link
Contributor Author

lsorber commented Aug 2, 2024

Update: I see that the pre-built v0.2.85 Metal wheels produced by the GitHub Actions workflow seem to work fine [1], so the issue must be with the way that the artifacts are turned into a release.

[1] https://github.com/abetlen/llama-cpp-python/actions/runs/10183985970

@abetlen abetlen added the bug Something isn't working label Aug 7, 2024
@lsorber
Copy link
Contributor Author

lsorber commented Aug 7, 2024

Still an issue for v0.2.86 and v0.2.87. Interestingly, for v0.2.86 only the Python 3.10 version works.

@lsorber lsorber changed the title Installing the pre-built v0.2.85 Metal wheels for Python {3.10, 3.11} yields Bad magic number for file header Installing the pre-built v0.2.85 – v0.2.87 Metal wheels for Python {3.10, 3.11} yields Bad magic number for file header Aug 7, 2024
@lsorber
Copy link
Contributor Author

lsorber commented Sep 25, 2024

Still an issue for all v0.3.0 Metal builds: https://github.com/abetlen/llama-cpp-python/releases/tag/v0.3.0-metal. To verify that this is an issue, simply download the wheel file and try to decompress it.

@lsorber lsorber changed the title Installing the pre-built v0.2.85 – v0.2.87 Metal wheels for Python {3.10, 3.11} yields Bad magic number for file header Installing the pre-built v0.2.85 – v0.3.0 Metal wheels for Python 3.9 – 3.12 yields Bad magic number for file header Sep 25, 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

2 participants