deezer / spleeter

Deezer source separation library including pretrained models.

Home Page:https://research.deezer.com/projects/spleeter.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] Unable to install spleeter on Macbook running M1 chips because of old numpy version !!!

wptechnology opened this issue · comments

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

Description

The error says that numpy no longer support long attribute.
And it is impossible to install 1.19.5 with Python 3.9

Step to reproduce

Just try to install and run spleeter with python 3.9

Output

.../Library/Python/3.9/lib/python/site-packages/urllib3/init.py:34: NotOpenSSLWarning: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: urllib3/urllib3#3020
warnings.warn(
.../Library/Python/3.9/lib/python/site-packages/numba/types/init.py:110: FutureWarning: In the future np.long will be defined as the corresponding NumPy scalar.
long_ = _make_signed(np.long)
Traceback (most recent call last):
File ".../Library/Python/3.9/bin//spleeter", line 8, in
sys.exit(entrypoint())
File ".../Library/Python/3.9/lib/python/site-packages/spleeter/main.py", line 256, in entrypoint
spleeter()
File ".../Library/Python/3.9/lib/python/site-packages/typer/main.py", line 214, in call
return get_command(self)(*args, **kwargs)
File ".../Library/Python/3.9/lib/python/site-packages/click/core.py", line 829, in call
return self.main(*args, **kwargs)
File ".../Library/Python/3.9/lib/python/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File ".../Library/Python/3.9/lib/python/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File ".../Library/Python/3.9/lib/python/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File ".../Library/Python/3.9/lib/python/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File ".../Library/Python/3.9/lib/python/site-packages/typer/main.py", line 497, in wrapper
return callback(**use_params) # type: ignore
File ".../Library/Python/3.9/lib/python/site-packages/spleeter/main.py", line 114, in separate
from .separator import Separator
File ".../Library/Python/3.9/lib/python/site-packages/spleeter/separator.py", line 27, in
from librosa.core import istft, stft
File ".../Library/Python/3.9/lib/python/site-packages/librosa/init.py", line 211, in
from . import core
File ".../Library/Python/3.9/lib/python/site-packages/librosa/core/init.py", line 5, in
from .convert import * # pylint: disable=wildcard-import
File ".../Library/Python/3.9/lib/python/site-packages/librosa/core/convert.py", line 7, in
from . import notation
File ".../Library/Python/3.9/lib/python/site-packages/librosa/core/notation.py", line 8, in
from ..util.exceptions import ParameterError
File ".../Library/Python/3.9/lib/python/site-packages/librosa/util/init.py", line 83, in
from .utils import * # pylint: disable=wildcard-import
File ".../Library/Python/3.9/lib/python/site-packages/librosa/util/utils.py", line 10, in
import numba
File ".../Library/Python/3.9/lib/python/site-packages/numba/init.py", line 15, in
from . import config, errors, runtests as runtests, types
File ".../Library/Python/3.9/lib/python/site-packages/numba/types/init.py", line 110, in
long
= _make_signed(np.long)
File ".../Library/Python/3.9/lib/python/site-packages/numpy/init.py", line 333, in getattr
raise AttributeError("module {!r} has no attribute "

Environment

OS MacOS
Installation type pip
RAM available 64Go
Hardware spec Apple M1 Max

Additional context