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

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

Open
wptechnology opened this issue Nov 4, 2023 · 1 comment
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@wptechnology
Copy link

  • [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

@wptechnology wptechnology added bug Something isn't working invalid This doesn't seem right labels Nov 4, 2023
@bobsam
Copy link

bobsam commented Mar 28, 2024

Do you have a solution now, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants