pytaglib icon indicating copy to clipboard operation
pytaglib copied to clipboard

Attempting to install venv on Mac OS 15.4 (ARM) gives 'Bad CRC-32 for file 'taglib.cpython-313-darwin.so' error

Open mclow opened this issue 1 year ago • 4 comments

Attempting to install on a M4 Max Mac running Mac OS 15.4 gives the following error spew:

(.venv) marshall@StudlyM4 ~ % pip3 install pytaglib      
Collecting pytaglib
  Using cached pytaglib-3.0.1-cp313-cp313-macosx_11_0_arm64.whl.metadata (5.8 kB)
Using cached pytaglib-3.0.1-cp313-cp313-macosx_11_0_arm64.whl (790 kB)
Installing collected packages: pytaglib
ERROR: Exception:
Traceback (most recent call last):
  File "/Users/marshall/.venv/lib/python3.13/site-packages/pip/_internal/cli/base_command.py", line 106, in _run_wrapper
    status = _inner_run()
  File "/Users/marshall/.venv/lib/python3.13/site-packages/pip/_internal/cli/base_command.py", line 97, in _inner_run
    return self.run(options, args)
           ~~~~~~~~^^^^^^^^^^^^^^^
  File "/Users/marshall/.venv/lib/python3.13/site-packages/pip/_internal/cli/req_command.py", line 67, in wrapper
    return func(self, options, args)
  File "/Users/marshall/.venv/lib/python3.13/site-packages/pip/_internal/commands/install.py", line 458, in run
    installed = install_given_reqs(
        to_install,
    ...<6 lines>...
        pycompile=options.compile,
    )
  File "/Users/marshall/.venv/lib/python3.13/site-packages/pip/_internal/req/__init__.py", line 70, in install_given_reqs
    requirement.install(
    ~~~~~~~~~~~~~~~~~~~^
        global_options,
        ^^^^^^^^^^^^^^^
    ...<5 lines>...
        pycompile=pycompile,
        ^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/Users/marshall/.venv/lib/python3.13/site-packages/pip/_internal/req/req_install.py", line 867, in install
    install_wheel(
    ~~~~~~~~~~~~~^
        self.req.name,
        ^^^^^^^^^^^^^^
    ...<6 lines>...
        requested=self.user_supplied,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/Users/marshall/.venv/lib/python3.13/site-packages/pip/_internal/operations/install/wheel.py", line 732, in install_wheel
    _install_wheel(
    ~~~~~~~~~~~~~~^
        name=name,
        ^^^^^^^^^^
    ...<6 lines>...
        requested=requested,
        ^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/Users/marshall/.venv/lib/python3.13/site-packages/pip/_internal/operations/install/wheel.py", line 590, in _install_wheel
    file.save()
    ~~~~~~~~~^^
  File "/Users/marshall/.venv/lib/python3.13/site-packages/pip/_internal/operations/install/wheel.py", line 380, in save
    shutil.copyfileobj(f, dest, blocksize)
    ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/[email protected]/3.13.3/Frameworks/Python.framework/Versions/3.13/lib/python3.13/shutil.py", line 203, in copyfileobj
    while buf := fsrc_read(length):
                 ~~~~~~~~~^^^^^^^^
  File "/opt/homebrew/Cellar/[email protected]/3.13.3/Frameworks/Python.framework/Versions/3.13/lib/python3.13/zipfile/__init__.py", line 1015, in read
    data = self._read1(n)
  File "/opt/homebrew/Cellar/[email protected]/3.13.3/Frameworks/Python.framework/Versions/3.13/lib/python3.13/zipfile/__init__.py", line 1105, in _read1
    self._update_crc(data)
    ~~~~~~~~~~~~~~~~^^^^^^
  File "/opt/homebrew/Cellar/[email protected]/3.13.3/Frameworks/Python.framework/Versions/3.13/lib/python3.13/zipfile/__init__.py", line 1033, in _update_crc
    raise BadZipFile("Bad CRC-32 for file %r" % self.name)
zipfile.BadZipFile: Bad CRC-32 for file 'taglib.cpython-313-darwin.so'
(.venv) marshall@StudlyM4 ~ % 

mclow avatar Apr 15 '25 16:04 mclow

Before I attempted to install this, I installed taglib with brew install taglib and got taglib 2.0.2

mclow avatar Apr 15 '25 16:04 mclow

Specifying --no-cache-dir did not change the result.

mclow avatar Apr 17 '25 01:04 mclow

Try [email protected], worked on MacOS 14

doodlebro avatar Jul 07 '25 20:07 doodlebro

Thank you! specifying python version 3.11 let my install pytaglib

dennisdebel avatar Sep 14 '25 04:09 dennisdebel