Spleeter(2.4.0) is not compatible with latest Flask version(2.2.2)
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 "
I also encountered the same problem
I also encountered the same problem
Me, too. You got it?
i had this and got it working. not with the latest version of spleeter or flask.. it seems the probleem is deeply rooted. also i had to downgrade python. i got it working on python 3.8 on a virtual env (install with deadsnakes):
steps:
- install python 3.8 in parallel to your existing python:
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.8 python3.8-venv python3.8-distutils
- create virtual environment
python3.8 -m venv myenv
source myenv/bin/activate
3)install deps
pip install spleeter Flask==3.0.3 tensorflow-cpu protobuf==3.19.6 tensorflow numpy click==8.1.7 werkzeug
it will take ages (more than 2 hours) and it downloads lots of packages but in the end it works
any way how to get it working with specific versions of tensorflow-cpu or tensorflow? I am having the same problem, but the download time and space it occupies is not very efficient.