deezer / deezer/spleeter

Install fail on macOS Sonoma 14.2, on Apple M2 laptop

Open
#889 4 comments 6 reactions 0 assignees View on GitHub
bug invalid
Dominant language
Python
Stars
28.4k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

- [ √] I didn't find a similar issue already open.
- [ √] I read the documentation (README AND Wiki)
- [ √] I have installed FFMpeg
- [ √] My problem is related to Spleeter only, not a derivative product (such as Webapplication, or GUI provided by others)

## Description

Tried to install using:

conda install -c conda-forge ffmpeg libsndfile
[ran with no errors]

Then:

pip install spleeter

## Step to reproduce

conda install -c conda-forge ffmpeg libsndfile
pip install spleeter

## Output

```bash
Collecting spleeter
Using cached spleeter-2.1.0-py3-none-any.whl (50 kB)
Collecting ffmpeg-python==0.2.0 (from spleeter)
Using cached ffmpeg_python-0.2.0-py3-none-any.whl (25 kB)
Collecting httpx<0.17.0,>=0.16.1 (from httpx[http2]<0.17.0,>=0.16.1->spleeter)
Using cached httpx-0.16.1-py3-none-any.whl (65 kB)
Collecting librosa==0.8.0 (from spleeter)
Using cached librosa-0.8.0.tar.gz (183 kB)
Preparing metadata (setup.py) ... done
Collecting norbert==0.2.1 (from spleeter)
Using cached norbert-0.2.1-py2.py3-none-any.whl (11 kB)
Collecting numpy<1.19.0,>=1.16.0 (from spleeter)
Using cached numpy-1.18.5.zip (5.4 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [56 lines of output]
Running from numpy source directory.
:461: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
/private/var/folders/0k/stq7zkqn3h762cyr46w84xfw0000gq/T/pip-install-omq0ein8/numpy_8b6672193e87417698a6a169810be05e/tools/cythonize.py:75: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
required_version = LooseVersion('0.29.14')
/private/var/folders/0k/stq7zkqn3h762cyr46w84xfw0000gq/T/pip-install-omq0ein8/numpy_8b6672193e87417698a6a169810be05e/tools/cythonize.py:77: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if LooseVersion(cython_version) < required_version:

Error compiling Cython file:
------------------------------------------------------------
...
self.rng_state.ctr.v[i] = counter[i]

self._reset_state_variables()

self._bitgen.state = &self.rng_state
self._bitgen.next_uint64 = &philox_uint64
^
------------------------------------------------------------

_philox.pyx:195:35: Cannot assign type 'uint64_t (*)(void *) except? -1 nogil' to 'uint64_t (*)(void *) noexcept nogil'. Exception values are incompatible. Suggest adding 'noexcept' to type 'uint64_t (void *) except? -1 nogil'.
Processing numpy/random/_bounded_integers.pxd.in
Processing numpy/random/_philox.pyx
Traceback (most recent call last):
File "/private/var/folders/0k/stq7zkqn3h762cyr46w84xfw0000gq/T/pip-install-omq0ein8/numpy_8b6672193e87417698a6a169810be05e/tools/cythonize.py", line 238, in
main()
File "/private/var/folders/0k/stq7zkqn3h762cyr46w84xfw0000gq/T/pip-install-omq0ein8/numpy_8b6672193e87417698a6a169810be05e/tools/cythonize.py", line 234, in main
find_process_files(root_dir)
File "/private/var/folders/0k/stq7zkqn3h762cyr46w84xfw0000gq/T/pip-install-omq0ein8/numpy_8b6672193e87417698a6a169810be05e/tools/cythonize.py", line 225, in find_process_files
process(root_dir, fromfile, tofile, function, hash_db)
File "/private/var/folders/0k/stq7zkqn3h762cyr46w84xfw0000gq/T/pip-install-omq0ein8/numpy_8b6672193e87417698a6a169810be05e/tools/cythonize.py", line 191, in process
processor_function(fromfile, tofile)
File "/private/var/folders/0k/stq7zkqn3h762cyr46w84xfw0000gq/T/pip-install-omq0ein8/numpy_8b6672193e87417698a6a169810be05e/tools/cythonize.py", line 80, in process_pyx
subprocess.check_call(
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/Library/Frameworks/Python.framework/Versions/3.12/bin/python3.12', '-m', 'cython', '-3', '--fast-fail', '-o', '_philox.c', '_philox.pyx']' returned non-zero exit status 1.
Cythonizing sources
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/0k/stq7zkqn3h762cyr46w84xfw0000gq/T/pip-build-env-k8ou_7d3/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 366, in prepare_metadata_for_build_wheel
self.run_setup()
File "/private/var/folders/0k/stq7zkqn3h762cyr46w84xfw0000gq/T/pip-build-env-k8ou_7d3/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 480, in run_setup
super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
File "/private/var/folders/0k/stq7zkqn3h762cyr46w84xfw0000gq/T/pip-build-env-k8ou_7d3/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 311, in run_setup
exec(code, locals())
File "", line 488, in
File "", line 469, in setup_package
File "", line 275, in generate_cython
RuntimeError: Running cythonize failed!
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
```

## Environment

| | |
| ----------------- | ------------------------------- |
| OS | MacOS 14.2|
| Installation type | Conda / pip |
| RAM available | 24 GB |
| Hardware spec | not sure ... The laptop is using Apple's M2 chip |

## Additional context

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.