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

Spleeter(2.4.0) is not compatible with latest Flask version(2.2.2) #862

Open
suraj143rosy opened this issue Jul 27, 2023 · 0 comments
Open
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@suraj143rosy
Copy link

Flask ==2.2.2
Spleeter == 2.4.0
Python >=3.7.3

I have tried using spleeter in a Flask service using the latest version of Flask. Unfortunately when i Import spleeter I am getting the below error. Upon resolving this error by installing the required version of click, i see that Flask is not running. How can we make spleeter to work with the latest version of Flask?

Error:
from spleeter.separator import Separator
2023-07-27 11:43:14.011931: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
2023-07-27 11:43:14.011974: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
/home/vtp-vm-user/.local/lib/python3.7/site-packages/requests/init.py:104: RequestsDependencyWarning: urllib3 (1.26.15) or chardet (5.1.0)/charset_normalizer (2.0.12) doesn't match a supported version!
RequestsDependencyWarning)
Traceback (most recent call last):
File "", line 1, in
File "/home/vtp-vm-user/.local/lib/python3.7/site-packages/spleeter/separator.py", line 30, in
from .audio.adapter import AudioAdapter
File "/home/vtp-vm-user/.local/lib/python3.7/site-packages/spleeter/audio/adapter.py", line 20, in
from ..utils.logging import logger
File "/home/vtp-vm-user/.local/lib/python3.7/site-packages/spleeter/utils/logging.py", line 12, in
from typer import echo
File "/home/vtp-vm-user/.local/lib/python3.7/site-packages/typer/init.py", line 12, in
from click.termui import get_terminal_size as get_terminal_size
ImportError: cannot import name 'get_terminal_size' from 'click.termui' (/home/vtp-vm-user/.local/lib/python3.7/site-packages/click/termui.py)

@suraj143rosy suraj143rosy added bug Something isn't working invalid This doesn't seem right labels Jul 27, 2023
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

1 participant