Skip to content

Macos wheel fails on 0.35, works on 0.34 #2016

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

Open
Alex-EEE opened this issue May 9, 2025 · 0 comments
Open

Macos wheel fails on 0.35, works on 0.34 #2016

Alex-EEE opened this issue May 9, 2025 · 0 comments

Comments

@Alex-EEE
Copy link

Alex-EEE commented May 9, 2025

Fails with "zlib.error: Error -3 while decompressing data: invalid stored block lengths"

(hf) (main) zero-shot-bench $ pip install --force-reinstall /Users/alex/Downloads/llama_cpp_python-0.3.5-cp312-cp312-macosx_11_0_arm64.whl
Processing /Users/alex/Downloads/llama_cpp_python-0.3.5-cp312-cp312-macosx_11_0_arm64.whl
Collecting typing-extensions>=4.5.0 (from llama-cpp-python==0.3.5)
Downloading typing_extensions-4.13.2-py3-none-any.whl.metadata (3.0 kB)
Collecting numpy>=1.20.0 (from llama-cpp-python==0.3.5)
Using cached numpy-2.2.5-cp312-cp312-macosx_14_0_arm64.whl.metadata (62 kB)
Collecting diskcache>=5.6.1 (from llama-cpp-python==0.3.5)
Using cached diskcache-5.6.3-py3-none-any.whl.metadata (20 kB)
Collecting jinja2>=2.11.3 (from llama-cpp-python==0.3.5)
Using cached jinja2-3.1.6-py3-none-any.whl.metadata (2.9 kB)
Collecting MarkupSafe>=2.0 (from jinja2>=2.11.3->llama-cpp-python==0.3.5)
Using cached MarkupSafe-3.0.2-cp312-cp312-macosx_11_0_arm64.whl.metadata (4.0 kB)
Using cached diskcache-5.6.3-py3-none-any.whl (45 kB)
Using cached jinja2-3.1.6-py3-none-any.whl (134 kB)
Using cached numpy-2.2.5-cp312-cp312-macosx_14_0_arm64.whl (5.2 MB)
Downloading typing_extensions-4.13.2-py3-none-any.whl (45 kB)
Using cached MarkupSafe-3.0.2-cp312-cp312-macosx_11_0_arm64.whl (12 kB)
Installing collected packages: typing-extensions, numpy, MarkupSafe, diskcache, jinja2, llama-cpp-python
Attempting uninstall: typing-extensions
Found existing installation: typing_extensions 4.13.2
Uninstalling typing_extensions-4.13.2:
Successfully uninstalled typing_extensions-4.13.2
Attempting uninstall: numpy
Found existing installation: numpy 2.2.5
Uninstalling numpy-2.2.5:
Successfully uninstalled numpy-2.2.5
Attempting uninstall: MarkupSafe
Found existing installation: MarkupSafe 3.0.2
Uninstalling MarkupSafe-3.0.2:
Successfully uninstalled MarkupSafe-3.0.2
Attempting uninstall: diskcache
Found existing installation: diskcache 5.6.3
Uninstalling diskcache-5.6.3:
Successfully uninstalled diskcache-5.6.3
Attempting uninstall: jinja2
Found existing installation: Jinja2 3.1.6
Uninstalling Jinja2-3.1.6:
Successfully uninstalled Jinja2-3.1.6
ERROR: Exception:
Traceback (most recent call last):
File "/Users/alex/miniforge3/envs/hf/lib/python3.12/site-packages/pip/_internal/cli/base_command.py", line 106, in _run_wrapper
status = _inner_run()
^^^^^^^^^^^^
File "/Users/alex/miniforge3/envs/hf/lib/python3.12/site-packages/pip/_internal/cli/base_command.py", line 97, in _inner_run
return self.run(options, args)
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/alex/miniforge3/envs/hf/lib/python3.12/site-packages/pip/_internal/cli/req_command.py", line 67, in wrapper
return func(self, options, args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/alex/miniforge3/envs/hf/lib/python3.12/site-packages/pip/_internal/commands/install.py", line 458, in run
installed = install_given_reqs(
^^^^^^^^^^^^^^^^^^^
File "/Users/alex/miniforge3/envs/hf/lib/python3.12/site-packages/pip/_internal/req/init.py", line 70, in install_given_reqs
requirement.install(
File "/Users/alex/miniforge3/envs/hf/lib/python3.12/site-packages/pip/_internal/req/req_install.py", line 867, in install
install_wheel(
File "/Users/alex/miniforge3/envs/hf/lib/python3.12/site-packages/pip/_internal/operations/install/wheel.py", line 732, in install_wheel
_install_wheel(
File "/Users/alex/miniforge3/envs/hf/lib/python3.12/site-packages/pip/_internal/operations/install/wheel.py", line 590, in _install_wheel
file.save()
File "/Users/alex/miniforge3/envs/hf/lib/python3.12/site-packages/pip/_internal/operations/install/wheel.py", line 380, in save
shutil.copyfileobj(f, dest, blocksize)
File "/Users/alex/miniforge3/envs/hf/lib/python3.12/shutil.py", line 203, in copyfileobj
while buf := fsrc_read(length):
^^^^^^^^^^^^^^^^^
File "/Users/alex/miniforge3/envs/hf/lib/python3.12/zipfile/init.py", line 981, in read
data = self._read1(n)
^^^^^^^^^^^^^^
File "/Users/alex/miniforge3/envs/hf/lib/python3.12/zipfile/init.py", line 1057, in _read1
data = self._decompressor.decompress(data, n)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
zlib.error: Error -3 while decompressing data: invalid stored block lengths

(hf) (main) zero-shot-bench $ pip install /Users/alex/Downloads/llama_cpp_python-0.3.4-cp312-cp312-macosx_11_0_arm64.whl
Processing /Users/alex/Downloads/llama_cpp_python-0.3.4-cp312-cp312-macosx_11_0_arm64.whl
Requirement already satisfied: typing-extensions>=4.5.0 in /Users/alex/miniforge3/envs/hf/lib/python3.12/site-packages (from llama-cpp-python==0.3.4) (4.13.2)
Requirement already satisfied: numpy>=1.20.0 in /Users/alex/miniforge3/envs/hf/lib/python3.12/site-packages (from llama-cpp-python==0.3.4) (2.2.5)
Requirement already satisfied: diskcache>=5.6.1 in /Users/alex/miniforge3/envs/hf/lib/python3.12/site-packages (from llama-cpp-python==0.3.4) (5.6.3)
Requirement already satisfied: jinja2>=2.11.3 in /Users/alex/miniforge3/envs/hf/lib/python3.12/site-packages (from llama-cpp-python==0.3.4) (3.1.6)
Requirement already satisfied: MarkupSafe>=2.0 in /Users/alex/miniforge3/envs/hf/lib/python3.12/site-packages (from jinja2>=2.11.3->llama-cpp-python==0.3.4) (3.0.2)
Installing collected packages: llama-cpp-python
Successfully installed llama-cpp-python-0.3.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant