Open SteveC opened 1 year ago
Same on Windows 11 in Virtual Env
removing 'd:\tortoise-tts\lib\site-packages\TorToiSe-2.4.2-py3.10.egg' (and everything under it)
creating d:\tortoise-tts\lib\site-packages\TorToiSe-2.4.2-py3.10.egg
Extracting TorToiSe-2.4.2-py3.10.egg to d:\tortoise-tts\lib\site-packages
TorToiSe 2.4.2 is already the active version in easy-install.pth
Installing tortoise_tts.py script to D:\tortoise-tts\Scripts
Installed d:\tortoise-tts\lib\site-packages\tortoise-2.4.2-py3.10.egg
Processing dependencies for TorToiSe==2.4.2
Searching for numpy>=1.17
Reading https://pypi.org/simple/numpy/
D:\tortoise-tts\lib\site-packages\pkg_resources\__init__.py:123: PkgResourcesDeprecationWarning: is an invalid version and will not be supported in a future release
warnings.warn(
Downloading https://files.pythonhosted.org/packages/ee/70/c9055fe381e9e5103222e2f5efeb0cfb4524ab3c7d75b4eedc330380f9f5/numpy-1.24.1-cp310-cp310-win_amd64.whl#sha256=b07b40f5fb4fa034120a5796288f24c1fe0e0580bbfff99897ba6267af42def2
Best match: numpy 1.24.1
Processing numpy-1.24.1-cp310-cp310-win_amd64.whl
Installing numpy-1.24.1-cp310-cp310-win_amd64.whl to d:\tortoise-tts\lib\site-packages
Adding numpy 1.24.1 to easy-install.pth file
Installing f2py-script.py script to D:\tortoise-tts\Scripts
Installing f2py.exe script to D:\tortoise-tts\Scripts
Installed d:\tortoise-tts\lib\site-packages\numpy-1.24.1-py3.10-win-amd64.egg
error: numpy 1.24.1 is installed but numpy<1.24,>=1.18 is required by {'numba'}
FWIW I am halfway there by
ln -s tortoise-tts/tortoise
because it also wants to be in that directory despite downloading it there and can't find files otherwiseI don't have it working yet, it's still downloading tons of stuff but some progress...
I added numpy<1.24,>=1.18
in the requirements.txt
file and before running python setup.py install
, i ran pip install numpy<1.24,>=1.18
It worked after that, but took more than 25 mins to execute the sample command in the README.
i have the same exact issue but @ilovefreesw's fix didnt work for me. Using ubuntu 20.04.
The requirements.txt file insists on having numpy==1.20.0 and numba==0.48.0 Which posed problems in my case. So, I simply removed these version requirements.
Note: 1) I'm using Ubuntu 22.04 with python 3.10.9. 2) I created a conda environnment (named TTS) with python 3.10.9 3) I conda installed torch, torchaudio and torchvision according to https://pytorch.org/get-started/locally/ (cuda11.6, 1.13.0+cu116) (see below for the complete list of packages installed in my environnment)
But, in requirements.txt, I replaced the two following lines:
numpy==1.20.0
numba==0.48.0
with:
numpy
numba
Then, python -m pip install -r ./requirements.txt
. Without specifying the versions, pip decided to install numpy 1.23.5 and numba 0.55.2 and it worked.
For completeness: I give the result of conda list
:
# packages in environment at /home/steph/anaconda3/envs/TTS:
#
# Name Version Build Channel
_libgcc_mutex 0.1 main
_openmp_mutex 5.1 1_gnu
blas 1.0 mkl
brotlipy 0.7.0 py310h7f8727e_1002
bzip2 1.0.8 h7b6447c_0
ca-certificates 2023.01.10 h06a4308_0
certifi 2022.12.7 py310h06a4308_0
cffi 1.15.1 py310h5eee18b_3
charset-normalizer 2.0.4 pyhd3eb1b0_0
cryptography 38.0.4 py310h9ce1e76_0
cuda 11.6.1 0 nvidia
cuda-cccl 11.6.55 hf6102b2_0 nvidia
cuda-command-line-tools 11.6.2 0 nvidia
cuda-compiler 11.6.2 0 nvidia
cuda-cudart 11.6.55 he381448_0 nvidia
cuda-cudart-dev 11.6.55 h42ad0f4_0 nvidia
cuda-cuobjdump 11.6.124 h2eeebcb_0 nvidia
cuda-cupti 11.6.124 h86345e5_0 nvidia
cuda-cuxxfilt 11.6.124 hecbf4f6_0 nvidia
cuda-driver-dev 11.6.55 0 nvidia
cuda-gdb 12.0.90 0 nvidia
cuda-libraries 11.6.1 0 nvidia
cuda-libraries-dev 11.6.1 0 nvidia
cuda-memcheck 11.8.86 0 nvidia
cuda-nsight 12.0.78 0 nvidia
cuda-nsight-compute 12.0.0 0 nvidia
cuda-nvcc 11.6.124 hbba6d2d_0 nvidia
cuda-nvdisasm 12.0.76 0 nvidia
cuda-nvml-dev 11.6.55 haa9ef22_0 nvidia
cuda-nvprof 12.0.90 0 nvidia
cuda-nvprune 11.6.124 he22ec0a_0 nvidia
cuda-nvrtc 11.6.124 h020bade_0 nvidia
cuda-nvrtc-dev 11.6.124 h249d397_0 nvidia
cuda-nvtx 11.6.124 h0630a44_0 nvidia
cuda-nvvp 12.0.90 0 nvidia
cuda-runtime 11.6.1 0 nvidia
cuda-samples 11.6.101 h8efea70_0 nvidia
cuda-sanitizer-api 12.0.90 0 nvidia
cuda-toolkit 11.6.1 0 nvidia
cuda-tools 11.6.1 0 nvidia
cuda-visual-tools 11.6.1 0 nvidia
ffmpeg 4.3 hf484d3e_0 pytorch
flit-core 3.6.0 pyhd3eb1b0_0
freetype 2.12.1 h4a9f257_0
gds-tools 1.5.0.59 0 nvidia
giflib 5.2.1 h7b6447c_0
gmp 6.2.1 h295c915_3
gnutls 3.6.15 he1e5248_0
idna 3.4 py310h06a4308_0
intel-openmp 2021.4.0 h06a4308_3561
jpeg 9e h7f8727e_0
lame 3.100 h7b6447c_0
lcms2 2.12 h3be6417_0
ld_impl_linux-64 2.38 h1181459_1
lerc 3.0 h295c915_0
libcublas 11.9.2.110 h5e84587_0 nvidia
libcublas-dev 11.9.2.110 h5c901ab_0 nvidia
libcufft 10.7.1.112 hf425ae0_0 nvidia
libcufft-dev 10.7.1.112 ha5ce4c0_0 nvidia
libcufile 1.5.0.59 0 nvidia
libcufile-dev 1.5.0.59 0 nvidia
libcurand 10.3.1.50 0 nvidia
libcurand-dev 10.3.1.50 0 nvidia
libcusolver 11.3.4.124 h33c3c4e_0 nvidia
libcusparse 11.7.2.124 h7538f96_0 nvidia
libcusparse-dev 11.7.2.124 hbbe9722_0 nvidia
libdeflate 1.8 h7f8727e_5
libffi 3.4.2 h6a678d5_6
libgcc-ng 11.2.0 h1234567_1
libgomp 11.2.0 h1234567_1
libiconv 1.16 h7f8727e_2
libidn2 2.3.2 h7f8727e_0
libnpp 11.6.3.124 hd2722f0_0 nvidia
libnpp-dev 11.6.3.124 h3c42840_0 nvidia
libnvjpeg 11.6.2.124 hd473ad6_0 nvidia
libnvjpeg-dev 11.6.2.124 hb5906b9_0 nvidia
libpng 1.6.37 hbc83047_0
libstdcxx-ng 11.2.0 h1234567_1
libtasn1 4.16.0 h27cfd23_0
libtiff 4.5.0 hecacb30_0
libunistring 0.9.10 h27cfd23_0
libuuid 1.41.5 h5eee18b_0
libwebp 1.2.4 h11a3e52_0
libwebp-base 1.2.4 h5eee18b_0
lz4-c 1.9.4 h6a678d5_0
mkl 2021.4.0 h06a4308_640
mkl-service 2.4.0 py310h7f8727e_0
mkl_fft 1.3.1 py310hd6ae3a3_0
mkl_random 1.2.2 py310h00e6091_0
ncurses 6.3 h5eee18b_3
nettle 3.7.3 hbbd107a_1
nsight-compute 2022.4.0.15 0 nvidia
numpy 1.23.5 py310hd5efca6_0
numpy-base 1.23.5 py310h8e6c178_0
openh264 2.1.1 h4ff587b_0
openssl 1.1.1s h7f8727e_0
pillow 9.3.0 py310hace64e9_1
pip 22.3.1 py310h06a4308_0
pycparser 2.21 pyhd3eb1b0_0
pyopenssl 22.0.0 pyhd3eb1b0_0
pysocks 1.7.1 py310h06a4308_0
python 3.10.9 h7a1cb2a_0
pytorch 1.13.1 py3.10_cuda11.6_cudnn8.3.2_0 pytorch
pytorch-cuda 11.6 h867d48c_1 pytorch
pytorch-mutex 1.0 cuda pytorch
readline 8.2 h5eee18b_0
requests 2.28.1 py310h06a4308_0
setuptools 65.6.3 py310h06a4308_0
six 1.16.0 pyhd3eb1b0_1
sqlite 3.40.1 h5082296_0
tk 8.6.12 h1ccaba5_0
torchaudio 0.13.1 py310_cu116 pytorch
torchvision 0.14.1 py310_cu116 pytorch
transformers 4.19.0 pypi_0 pypi
typing_extensions 4.4.0 py310h06a4308_0
tzdata 2022g h04d1e81_0
urllib3 1.26.14 py310h06a4308_0
wheel 0.37.1 pyhd3eb1b0_0
xz 5.2.10 h5eee18b_1
zlib 1.2.13 h5eee18b_0
zstd 1.5.2 ha4553b6_0
That requirement was to fix some dependency conflict when that was present when I originally pushed this repo. I believe librosa did not support the latest version of numba. Maybe they've fixed it now.
Ain't python packaging fun? ....... :/
Had the same issue. Used @sbersier suggestions which worked for me additionally I used the latest transformers package.
Ubuntu 22.04 with Python 3.10.6
Steps in order conda create -n tortoise-tts conda activate tortoise-tts edit the requirements file python -m pip install -r ./requirements.txt
usage python tortoise/do_tts.py --text "don't forget to pay your phone bill" --voice random --preset fast
requirements.txt
tqdm rotary_embedding_torch transformers tokenizers inflect progressbar einops==0.4.1 unidecode scipy==1.10.1 librosa==0.9.1 ffmpeg numpy numba torchaudio threadpoolctl llvmlite appdirs
I do
Ubuntu 22.10