Skip to content

Conversation

SparrowOchon
Copy link

I went through and updated a bunch of dependencies I know this is not perfect but it works directly on Debian/ubuntu based systems. Happy to change anything as needed. Also had a question on why we were using torch.load on the CPU rather than the GPU?

Addresses issues:
#1789
#1674
#1661
#1628
#383

@SparrowOchon
Copy link
Author

Should note this additionally does what #1311 did as well.

@Auxority
Copy link

Auxority commented May 23, 2025

Oh very nice, was just trying to get this to work on my machine, when I thought to myself: why not look through the issues.

@Auxority
Copy link

With Python 3.13 on Arch Linux I still get this error though:

Collecting audioread==3.0.0 (from -r requirements.txt (line 2))
  Using cached audioread-3.0.0.tar.gz (377 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [23 lines of output]
      Traceback (most recent call last):
        File "/home/pengu/Downloads/ultimatevocalremovergui/venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
          main()
          ~~~~^^
        File "/home/pengu/Downloads/ultimatevocalremovergui/venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
          json_out["return_val"] = hook(**hook_input["kwargs"])
                                   ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/pengu/Downloads/ultimatevocalremovergui/venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/tmp/pip-build-env-opr2oas4/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
                 ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-opr2oas4/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
          self.run_setup()
          ~~~~~~~~~~~~~~^^
        File "/tmp/pip-build-env-opr2oas4/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 512, in run_setup
          super().run_setup(setup_script=setup_script)
          ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-opr2oas4/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 317, in run_setup
          exec(code, locals())
          ~~~~^^^^^^^^^^^^^^^^
        File "<string>", line 17, in <module>
      ModuleNotFoundError: No module named 'imp'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.

[notice] A new release of pip is available: 25.0.1 -> 25.1.1
[notice] To update, run: pip install --upgrade pip
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

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

@SparrowOchon
Copy link
Author

SparrowOchon commented May 23, 2025

@Auxority hmm try audioread==3.0.1. wait are you using my branch or the native branch my requirements.txt already has this change in it.

@Auxority
Copy link

Pff, thanks mate. Tried to quickly get this working before dinner. Gimme a sec :)

@SparrowOchon
Copy link
Author

SparrowOchon commented May 23, 2025

@Auxority also could you make a PR for the readme for what's required as a base install to work on arch ?

@Auxority
Copy link

Auxority commented May 23, 2025

Yeah that's a good idea, doesn't require much. Just had to know that I had to install python 3.9, combine that with virtualenv (to install a virtual env for a specific python version), and you're good to go.

@Auxority
Copy link

Auxority commented May 23, 2025

Had to make a minor change in requirements.txt to get pip install -r requirements.txt working:

playsound==1.3.0; platform_system == "Windows" # For Windows
playsound==1.2.2; platform_system != "Windows" # For Linux/macOS

But can't launch UVR yet:

/home/pengu/Downloads/ultimatevocalremovergui/gui_data/error_handling.py:8: SyntaxWarning: invalid escape sequence '\_'
  FFMPEG_MISSING_ERROR = """audioread\__init__.py", line 116, in audio_open"""
Traceback (most recent call last):
  File "/home/pengu/Downloads/ultimatevocalremovergui/UVR.py", line 7265, in <module>
    root = MainWindow()
  File "/home/pengu/Downloads/ultimatevocalremovergui/UVR.py", line 1527, in __init__
    self.update_available_models()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/home/pengu/Downloads/ultimatevocalremovergui/UVR.py", line 5614, in update_available_models
    new_demucs_models = self.get_files_from_dir(DEMUCS_MODELS_DIR, (CKPT, '.gz', '.th')) + self.get_files_from_dir(DEMUCS_NEWER_REPO_DIR, YAML)
                                                                                           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pengu/Downloads/ultimatevocalremovergui/UVR.py", line 2295, in get_files_from_dir
    for x in os.listdir(directory)
             ~~~~~~~~~~^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/pengu/Downloads/ultimatevocalremovergui/models/Demucs_Models/v3_v4_repo'

Will debug it later, heading out rn.

@SparrowOchon
Copy link
Author

Yeah that's a good idea, doesn't require much. Just had to know that I had to install python 3.9, combine that with virtualenv (to install a virtual env for a specific python version), and you're good to go.

You shouldn't have had to the version was made for python 3.13.

The error you're getting is because I think I accidently pushed config for models I downloaded but you don't have them.

@bluefander
Copy link

Had to make a minor change in requirements.txt to get pip install -r requirements.txt working:

playsound==1.3.0; platform_system == "Windows" # For Windows
playsound==1.2.2; platform_system != "Windows" # For Linux/macOS

But can't launch UVR yet:

/home/pengu/Downloads/ultimatevocalremovergui/gui_data/error_handling.py:8: SyntaxWarning: invalid escape sequence '\_'
  FFMPEG_MISSING_ERROR = """audioread\__init__.py", line 116, in audio_open"""
Traceback (most recent call last):
  File "/home/pengu/Downloads/ultimatevocalremovergui/UVR.py", line 7265, in <module>
    root = MainWindow()
  File "/home/pengu/Downloads/ultimatevocalremovergui/UVR.py", line 1527, in __init__
    self.update_available_models()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/home/pengu/Downloads/ultimatevocalremovergui/UVR.py", line 5614, in update_available_models
    new_demucs_models = self.get_files_from_dir(DEMUCS_MODELS_DIR, (CKPT, '.gz', '.th')) + self.get_files_from_dir(DEMUCS_NEWER_REPO_DIR, YAML)
                                                                                           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pengu/Downloads/ultimatevocalremovergui/UVR.py", line 2295, in get_files_from_dir
    for x in os.listdir(directory)
             ~~~~~~~~~~^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/pengu/Downloads/ultimatevocalremovergui/models/Demucs_Models/v3_v4_repo'

Will debug it later, heading out rn.

Hi Auxority

I am facing the same error when I try to launch the application. Have you found a solution?

@Merennor
Copy link

Had to make a minor change in requirements.txt to get pip install -r requirements.txt working:

playsound==1.3.0; platform_system == "Windows" # For Windows
playsound==1.2.2; platform_system != "Windows" # For Linux/macOS

But can't launch UVR yet:

/home/pengu/Downloads/ultimatevocalremovergui/gui_data/error_handling.py:8: SyntaxWarning: invalid escape sequence '\_'
  FFMPEG_MISSING_ERROR = """audioread\__init__.py", line 116, in audio_open"""
Traceback (most recent call last):
  File "/home/pengu/Downloads/ultimatevocalremovergui/UVR.py", line 7265, in <module>
    root = MainWindow()
  File "/home/pengu/Downloads/ultimatevocalremovergui/UVR.py", line 1527, in __init__
    self.update_available_models()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/home/pengu/Downloads/ultimatevocalremovergui/UVR.py", line 5614, in update_available_models
    new_demucs_models = self.get_files_from_dir(DEMUCS_MODELS_DIR, (CKPT, '.gz', '.th')) + self.get_files_from_dir(DEMUCS_NEWER_REPO_DIR, YAML)
                                                                                           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pengu/Downloads/ultimatevocalremovergui/UVR.py", line 2295, in get_files_from_dir
    for x in os.listdir(directory)
             ~~~~~~~~~~^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/pengu/Downloads/ultimatevocalremovergui/models/Demucs_Models/v3_v4_repo'

Will debug it later, heading out rn.

Hi Auxority

I am facing the same error when I try to launch the application. Have you found a solution?

Just create v3_v4_repo folder in models/Demucs_Models

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 this pull request may close these issues.

4 participants