Anjok07 / ultimatevocalremovergui

GUI for a Vocal Remover that uses Deep Neural Networks.
MIT License
18.43k stars 1.38k forks source link

Problem installation (python version) #1628

Open Dokjolly0 opened 1 week ago

Dokjolly0 commented 1 week ago

What python version i need to install requirement (v5.6)?

now i catch this error (arc linux): (env) [Dokjolly@arch ultimatevocalremovergui-5.6]$ pip install -r requirements.txt Ignoring SoundFile: markers 'sys_platform == "windows"' don't match your environment Collecting altgraph==0.17.3 (from -r requirements.txt (line 1)) Downloading altgraph-0.17.3-py2.py3-none-any.whl.metadata (7.4 kB) Collecting audioread==3.0.0 (from -r requirements.txt (line 2)) Downloading 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 ╰─> [20 lines of output] Traceback (most recent call last): File "/home/Dokjolly/Desktop/ultimatevocalremovergui-5.6/env/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in main() File "/home/Dokjolly/Desktop/ultimatevocalremovergui-5.6/env/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/Dokjolly/Desktop/ultimatevocalremovergui-5.6/env/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings) ^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-nyx53dey/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=[]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-nyx53dey/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires self.run_setup() File "/tmp/pip-build-env-nyx53dey/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 522, in run_setup super().run_setup(setup_script=setup_script) File "/tmp/pip-build-env-nyx53dey/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 320, in run_setup exec(code, locals()) File "", line 17, in 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: 24.2 -> 24.3.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.

NthTry99 commented 2 days ago

I'm also running Arch Linux and I had the exact same problem, the center of the problem seemed to be the "ModuleNotFoundError: No module named 'imp'" After MUCH Googling, here's what I found and what I did to get UVR v5.6 to work.

It has to do with the fact that the last time UVR was updated, Python 3.11 was the latest version of Python and used this 'imp' module, which was deprecated and replaced with 'importlib' in Python 3.12 (the current version). I am not a programmer but I tried everything to replace everywhere I could find in the UVR files where "import imp" was and replace it with "import importlib" but still got the same error. So I installed python311 (aka Python 3.11) from the AUR:

$ yay -S python311 This will install Python 3.11 independently of any other version of Python you might already have installed (iirc).

Here's exactly my steps, beginning after unzipping "ultimatevocalremovergui-master.zip" to ./ultimatevocalremovergui-master and cd'ing into that directory:

This creates a venv (virtual environment) using Python 3.11. I believe using a venv is important, as you will see later. $ python3.11 -m venv ./venv

If I didn't include this, I would get a different error pertaining to "OSError: could not get source code", this fixed that: $ venv/bin/pip3.11 install --upgrade setuptools wheel

Then, I kept getting another error about another deprecated package: "The 'sklearn' PyPI package is deprecated, use 'scikit-learn' rather than 'sklearn' for pip commands."

To fix this, I had to set an environment variable to be used in the venv: $ nano ./venv/bin/activate

Directly under "deactivate () {" add (without quotes): "unset SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL": so it should look like: deactivate () { unset SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL This will unset the environment variable once you deactivate the venv ($ deactivate) which I do when I am done using UVR.

Then while still in nano editing ./venv/bin/activate at the very bottom add the line: export SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL="True"

Now you can install the requirements.txt: $ venv/bin/pip3.11 install -r requirements.txt (I think you must use pip3.11 because it specifies Python 3.11)

To run UVR, activate the venv: $ source ./venv/bin/activate

And execute the .py: $ python3.11 UVR.py (again I'm pretty sure you have to use python3.11 in the above command or else it will use 3.12 if you have that installed.

I hope this helps!