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

[Feature] tell people how to run from git #903

Open
ensonic opened this issue Aug 4, 2024 · 2 comments · May be fixed by #904
Open

[Feature] tell people how to run from git #903

ensonic opened this issue Aug 4, 2024 · 2 comments · May be fixed by #904
Labels
enhancement New feature or request feature New feature for Spleeter

Comments

@ensonic
Copy link

ensonic commented Aug 4, 2024

Description

Whike f3rr0-C47 tells you how to build from git it does not tell you how to run it. I am not here to learn yet another build system in depth and after glancing the poetry docs and trying e.g.

> poetry shell
The currently activated Python version 3.12.3 is not supported by the project (>=3.7.1,<3.11).
Trying to find and use a compatible version. 
Using python3.8 (3.8.19)
Spawning shell within /home/ensonic/.cache/pypoetry/virtualenvs/spleeter-_aolmB5c-py3.8
./spleeterenv/bin/spleeter --help
Traceback (most recent call last):
  File "/usr/lib64/python3.11/importlib/metadata/__init__.py", line 563, in from_name
    return next(cls.discover(name=name))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ensonic/projects/audio/spleeter/./spleeterenv/bin/spleeter", line 33, in <module>
    sys.exit(load_entry_point('spleeter==2.0.2', 'console_scripts', 'spleeter')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ensonic/projects/audio/spleeter/./spleeterenv/bin/spleeter", line 22, in importlib_load_entry_point
    for entry_point in distribution(dist_name).entry_points
                       ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/importlib/metadata/__init__.py", line 982, in distribution
    return Distribution.from_name(distribution_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/importlib/metadata/__init__.py", line 565, in from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for spleeter

The binary install options don't work either. These days distros want you to use pipx, but that fails.

 pipx install spleeter
Fatal error from pip prevented installation. Full pip output in file:
    /home/ensonic/.local/pipx/logs/cmd_2024-08-04_13.56.45_pip_errors.log

pip seemed to fail to build package:
    numpy<1.19.0,>=1.16.0

Some possibly relevant errors from pip install:
    error: subprocess-exited-with-error
    subprocess.CalledProcessError: Command '['/home/ensonic/.local/pipx/venvs/spleeter/bin/python', '-m', 'cython', '-3', '--fast-fail', '-o', '_mt19937.c', '_mt19937.pyx']' returned non-zero exit status 1.
    RuntimeError: Running cythonize failed!
    error: metadata-generation-failed

Error installing spleeter.
@ensonic ensonic added enhancement New feature or request feature New feature for Spleeter labels Aug 4, 2024
@ensonic
Copy link
Author

ensonic commented Aug 4, 2024

Now that I posted it I've found the answer, e.g.

poetry run spleeter separate --help

ensonic added a commit to ensonic/spleeter that referenced this issue Aug 4, 2024
Add a sample invocation of the tool itself.

Fixes deezer#903 903
@ensonic ensonic linked a pull request Aug 4, 2024 that will close this issue
6 tasks
@yllekz
Copy link

yllekz commented Aug 8, 2024

The install appears to have broken on macOS as well, particularly with Apple Silicon chips. Trying to get Spleeter running per this guide seems to result in missing dependencies:

PackagesNotFoundError: The following packages are not available from current channels:

  - tensorflow=1.14.0*
  - python=3.7*
  - pandas==0.25.1

I managed to fix it after tediously looking up newer versions of these dependencies:

#Version numbers will change as new versions are released.
#Pandas+Python+Tensorflow versions found here: https://repo.anaconda.com/pkgs/main/osx-arm64/

name: spleeter-cpu

channels:
  - conda-forge
  - anaconda

dependencies:
  - python=3.9
  - tensorflow=2.12.0
  - ffmpeg
  - pandas==2.2.2
  - requests
  - pip
  - pip:
    - museval==0.3.0
    - musdb==0.3.1
    - norbert==0.2.1
    - spleeter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature New feature for Spleeter
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants