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

Error installing on LInux Mint PC #919

Open
Rudizoon opened this issue Oct 22, 2023 · 4 comments · May be fixed by #1311
Open

Error installing on LInux Mint PC #919

Rudizoon opened this issue Oct 22, 2023 · 4 comments · May be fixed by #1311

Comments

@Rudizoon
Copy link

When I get to the pip3 install -r requirements.txt instruction, installation doesn't complete.

`john@Desktop:~/UVR$ pip3 install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Ignoring PySoundFile: markers 'sys_platform == "darwin"' don't match your environment
Collecting altgraph==0.17.3
Downloading altgraph-0.17.3-py2.py3-none-any.whl (21 kB)
Collecting audioread==3.0.0
Downloading audioread-3.0.0.tar.gz (377 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 377.0/377.0 KB 2.9 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting certifi==2022.12.07
Downloading certifi-2022.12.7-py3-none-any.whl (155 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 155.3/155.3 KB 1.8 MB/s eta 0:00:00
Collecting cffi==1.15.1
Downloading cffi-1.15.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (441 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 441.8/441.8 KB 4.3 MB/s eta 0:00:00
Collecting cryptography==3.4.6
Downloading cryptography-3.4.6-cp36-abi3-manylinux2014_x86_64.whl (3.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.2/3.2 MB 6.8 MB/s eta 0:00:00
Collecting einops==0.6.0
Downloading einops-0.6.0-py3-none-any.whl (41 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 41.6/41.6 KB 654.7 kB/s eta 0:00:00
Collecting future==0.18.3
Downloading future-0.18.3.tar.gz (840 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 840.9/840.9 KB 6.5 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting julius==0.2.7
Downloading julius-0.2.7.tar.gz (59 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 59.6/59.6 KB 1.1 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting kthread==0.2.3
Downloading kthread-0.2.3-py3-none-any.whl (3.9 kB)
Collecting librosa==0.9.2
Downloading librosa-0.9.2-py3-none-any.whl (214 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 214.3/214.3 KB 1.5 MB/s eta 0:00:00
Collecting llvmlite
Downloading llvmlite-0.41.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (43.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 43.6/43.6 MB 5.0 MB/s eta 0:00:00
Collecting matchering==2.0.6
Downloading matchering-2.0.6-py3-none-any.whl (41 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 41.1/41.1 KB 540.4 kB/s eta 0:00:00
Collecting ml_collections==0.1.1
Downloading ml_collections-0.1.1.tar.gz (77 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 77.9/77.9 KB 1.3 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting natsort==8.2.0
Downloading natsort-8.2.0-py3-none-any.whl (37 kB)
Collecting omegaconf==2.2.3
Downloading omegaconf-2.2.3-py3-none-any.whl (79 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 79.3/79.3 KB 1.1 MB/s eta 0:00:00
Collecting opencv-python==4.6.0.66
Downloading opencv_python-4.6.0.66-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (60.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.9/60.9 MB 5.1 MB/s eta 0:00:00
Collecting Pillow==9.3.0
Downloading Pillow-9.3.0-cp310-cp310-manylinux_2_28_x86_64.whl (3.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.3/3.3 MB 8.0 MB/s eta 0:00:00
Collecting psutil==5.9.4
Downloading psutil-5.9.4-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (280 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 280.2/280.2 KB 2.7 MB/s eta 0:00:00
Collecting pydub==0.25.1
Downloading pydub-0.25.1-py2.py3-none-any.whl (32 kB)
Collecting pyglet==1.5.23
Downloading pyglet-1.5.23-py3-none-any.whl (1.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 1.5 MB/s eta 0:00:00
Collecting pyperclip==1.8.2
Downloading pyperclip-1.8.2.tar.gz (20 kB)
Preparing metadata (setup.py) ... done
Collecting pyrubberband==0.3.0
Downloading pyrubberband-0.3.0.tar.gz (4.1 kB)
Preparing metadata (setup.py) ... done
Collecting pytorch_lightning==2.0.0
Downloading pytorch_lightning-2.0.0-py3-none-any.whl (715 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 715.6/715.6 KB 3.3 MB/s eta 0:00:00
Collecting PyYAML==6.0
Downloading PyYAML-6.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (682 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 682.2/682.2 KB 3.9 MB/s eta 0:00:00
Collecting resampy==0.4.2
Downloading resampy-0.4.2-py3-none-any.whl (3.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.1/3.1 MB 4.2 MB/s eta 0:00:00
Collecting scipy==1.9.3
Downloading scipy-1.9.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (33.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 33.7/33.7 MB 4.6 MB/s eta 0:00:00
Collecting soundstretch==1.2
Downloading soundstretch-1.2.tar.gz (2.3 kB)
Preparing metadata (setup.py) ... done
Collecting torch
Downloading torch-2.1.0-cp310-cp310-manylinux1_x86_64.whl (670.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 670.2/670.2 MB ? eta 0:00:00
Collecting urllib3==1.26.12
Downloading urllib3-1.26.12-py2.py3-none-any.whl (140 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 140.4/140.4 KB 599.9 kB/s eta 0:00:00
Collecting wget==3.2
Downloading wget-3.2.zip (10 kB)
Preparing metadata (setup.py) ... done
Collecting samplerate==0.1.0
Downloading samplerate-0.1.0-py2.py3-none-any.whl (4.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.0/4.0 MB 6.3 MB/s eta 0:00:00
Collecting screeninfo==0.8.1
Downloading screeninfo-0.8.1-py3-none-any.whl (12 kB)
Collecting diffq
Downloading diffq-0.2.4-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (418 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 418.8/418.8 KB 4.8 MB/s eta 0:00:00
Collecting playsound
Downloading playsound-1.3.0.tar.gz (7.7 kB)
Preparing metadata (setup.py) ... done
Collecting onnx
Downloading onnx-1.14.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (14.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 14.6/14.6 MB 9.1 MB/s eta 0:00:00
Collecting onnxruntime
Downloading onnxruntime-1.16.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.2/6.2 MB 2.0 MB/s eta 0:00:00
Collecting onnxruntime-gpu
Downloading onnxruntime_gpu-1.16.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (153.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 153.4/153.4 MB 3.5 MB/s eta 0:00:00
Collecting onnx2pytorch
Downloading onnx2pytorch-0.4.1-py3-none-any.whl (44 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 44.9/44.9 KB 739.4 kB/s eta 0:00:00
Collecting SoundFile==0.11.0
Downloading soundfile-0.11.0-py2.py3-none-any.whl (23 kB)
Collecting Dora==0.0.3
Downloading Dora-0.0.3.tar.gz (4.9 kB)
Preparing metadata (setup.py) ... done
Collecting numpy==1.23.5
Downloading numpy-1.23.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 17.1/17.1 MB 9.7 MB/s eta 0:00:00
Collecting pycparser
Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.7/118.7 KB 1.5 MB/s eta 0:00:00
Collecting numba>=0.45.1
Downloading numba-0.58.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (3.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.6/3.6 MB 12.9 MB/s eta 0:00:00
Collecting pooch>=1.0
Downloading pooch-1.7.0-py3-none-any.whl (60 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.9/60.9 KB 753.9 kB/s eta 0:00:00
Collecting scikit-learn>=0.19.1
Downloading scikit_learn-1.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.8/10.8 MB 10.4 MB/s eta 0:00:00
Requirement already satisfied: packaging>=20.0 in /usr/lib/python3/dist-packages (from librosa==0.9.2->-r requirements.txt (line 10)) (21.3)
Collecting decorator>=4.0.10
Downloading decorator-5.1.1-py3-none-any.whl (9.1 kB)
Collecting joblib>=0.14
Downloading joblib-1.3.2-py3-none-any.whl (302 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 302.2/302.2 KB 5.6 MB/s eta 0:00:00
Collecting statsmodels>=0.13.2
Downloading statsmodels-0.14.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.1/10.1 MB 14.7 MB/s eta 0:00:00
Collecting absl-py
Downloading absl_py-2.0.0-py3-none-any.whl (130 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 130.2/130.2 KB 2.3 MB/s eta 0:00:00
Collecting contextlib2
Downloading contextlib2-21.6.0-py2.py3-none-any.whl (13 kB)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from ml_collections==0.1.1->-r requirements.txt (line 13)) (1.16.0)
Collecting antlr4-python3-runtime==4.9.*
Downloading antlr4-python3-runtime-4.9.3.tar.gz (117 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 117.0/117.0 KB 2.5 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting pysoundfile>=0.8.0
Downloading PySoundFile-0.9.0.post1-py2.py3-none-any.whl (24 kB)
Collecting torchmetrics>=0.7.0
Downloading torchmetrics-1.2.0-py3-none-any.whl (805 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 805.2/805.2 KB 5.7 MB/s eta 0:00:00
Collecting fsspec[http]>2021.06.0
Downloading fsspec-2023.10.0-py3-none-any.whl (166 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 166.4/166.4 KB 2.0 MB/s eta 0:00:00
Collecting lightning-utilities>=0.7.0
Downloading lightning_utilities-0.9.0-py3-none-any.whl (23 kB)
Collecting tqdm>=4.57.0
Downloading tqdm-4.66.1-py3-none-any.whl (78 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.3/78.3 KB 1.1 MB/s eta 0:00:00
Collecting typing-extensions>=4.0.0
Downloading typing_extensions-4.8.0-py3-none-any.whl (31 kB)
Collecting matplotlib>=1.5.1
Downloading matplotlib-3.8.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.6/11.6 MB 10.7 MB/s eta 0:00:00
Collecting pandas>=0.17.1
Downloading pandas-2.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.3/12.3 MB 13.4 MB/s eta 0:00:00
Collecting sklearn
Downloading sklearn-0.0.post10.tar.gz (3.6 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [18 lines of output]
The 'sklearn' PyPI package is deprecated, use 'scikit-learn'
rather than 'sklearn' for pip commands.

  Here is how to fix this error in the main use cases:
  - use 'pip install scikit-learn' rather than 'pip install sklearn'
  - replace 'sklearn' by 'scikit-learn' in your pip requirements files
    (requirements.txt, setup.py, setup.cfg, Pipfile, etc ...)
  - if the 'sklearn' package is used by one of your dependencies,
    it would be great if you take some time to track which package uses
    'sklearn' instead of 'scikit-learn' and report it to their issue tracker
  - as a last resort, set the environment variable
    SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True to avoid this error
  
  More information is available at
  https://github.com/scikit-learn/sklearn-pypi-package
  
  If the previous advice does not cover your use case, feel free to report it at
  https://github.com/scikit-learn/sklearn-pypi-package/issues/new
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
john@Desktop:/UVR$ python3 UVR.py
Traceback (most recent call last):
File "/home/john/UVR/UVR.py", line 4, in
import audioread
ModuleNotFoundError: No module named 'audioread'
john@Desktop:
/UVR$
`

@bitsByB
Copy link

bitsByB commented Oct 25, 2023

Yes, same problem here:

  Using cached sklearn-0.0.post10.tar.gz (3.6 kB)
  Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [18 lines of output]
      The 'sklearn' PyPI package is deprecated, use 'scikit-learn'
      rather than 'sklearn' for pip commands.
      
      Here is how to fix this error in the main use cases:
      - use 'pip install scikit-learn' rather than 'pip install sklearn'
      - replace 'sklearn' by 'scikit-learn' in your pip requirements files
        (requirements.txt, setup.py, setup.cfg, Pipfile, etc ...)
      - if the 'sklearn' package is used by one of your dependencies,
        it would be great if you take some time to track which package uses
        'sklearn' instead of 'scikit-learn' and report it to their issue tracker
      - as a last resort, set the environment variable
        SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True to avoid this error
      
      More information is available at
      https://github.com/scikit-learn/sklearn-pypi-package
      
      If the previous advice does not cover your use case, feel free to report it at
      https://github.com/scikit-learn/sklearn-pypi-package/issues/new
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

their repo says:

  • use pip install scikit-learn rather than pip install sklearn
  • replace sklearn by scikit-learn in your pip requirements files (requirements.txt, setup.py, setup.cfg, Pipfile, etc ...)
  • if the sklearn package is used by one of your dependencies it would be great if you take some time to track which package uses sklearn instead of scikit-learn and report it to their issue tracker
  • as a last resort, set the environment variable SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True to avoid this error

I installed pip install scikit-learn

The requirements.txt is:

audioread==3.0.0
certifi==2022.12.07
cffi==1.15.1
cryptography==3.4.6
einops==0.6.0
future==0.18.3
julius==0.2.7
kthread==0.2.3
librosa==0.9.2
llvmlite
matchering==2.0.6
ml_collections==0.1.1
natsort==8.2.0
omegaconf==2.2.3
opencv-python==4.6.0.66
Pillow==9.3.0
psutil==5.9.4
pydub==0.25.1
pyglet==1.5.23
pyperclip==1.8.2
pyrubberband==0.3.0
pytorch_lightning==2.0.0
PyYAML==6.0
resampy==0.4.2
scipy==1.9.3
soundstretch==1.2
torch
urllib3==1.26.12
wget==3.2
samplerate==0.1.0
screeninfo==0.8.1
diffq
playsound
onnx
onnxruntime
onnxruntime-gpu
onnx2pytorch
SoundFile==0.11.0; sys_platform != 'darwin'
PySoundFile==0.9.0.post1; sys_platform == 'darwin'
Dora==0.0.3
numpy==1.23.5

but I can't figure out how to replace sklearn by scikit-learn in this pip requirements file...
and I don't want to use the last resort yet

as a last resort, set the environment variable SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True to avoid this error

😀 Thanks for your help and what seems to be an amazing project!

@rexendevar
Copy link

I figured out how to make it run, but it is definitely using the last resort.

Go into the ultimatevocalremovergui-master folder and make a new file called installing.py. Open it up and paste in:

import os
import pip
import subprocess

os.environ["SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL"] = "True"

subprocess.Popen("pip3 install -r requirements.txt", shell=True)

Then from the terminal in the same folder run python3 ./installing.py in place of pip3 install -r requirements.txt. Note that this is NOT best-practice stuff here - it will run and finish the job but I think there are two maybe three big mistakes in it.

@bitsByB
Copy link

bitsByB commented Nov 6, 2023

thanks @rexendevar I'll give it a try

@CypressJack
Copy link

It looks like the best thing to do is just to remove the Dora library line from requirements.txt

Dora==0.0.3

That's the library that is requiring the 'sklearn' dependancy and causing the error, and it's not being used by anything in the program.

There's only one line in the codebase that mentions dora and it's commented out, line 13 of pretrained.py:

#from dora.log import fatal

@evezers evezers linked a pull request Apr 27, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants